Identity SDK for Python
Project description
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.
[!NOTE] If the node is running locally, you must add the following environment variable:
IDENTITY_NODE_USE_SSL: 0, to disable SSL verification.
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 agntcy_identity_sdk-0.0.3.tar.gz.
File metadata
- Download URL: agntcy_identity_sdk-0.0.3.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
074aafd644e1cd0800c34c4831bcac66bc6fd8b31242170c3f5b92956fea1a6a
|
|
| MD5 |
648a7a924f778321a774618166452943
|
|
| BLAKE2b-256 |
187542c095158076fa75667477eaee493ea39e08f87f7e89fbec80f4413c37e4
|
File details
Details for the file agntcy_identity_sdk-0.0.3-py3-none-any.whl.
File metadata
- Download URL: agntcy_identity_sdk-0.0.3-py3-none-any.whl
- Upload date:
- Size: 38.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd9f592c29614e3264fea9d7f977298a065cd88e07118f3dc7a3aaad2097b1f5
|
|
| MD5 |
86107e439194f42cfbdc5c0d659b9061
|
|
| BLAKE2b-256 |
67b1ec0ea6c42244cfc3cff838fc6faf4eaab7f9ee25d93508c83e7ff9966a7b
|