SentinelNet Python SDK
Trust scoring for ERC-8004 agents on Base.
Install
pip install sentinelnet
Or from source:
pip install git+https://github.com/Ridwannurudeen/sentinelnet.git#subdirectory=sdk/python
Quick Start
from sentinelnet import SentinelNet
sn = SentinelNet()
# Get trust score
score = sn.get_trust(31253)
print(f"Score: {score['trust_score']}, Verdict: {score['verdict']}")
# Gate an interaction
if sn.trust_gate(agent_id=42, min_score=55):
print("Agent is safe to interact with")
# Batch query
results = sn.batch_trust([1, 2, 3, 100, 200])
# Threat intelligence
threats = sn.get_threats(limit=10)
Async Usage
from sentinelnet import AsyncSentinelNet
async with AsyncSentinelNet() as sn:
score = await sn.get_trust(31253)
trusted = await sn.is_trusted(42)
API Reference
| Method | Description |
|---|---|
get_trust(agent_id) |
Get full trust score with explanation |
is_trusted(agent_id) |
Quick boolean trust check |
trust_gate(agent_id, min_score) |
Gate interactions by minimum score |
batch_trust(agent_ids) |
Query up to 100 agents at once |
get_history(agent_id) |
Score history over time |
get_graph(agent_id) |
Counterparty neighborhood |
get_threats(limit) |
Real-time threat intelligence feed |
get_stats() |
Ecosystem-wide statistics |
badge_url(agent_id) |
Embeddable SVG badge URL |
Self-Hosted
sn = SentinelNet(base_url="http://localhost:8004")
Metadata
Release files for sentinelnet 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sentinelnet-0.1.0.tar.gz | 3.6 kB | Without provenance | Details for sentinelnet-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sentinelnet-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sentinelnet-0.1.0-py3-none-any.whl |
Total release size: 7.9 kB
Release files / sentinelnet-0.1.0.tar.gz
| Download URL | sentinelnet-0.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a263a5b6d62e3301281089acde0b814c88baea03d91d58e07626f46e1f162b9
|
|
BLAKE2b-256 checksum How to use checksums |
95477878e904cef6e75de8e2531bd641ee8251be92fe91f5f22dded8c8ebd394
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / sentinelnet-0.1.0-py3-none-any.whl
| Download URL | sentinelnet-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15172809a0ec057632d20b06af4b0b03e486b5a290a2c025eced3029d3046d2b
|
|
BLAKE2b-256 checksum How to use checksums |
dffa2129c24487fb41385700a84379ebf40cac71b5376e29a248dea179cee9c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for sentinelnet 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.