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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file paive_agents-0.2.0.tar.gz.
File metadata
- Download URL: paive_agents-0.2.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7ea83eac6bd92ee072500424bca452569fdc220d6494bacec09e946457e6f0b
|
|
| MD5 |
269b068045923a8727a2678388adba5d
|
|
| BLAKE2b-256 |
5722eaa774d4551db8887b1a990190d80f28ae9b955e671aabc0fce39bef1a82
|
File details
Details for the file paive_agents-0.2.0-py3-none-any.whl.
File metadata
- Download URL: paive_agents-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
012550781dd88504ddf98d56e85c1839a277a7e3477b1b2f66c57680dcf11589
|
|
| MD5 |
fcba66237b0269626fd54c6809df3854
|
|
| BLAKE2b-256 |
368409343220681d5b2208e11d625fe737933374f8654fa39d07d0867b36ad21
|