Skip to main content

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:

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.

Metadata

Release files for agntcy-identity-service-sdk 0.0.9

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-service-sdk 0.0.9
File Size Uploaded
agntcy_identity_service_sdk-0.0.9.tar.gz 75.4 kB Details

Built distribution (wheel)

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

Total release size: 182.7 kB

Release files / agntcy_identity_service_sdk-0.0.9.tar.gz

Download URL agntcy_identity_service_sdk-0.0.9.tar.gz
Size 75.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ec60e3d222654cc017a8b00f81b04b623867e2006d59e23ef99eb70025484017
BLAKE2b-256 checksum
How to use checksums
79b2398d5984b04d1f22878a6282ba5679cfcf89bce2a88f2767f00668083285
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / agntcy_identity_service_sdk-0.0.9-py3-none-any.whl

Download URL agntcy_identity_service_sdk-0.0.9-py3-none-any.whl
Size 107.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccc63b33ad214cb9985d2e8f027a812d27860f47690c79647ca04928e5f29673
BLAKE2b-256 checksum
How to use checksums
cc4b2838792cf14c0e2e40932ee1db5a39a07ca76dcdcc5480be1fd0d9ec6816
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

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