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.

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 Provenance Actions
agntcy_identity_service_sdk-0.0.9.tar.gz 75.4 kB Without provenance Details for agntcy_identity_service_sdk-0.0.9.tar.gz

Built distribution (wheel)

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

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

Security for agntcy-identity-service-sdk 0.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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