A modern Python client for accessing the United States Patent and Trademark Office (USPTO) Open Data Portal (ODP) APIs. Current version 0.5.2, requires Python >=3.10, and follows a monthly-ish release cadence. Supports patent search, bulk data, IFW, office actions, enriched citations, and more.
pip install pyusptoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a USPTOConfig with your API key, instantiate a PatentClient, and run a simple search query.
Pass a single USPTOConfig instance to all clients.
Use the new explicit request methods (`client.get(...)`, etc.) instead of `_make_request`.
If you need archive extraction, add `extract=True` to your `download_file` call.
Register for a free API key at https://developer.uspto.gov/api-catalog.
Use the generator pattern for PatentClient search. For BulkDataClient, use the appropriate `paginate_*` methods without post_body.
Use the client's methods to generate URLs dynamically; do not hardcode download URLs.