Python client for the AgentScore trust and reputation API
Project description
agentscore-py
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
Project details
Release history Release notifications | RSS feed
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 agentscore_py-1.0.2.tar.gz.
File metadata
- Download URL: agentscore_py-1.0.2.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6be7c0ccc9fb953278107fd70b39458719aae125f9d1e47350af82b226063a2c
|
|
| MD5 |
b130a8ab1302f0bf77ac273bdaae80c8
|
|
| BLAKE2b-256 |
9a2580a87bcc8dadd1e8009cb9837184946c02b5ec7100e1eb5089cc1920232b
|
Provenance
The following attestation bundles were made for agentscore_py-1.0.2.tar.gz:
Publisher:
publish.yml on agentscore/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentscore_py-1.0.2.tar.gz -
Subject digest:
6be7c0ccc9fb953278107fd70b39458719aae125f9d1e47350af82b226063a2c - Sigstore transparency entry: 1148345503
- Sigstore integration time:
-
Permalink:
agentscore/python-sdk@c676f32e5cb08efc7c0191e2fccb9042f8ad2a6f -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/agentscore
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c676f32e5cb08efc7c0191e2fccb9042f8ad2a6f -
Trigger Event:
push
-
Statement type:
File details
Details for the file agentscore_py-1.0.2-py3-none-any.whl.
File metadata
- Download URL: agentscore_py-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
796d26f064fccc5f0475aaf58d5977f799ef85e9be3beac3600c49cf4d4185d6
|
|
| MD5 |
047fd0dc7a56d44ed2fba6d6dc7aab67
|
|
| BLAKE2b-256 |
d46df26c7b9cf002516263739f383129868edb44cfe8ec469b34d19875e7b1ef
|
Provenance
The following attestation bundles were made for agentscore_py-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on agentscore/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentscore_py-1.0.2-py3-none-any.whl -
Subject digest:
796d26f064fccc5f0475aaf58d5977f799ef85e9be3beac3600c49cf4d4185d6 - Sigstore transparency entry: 1148345542
- Sigstore integration time:
-
Permalink:
agentscore/python-sdk@c676f32e5cb08efc7c0191e2fccb9042f8ad2a6f -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/agentscore
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c676f32e5cb08efc7c0191e2fccb9042f8ad2a6f -
Trigger Event:
push
-
Statement type: