Skip to main content

Add your description here

Project description

patentfield-client

Unofficial Python Client for Patentfield API.

Usage

pip install patentfield-client
touch .env
# edit .env
# PATENTFIELD_API_KEY=<your_api_key>
from dotenv import load_dotenv

from patentfield_client import PatentfieldClient

load_dotenv()


def main():
    import json
    with PatentfieldClient() as client:
        # 1) Fulltext search (return score and app_id)
        res = client.search_fulltext("ソーラーパネル", columns=["_score", "app_id"], limit=2)
        print(json.dumps(res, ensure_ascii=False, indent=2))

        # 2) Get document (return app_doc_id / title / grant_or_app_claims)
        doc = client.get_document("JP20160057449", columns=["app_doc_id", "title", "grant_or_app_claims"])
        print(json.dumps(doc, ensure_ascii=False, indent=2))

        # 3) Get drawings URLs
        drawings = client.get_drawings("JP20160057449")
        print(drawings)


if __name__ == "__main__":
    main()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

patentfield_client-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

patentfield_client-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file patentfield_client-0.1.0.tar.gz.

File metadata

  • Download URL: patentfield_client-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for patentfield_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bde4ab2a0d95b24355622f86550ed15e2a25e3434a1149b73b7bd2ca7fc536cf
MD5 526d11dad12c1483d15476c4a488f921
BLAKE2b-256 2a81cf7f342c778ac47d8790e4e55a2d3ee3ca959c2d76656905954ec70b2b21

See more details on using hashes here.

File details

Details for the file patentfield_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for patentfield_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62ac9c8a50163a2554be87268c9569a5dfa4c47e891d321bb1a0bbd57f60b45b
MD5 609a7070bcc4edb5f04429257bc79005
BLAKE2b-256 b4339258aa91698f094a4627b7fb916d47667f9348a3a75b793bbe0207c7c89f

See more details on using hashes here.

Supported by

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