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

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.26
File Size Uploaded
agntcy_identity_sdk-0.0.26.tar.gz 43.5 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.0.26 This release

2 release files

0.0.25

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