Skip to main content

agentscore-py

PyPI version License: MIT

Python client for the AgentScore trust and reputation API. Score, verify, and assess AI agent wallets in the x402 payment ecosystem and ERC-8004 agent registry.

Install

pip install agentscore-py

Quick Start

from agentscore import AgentScore

client = AgentScore(api_key="ask_...")

# Free reputation lookup
rep = client.get_reputation("0x1234...")
print(rep["grade"], rep["score"])

# Trust decision with policy
decision = client.get_decision("0x1234...", min_grade="C", min_transactions=5)
print(decision["decision"]["allow"])

Async

async with AgentScore(api_key="ask_...") as client:
    rep = await client.aget_reputation("0x1234...")
    print(rep["grade"])

Context Manager

with AgentScore(api_key="ask_...") as client:
    rep = client.get_reputation("0x1234...")

Configuration

Parameter Default Description
api_key None API key from agentscore.sh
base_url https://api.agentscore.sh API base URL
timeout 10.0 Request timeout (seconds)

Error Handling

from agentscore import AgentScore, AgentScoreError

try:
    rep = client.get_reputation("0xinvalid")
except AgentScoreError as e:
    print(e.code, e.status_code, str(e))

Documentation

License

MIT

Metadata

Release files for agentscore-py 1.0.3

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

Source distribution (sdist)

Source distribution for agentscore-py 1.0.3
File Size Uploaded Provenance Actions
agentscore_py-1.0.3.tar.gz 25.2 kB With provenance Details for agentscore_py-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentscore-py 1.0.3
File Interpreter ABI Platform Actions
agentscore_py-1.0.3-py3-none-any.whl Python 3 none any Details for agentscore_py-1.0.3-py3-none-any.whl

Total release size: 31.6 kB

Release files / agentscore_py-1.0.3.tar.gz

Download URL agentscore_py-1.0.3.tar.gz
Size 25.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d3a7b2b9848597ccb884db77210fed7870cff2b872da0762aac95a045ef521d6
BLAKE2b-256 checksum
How to use checksums
aac20c51287f1b881477d347ed495df591607eac4d1cd63eec9cab6286096e66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 20, 2026.

Transparency log

Release files / agentscore_py-1.0.3-py3-none-any.whl

Download URL agentscore_py-1.0.3-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35be1f21e6b541fc282e2017c1ca0313fed1d75c23c4cfc0692d7a64bc51c31f
BLAKE2b-256 checksum
How to use checksums
d4b62f2b6519c33bb04809d7c0880e943aa2127e5abade946118480a15b2ce53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 20, 2026.

Transparency log

Security for agentscore-py 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agentscore_py-1.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files Full provenance

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