Skip to main content

paive-agents

Official Python SDK for the Paive patent intelligence report API.

Install

pip install paive-agents

Before publishing publicly

src/paive_agents/client.py currently defaults to a staging server:

DEFAULT_BASE_URL = "http://34.29.194.252:8000"

This is a working staging link (plain HTTP, IP-based). Before publishing this package anywhere public (PyPI, external customers), swap this for your real production domain over HTTPS. Until then, this default is fine for internal testing.

Sync usage

from paive_agents import Client

client = Client(api_key="YOUR_API_KEY")

report = client.generate_report(
    patent_id="US12093418B2",
    tech_sector="Biotech / Therapeutics",
    clp_factors=["Application Effect", "Benchmarking Data"],
    market_factors=["Application Effect"],
    licensing_factors=["Application Effect"],
)

print(report.pdf_file)

Async usage

from paive_agents import AsyncClient

client = AsyncClient(api_key="YOUR_API_KEY")
report = await client.generate_report(patent_id="US12093418B2")

PDF upload instead of patent_id

report = client.generate_report(pdf_path="/path/to/patent.pdf")

Errors

All errors subclass paive_agents.PaiveError and carry .status_code and .response_body:

  • AuthenticationError — invalid/missing API key (401)
  • PermissionDeniedError — user lacks permission (403)
  • InvalidRequestError — bad request (400/404)
  • RateLimitError — usage limit exceeded (429)
  • ServerError — server-side failure (500+)
  • APIConnectionError — network/connection failure

What this SDK does NOT change

This package only talks to the existing /api/keys/generate_report endpoint over HTTP, using the same field names and the same X-API-Key auth your Django backend already expects. No backend files were modified to build this SDK.

Download files

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

Source Distribution

paive_agents-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

paive_agents-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: paive_agents-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for paive_agents-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2ba71a25863593ffdcd5c22a63a34240b3c46f79fc453bf144ec5280152e40ab
MD5 cb561a7e1512585e78546f87a33fbb10
BLAKE2b-256 edd34184f5d633cd6aad1511783ac3c1446daeb943976d6d4cb77f42fe0a7071

See more details on using hashes here.

File details

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

File metadata

  • Download URL: paive_agents-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for paive_agents-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b0c883fa2c2a32791cd4a3e12878659ff862d96b02626cbe08e4058a4e96f74
MD5 882762e95396184bb2273081f0f04f84
BLAKE2b-256 6cce8e46e3b8e75b984b67cd470080095236aada897a87a349650d098cb27957

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 Sentry Error logging StatusPage Status page