Python SDK
The Python SDK provides a simple way to verify agent identities using the Identity Platform's RESTful API. It is designed to be easy to use and integrate into Python applications.
Prerequisites
To use the Python SDK, you need to have the following installed:
- Python 3.8 or later
Installation
To install the Python SDK, you can use pip:
pip install agntcy-identity-sdk
Example Usage
To get and verify an agent's badge, you can use the following code snippet:
import os
from agntcyidentity.sdk import IdentitySdk
# Initialize the Identity SDK
identity_sdk = IdentitySdk()
# Get badge by ID
badge = identity_sdk.get_badge("<ID>")
print("Got badge: ", badge)
# Verify badge
verified = identity_sdk.verify_badge(badge)
print("Badge verified: ", verified)
You must set the following environment variables:
IDENTITY_NODE_GRPC_SERVER_URL: The URL of the Identity Node gRPC server.
Metadata
Release files for agntcy-identity-sdk 0.0.26
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 |
|---|---|---|---|---|
| agntcy_identity_sdk-0.0.26.tar.gz | 43.5 kB | Without provenance | Details for agntcy_identity_sdk-0.0.26.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agntcy_identity_sdk-0.0.26-py3-none-any.whl | Python 3 | none | any | Details for agntcy_identity_sdk-0.0.26-py3-none-any.whl |
Total release size: 82.5 kB
Release files / agntcy_identity_sdk-0.0.26.tar.gz
| Download URL | agntcy_identity_sdk-0.0.26.tar.gz |
|---|---|
| Size | 43.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6381e9852fc24ffc6dd45628be9063711698a6e657b046572cb3089b5a6ed1b
|
|
BLAKE2b-256 checksum How to use checksums |
a2d8ff0e02d7e83cd43f797c3794d56d17af35b6bd9bd8ffb4b4e812c8eaeacf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / agntcy_identity_sdk-0.0.26-py3-none-any.whl
| Download URL | agntcy_identity_sdk-0.0.26-py3-none-any.whl |
|---|---|
| Size | 39.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ffbc7ac9d3098865b9ca280961a31b383cfb722f5ec79e2774a5ff06920bdec
|
|
BLAKE2b-256 checksum How to use checksums |
b56d8d450ad53b834ad21cf4da53fb06e41dba1b9a72cf6829ca7cc07943b95b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for agntcy-identity-sdk 0.0.26
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.