Skip to main content

USPTO-patent-citation-graph

Graph that downloads patent citation data from USPTO's PatentsView API on-demand and stores it locally in an SQL database (and in memory) for fast access later.

The project is based on the graphscraper project, please see that project for the details of the graph API.

Installation

Install the latest version of the project from the Python Package Index using pip install uspto-patent-citation-graph.

Getting started

Creating a graph instance that will use a default, on-disk SQLite database:

from uspto_patent_citation_graph import USPTOPatentCitationGraph

graph = USPTOPatentCitationGraph(None)

Loading a node that is not in the local database yet:

# `can_validate_and_load=True` tells the graph's node list that it is allowed to
# load data from the PatentsView API. Its default value is `False`, and the
# argument can be omitted if the given patent is already in the local database.
patent_number = "4733665"  # Stent patent
stent_patent = graph.nodes.get_node_by_name(patent_number, can_validate_and_load=True)

Accessing a node's neighbors (cited and cited-by patents):

print(f"Neighbors of {stent_patent.name}:")
for neighbor in stent_patent.neighbors:
    print(f" - {neighbor.name}: {neighbor.external_id}")

Community guidelines

Any form of constructive contribution is welcome:

  • Questions, feedback, bug reports: please open an issue in the issue tracker of the project or contact the repository owner by email, whichever you feel appropriate.
  • Contribution to the software: please open an issue in the issue tracker of the project that describes the changes you would like to make to the software and open a pull request with the changes. The description of the pull request must references the corresponding issue.

The following types of contribution are especially appreciated:

License - MIT

The library is open-sourced under the conditions of the MIT license.

Metadata

Release files for uspto-patent-citation-graph 0.2109.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uspto-patent-citation-graph 0.2109.0
File Size Uploaded
uspto-patent-citation-graph-0.2109.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uspto-patent-citation-graph 0.2109.0
File Interpreter ABI Platform
uspto_patent_citation_graph-0.2109.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 kB

Release files / uspto-patent-citation-graph-0.2109.0.tar.gz

Download URL uspto-patent-citation-graph-0.2109.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
979f68c438fa0d14ce9f8a2b0484dc91504edb7a8417b6b78eb378d803e9243d
BLAKE2b-256 checksum
How to use checksums
59e52081e134c081d9f5df94b0ed86d38da1fa424697fe2a174ead4eb5e30917
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release files / uspto_patent_citation_graph-0.2109.0-py3-none-any.whl

Download URL uspto_patent_citation_graph-0.2109.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcc4c3c89452afd4dfc5fea5e0930c6ef2ae7224c8e7857ce68bd029820d2327
BLAKE2b-256 checksum
How to use checksums
57f33e6581f2396fc0b77de574b8591da90474f4d1074edbb77ac15013335c45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.2109.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page