API Reference - Models
This page documents all the data models used by the USPTO ODP Python Client. These models represent the response structures from the USPTO API.
Patent Application Models
PatentFileWrapper
uspto_odp.models.patent_file_wrapper.PatentFileWrapper
dataclass
Main class representing a patent file wrapper
Source code in src/uspto_odp/models/patent_file_wrapper.py
Functions
parse_response
classmethod
ApplicationMetadataResponse
uspto_odp.models.patent_metadata.ApplicationMetadataResponse
dataclass
Response model for the /meta-data endpoint. Contains application number and metadata.
Source code in src/uspto_odp/models/patent_metadata.py
Functions
from_dict
classmethod
Parse the meta-data endpoint response.
The API returns: { "count": 1, "patentFileWrapperDataBag": [ { "applicationNumberText": "...", "applicationMetaData": {...} } ], "requestIdentifier": "..." }
Source code in src/uspto_odp/models/patent_metadata.py
PatentDocumentCollection
uspto_odp.models.patent_documents.PatentDocumentCollection
dataclass
Collection of patent documents
Source code in src/uspto_odp/models/patent_documents.py
ContinuityCollection
uspto_odp.models.patent_continuity.ContinuityCollection
dataclass
Collection of continuity data
Source code in src/uspto_odp/models/patent_continuity.py
ForeignPriorityCollection
uspto_odp.models.foreign_priority.ForeignPriorityCollection
dataclass
Collection of foreign priority data
Source code in src/uspto_odp/models/foreign_priority.py
TransactionCollection
uspto_odp.models.patent_transactions.TransactionCollection
dataclass
Collection of transaction data
Source code in src/uspto_odp/models/patent_transactions.py
AssignmentCollection
uspto_odp.models.patent_assignment.AssignmentCollection
dataclass
Collection of assignment data
Source code in src/uspto_odp/models/patent_assignment.py
AttorneyResponse
uspto_odp.models.patent_attorney.AttorneyResponse
dataclass
Response model for the /attorney endpoint
Source code in src/uspto_odp/models/patent_attorney.py
Functions
from_dict
classmethod
Parse the attorney endpoint response.
The API returns: { "count": 1, "patentFileWrapperDataBag": [ { "applicationNumberText": "...", "recordAttorney": {...} } ], "requestIdentifier": "..." }
Source code in src/uspto_odp/models/patent_attorney.py
AdjustmentResponse
uspto_odp.models.patent_adjustment.AdjustmentResponse
dataclass
Response model for the /adjustment endpoint
Source code in src/uspto_odp/models/patent_adjustment.py
Functions
from_dict
classmethod
Parse the adjustment endpoint response.
The API returns: { "count": 1, "patentFileWrapperDataBag": [ { "applicationNumberText": "...", "patentTermAdjustmentData": {...} } ], "requestIdentifier": "..." }
Source code in src/uspto_odp/models/patent_adjustment.py
AssociatedDocumentsResponse
uspto_odp.models.patent_associated_documents.AssociatedDocumentsResponse
dataclass
Response model for the /associated-documents endpoint
Source code in src/uspto_odp/models/patent_associated_documents.py
Functions
from_dict
classmethod
Parse the associated-documents endpoint response.
The API returns: { "count": 1, "patentFileWrapperDataBag": [ { "applicationNumberText": "...", "pgpubDocumentMetaData": {...}, "grantDocumentMetaData": {...}, "requestIdentifier": "..." } ], "requestIdentifier": "..." (optional at top level) }
Source code in src/uspto_odp/models/patent_associated_documents.py
StatusCodeCollection
uspto_odp.models.patent_status_codes.StatusCodeCollection
dataclass
Collection of patent application status codes returned from search.
Attributes:
| Name | Type | Description |
|---|---|---|
count |
int
|
Total number of status codes matching the search criteria |
status_codes |
List[StatusCode]
|
List of StatusCode objects |
request_identifier |
Optional[str]
|
Optional request identifier from the API |
Source code in src/uspto_odp/models/patent_status_codes.py
Functions
from_dict
classmethod
Create a StatusCodeCollection instance from a dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Dictionary containing status code collection data from API response |
required |
Returns:
| Type | Description |
|---|---|
StatusCodeCollection
|
StatusCodeCollection instance |
Source code in src/uspto_odp/models/patent_status_codes.py
Petition Decision Models
PetitionDecisionResponseBag
uspto_odp.models.patent_petition_decision.PetitionDecisionResponseBag
dataclass
Response container for petition decision search results.
Source code in src/uspto_odp/models/patent_petition_decision.py
Functions
from_dict
classmethod
Parse the search response data into a PetitionDecisionResponseBag object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
The raw JSON response from the API |
required |
Returns:
| Name | Type | Description |
|---|---|---|
PetitionDecisionResponseBag |
PetitionDecisionResponseBag
|
A structured representation of the search results |
Source code in src/uspto_odp/models/patent_petition_decision.py
PTAB Trials Models
TrialProceedingResponseBag
uspto_odp.models.patent_trials_proceedings.TrialProceedingResponseBag
dataclass
Response container for trial proceeding search results.
Source code in src/uspto_odp/models/patent_trials_proceedings.py
Functions
from_dict
classmethod
Parse the search response data into a TrialProceedingResponseBag object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
The raw JSON response from the API |
required |
Returns:
| Name | Type | Description |
|---|---|---|
TrialProceedingResponseBag |
TrialProceedingResponseBag
|
A structured representation of the search results |
Source code in src/uspto_odp/models/patent_trials_proceedings.py
TrialDecisionResponseBag
uspto_odp.models.patent_trials_decisions.TrialDecisionResponseBag
dataclass
Response container for trial decision search results.
Source code in src/uspto_odp/models/patent_trials_decisions.py
Functions
from_dict
classmethod
Parse the search response data into a TrialDecisionResponseBag object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
The raw JSON response from the API |
required |
Returns:
| Name | Type | Description |
|---|---|---|
TrialDecisionResponseBag |
TrialDecisionResponseBag
|
A structured representation of the search results |
Source code in src/uspto_odp/models/patent_trials_decisions.py
TrialDocumentResponseBag
uspto_odp.models.patent_trials_documents.TrialDocumentResponseBag
dataclass
Response container for trial document search results.
Source code in src/uspto_odp/models/patent_trials_documents.py
Functions
from_dict
classmethod
Parse the search response data into a TrialDocumentResponseBag object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
The raw JSON response from the API |
required |
Returns:
| Name | Type | Description |
|---|---|---|
TrialDocumentResponseBag |
TrialDocumentResponseBag
|
A structured representation of the search results |
Source code in src/uspto_odp/models/patent_trials_documents.py
PTAB Appeals Models
AppealDecisionResponseBag
uspto_odp.models.patent_appeals_decisions.AppealDecisionResponseBag
dataclass
Response container for appeal decision search results.
Source code in src/uspto_odp/models/patent_appeals_decisions.py
Functions
from_dict
classmethod
Parse the search response data into an AppealDecisionResponseBag object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
The raw JSON response from the API |
required |
Returns:
| Name | Type | Description |
|---|---|---|
AppealDecisionResponseBag |
AppealDecisionResponseBag
|
A structured representation of the search results |
Source code in src/uspto_odp/models/patent_appeals_decisions.py
PTAB Interferences Models
InterferenceDecisionResponseBag
uspto_odp.models.patent_interferences_decisions.InterferenceDecisionResponseBag
dataclass
Response container for interference decision search results.
Source code in src/uspto_odp/models/patent_interferences_decisions.py
Functions
from_dict
classmethod
Parse the search response data into an InterferenceDecisionResponseBag object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
The raw JSON response from the API |
required |
Returns:
| Name | Type | Description |
|---|---|---|
InterferenceDecisionResponseBag |
InterferenceDecisionResponseBag
|
A structured representation of the search results |
Source code in src/uspto_odp/models/patent_interferences_decisions.py
Bulk Datasets Models
DatasetProductSearchResponseBag
uspto_odp.models.bulk_datasets.DatasetProductSearchResponseBag
dataclass
Response container for dataset product search results.
Source code in src/uspto_odp/models/bulk_datasets.py
Functions
from_dict
classmethod
Parse the search response data into a DatasetProductSearchResponseBag object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
The raw JSON response from the API |
required |
Returns:
| Name | Type | Description |
|---|---|---|
DatasetProductSearchResponseBag |
DatasetProductSearchResponseBag
|
A structured representation of the search results |
Source code in src/uspto_odp/models/bulk_datasets.py
DatasetProductResponseBag
uspto_odp.models.bulk_datasets.DatasetProductResponseBag
dataclass
Response container for individual dataset product lookup by product identifier. Similar to DatasetProductSearchResponseBag but for single record retrieval.
Source code in src/uspto_odp/models/bulk_datasets.py
Functions
from_dict
classmethod
Parse the individual dataset product response by product identifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
The raw JSON response from the API |
required |
Returns:
| Name | Type | Description |
|---|---|---|
DatasetProductResponseBag |
DatasetProductResponseBag
|
A structured representation of the dataset product |
Source code in src/uspto_odp/models/bulk_datasets.py
DatasetFileResponseBag
uspto_odp.models.bulk_datasets.DatasetFileResponseBag
dataclass
Response container for dataset file download. This may contain file metadata or binary data information.
Source code in src/uspto_odp/models/bulk_datasets.py
Functions
from_dict
classmethod
Parse the dataset file response.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
The raw JSON response from the API |
required |
Returns:
| Name | Type | Description |
|---|---|---|
DatasetFileResponseBag |
DatasetFileResponseBag
|
A structured representation of the file response |