AGNTCY Identity Service SDK & CLI for Python
Project description
Python SDK
The Python SDK provides:
- A CLI to interact with local Agentic Services.
- A SDK to integrate with Agentic Services in your 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 .
Example Usage
Here is a basic example of how to use the Python SDK to verify a badge for an Agentic Service:
from dotenv import load_dotenv
from identityservice.sdk import IdentityServiceSdk as Sdk
load_dotenv()
identity_sdk = Sdk(
api_key="{YOUR_ORGANIZATION_API_KEY}"
)
try:
print(
"Got badge: ",
identity_sdk.verify_badge(
{JOSE_ENVELOPED_BADGE}
),
)
except Exception as e:
print("Error verifying badge: ", e)
You must set the following environment variables:
IDENTITY_SERVICE_GRPC_SERVER_URL: The URL of the Identity Service gRPC server.YOUR_ORGANIZATION_API_KEY: Your organization API key.
[!NOTE] If the node is running locally, you must add the following environment variable:
IDENTITY_SERVICE_USE_SSL: 0, to disable SSL verification.
For more examples, see our online Python SDK Documentation.
Project details
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_service_sdk-0.0.5.tar.gz.
File metadata
- Download URL: agntcy_identity_service_sdk-0.0.5.tar.gz
- Upload date:
- Size: 44.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a14fcbb76de432f1f7f2efbb8f56ae3b95e15561a1531ec1ba3c69b9982cbf4d
|
|
| MD5 |
f5227c5cce7e4bb75d9df4c42f488046
|
|
| BLAKE2b-256 |
70aee35db6849b6976e349f934564ab85692262400bb8f17e10db69c3373a151
|
File details
Details for the file agntcy_identity_service_sdk-0.0.5-py3-none-any.whl.
File metadata
- Download URL: agntcy_identity_service_sdk-0.0.5-py3-none-any.whl
- Upload date:
- Size: 70.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c52b725bf4a2b001a78d247691621cfd2e520303329dc2ee607309ba951be51
|
|
| MD5 |
827d10ab87bddc1ffc5b2096f27138c2
|
|
| BLAKE2b-256 |
8e67f73f051c9aa7c22091b5eb2c8c1fd31ef641fb058328b92fdf7e727134de
|