Skip to main content

A set of ORM-style clients for publicly available intellectual property data

Project description

patent_client_logo

Build codecov Documentation

PyPI PyPI - Python Versions PyPI - Downloads

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 cached using the excellent requests-cache library for super-fast queries, and yankee for data extraction.

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

Coverage

  • 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, PatentBiblio

# Fetch US Patents with the word "tennis" in their title issued in 2010
>>> pats = PatentBiblio.objects.filter(title="tennis", issue_date="2010-01-01->2010-12-31")
>>> len(pats) > 10
True

# Look at the first one
>>> pats[0]
PublicationBiblio(publication_number=7841958, publication_date=2010-11-30, patent_title=Modular table tennis game)

# 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'

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

patent_client-3.2.2.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

patent_client-3.2.2-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file patent_client-3.2.2.tar.gz.

File metadata

  • Download URL: patent_client-3.2.2.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b1 CPython/3.10.9 Linux/5.15.0-1031-azure

File hashes

Hashes for patent_client-3.2.2.tar.gz
Algorithm Hash digest
SHA256 57a0160026ad84dd605ac9cebde1622732715c2f6318262c49130468aadae055
MD5 96b78e16cd8f1d46fcc71600ec3e1e57
BLAKE2b-256 0e6470a9444e33b6ab9d2b12358de540693629e38cccfbe6bf407f0379212803

See more details on using hashes here.

File details

Details for the file patent_client-3.2.2-py3-none-any.whl.

File metadata

  • Download URL: patent_client-3.2.2-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b1 CPython/3.10.9 Linux/5.15.0-1031-azure

File hashes

Hashes for patent_client-3.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ca860f5726519a237d6eea66ff4e3054488dffe7a08cb93a50fe637d023b10aa
MD5 b8c8c276076f5e233ff199ba8e5a8f81
BLAKE2b-256 ee455f21d1449b720c31f3896f8c174f5e024442eaa2ad16af5a2ca9835fda7b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page