A set of ORM-style clients for publicly available intellectual property data
Project description
Summary
A powerful library for accessing intellectual property, featuring:
- 🍰 Ease of use: All sources use a simple unified API inspired by Django-ORM.
- 🐼 Pandas Integration: Results are easily castable to Pandas Dataframes and Series.
- 🚀 Performance: Fetched data is retrieved using the httpx library with native HTTP/2 and asyncio support, and cached using the hishel library for super-fast queries, and yankee for data extraction.
- 🌐 Async/Await Support: All API's (optionally!) support the async/await syntax.
- 🔮 Pydantic v2 Support: All models retrieved are Pydantic v2 models with all the goodness that comes with them!
Docs, including a fulsome Getting Started and User Guide are available on Read the Docs. The Examples folder includes examples of using patent_client
for
many common IP tasks
⭐ New in v5 ⭐
Version 5 brings a new and more reliable way to provide synchronous and asynchronous access to the various APIs.
In version 5, like in version 3, you can just from patent_client import [Model]
and get a synchronous version
of the model. No asynchronous methods or functionality at all. Or you can do from patent_client._async import [Model]
and get an asynchronous version of the model.
Version 5 also brings support for the USPTO's new Open Data Portal, a system currently in beta that is scheduled to replace the current Patent Examination Data System in late 2024.
Coverage
-
United States Patent & Trademark Office
- Patent Examination Data - Full Support
- Open Data Portal - Full Support
- Global Dossier - Full Support
- Patent Assignment Data - Lookup Support
- Patent Trial & Appeal Board API v2 - Supports Proceedings, Decisions, and Documents
- Patent Public Search - Full Support
- Bulk Data Storage System - Full Support
-
European Patent Office - Open Patent Services
- Inpadoc - Full Support
- EPO Register - No Support (in progress)
- Classification - No Support
- Free software: Apache Software License 2.0
Installation
pip install patent_client
If you only want access to USPTO resources, you're done! However, additional setup is necessary to access EPO Inpadoc and EPO Register resources. See the Docs.
Quick Start
To use the project:
# Import the model classes you need
>>> from patent_client import Inpadoc, Assignment, USApplication
# Fetch US Applications
>>> app = USApplication.objects.get('15710770')
>>> app.patent_title
'Camera Assembly with Concave-Shaped Front Face'
# Fetch from USPTO Assignments
>>> assignments = Assignment.objects.filter(assignee='Google')
>>> len(assignments) > 23000
True
>>> assignment = Assignment.objects.get('47086-788')
>>> assignment.conveyance_text
'ASSIGNMENT OF ASSIGNORS INTEREST'
# Fetch from INPADOC
>>> pub = Inpadoc.objects.get('EP3082535A1')
>>> pub.biblio.title
'AUTOMATIC FLUID DISPENSER'
Async Quick Start
To use async with Patent Client, just import the classes you need from the async module. All methods and iterators that access data or create a network request are asynchronous.
from patent_client._async import USApplication
apps = list()
async for app in USApplication.objects.filter(first_named_applicant="Google"):
apps.append(app)
app = await USApplication.objects.aget("16123456")
Documentation
Docs, including a fulsome Getting Started are available on Read the Docs.
Development
To run the all tests run:
pytest
A developer guide is provided in the Documentation. Pull requests welcome!
Related projects
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file patent_client-5.0.1.tar.gz
.
File metadata
- Download URL: patent_client-5.0.1.tar.gz
- Upload date:
- Size: 4.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/23.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18e9c16e3990adfdfddaa6587db6a1db9ff057b8de582cfd1cf9bec75c81413b |
|
MD5 | 7f040900f5eeca562ae24a78218c6fa0 |
|
BLAKE2b-256 | 6af1ae0b8c18aa059dc6bcdecfcb0002e9a661bcae254d147ea1269231a9b2c6 |
File details
Details for the file patent_client-5.0.1-py3-none-any.whl
.
File metadata
- Download URL: patent_client-5.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/23.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c748ded17b2614e3e154ecc6f25c3f822c5b07d01735e3ef1b43384199230e3c |
|
MD5 | 8f57018fd0abc955984af632fae19be0 |
|
BLAKE2b-256 | f05852bf8afe2cd1d62b004bfeb25120c2d81713a81c78035fa504e25acb93d3 |