Skip to main content

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:

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.25

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agntcy-identity-sdk 0.0.25
File Size Uploaded
agntcy_identity_sdk-0.0.25.tar.gz 43.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agntcy-identity-sdk 0.0.25
File Interpreter ABI Platform
agntcy_identity_sdk-0.0.25-py3-none-any.whl Python 3 none any Details

Total release size: 82.5 kB

Release files / agntcy_identity_sdk-0.0.25.tar.gz

Download URL agntcy_identity_sdk-0.0.25.tar.gz
Size 43.5 kB
Tags Source
SHA-256 checksum
How to use checksums
273d67ebac0eda7ed1a053cf2b3d39e4dfda77e96b3dc6b7dd1bcb9ec632f819
BLAKE2b-256 checksum
How to use checksums
714209f05963571b159ef5bcf404a81fc36697c0e30d62ae8256514e07227453
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.25-py3-none-any.whl

Download URL agntcy_identity_sdk-0.0.25-py3-none-any.whl
Size 39.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
faa58d950554eb01822cb2b24363fe14844acc54d52b42be1c82a0478cc75a74
BLAKE2b-256 checksum
How to use checksums
85af124e41367182e1498c53c6c1a58b025022cc6d4b57cbb04628fb9b45b304
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.0.26

2 release files

This release

0.0.25 This release

2 release files

0.0.24

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.13

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page