Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

agentidentity-1

Agent Identity Systems Python SDK

agentaisidentitysdk
Published16 Apr 2026
Direct dependencies3
Transitive dependenciesNot calculated

README

Version 0.1.0 documentation

agentidentity_1

Python SDK for the Agent Identity Systems API.

Install

pip install agentidentity_1

Quickstart

from agentidentity_1 import AISClient, RegisterAgentInput

ais = AISClient(base_url="https://api.agentidentity_1.io")

# Register a new agent (plaintext key returned once)
resp = ais.register(RegisterAgentInput(
    name="my-agent",
    risk_tier="TIER_1",
    owner_id="org-abc123",
))
print("Agent ID:", resp.agent.id)
print("API Key (store securely):", resp.api_key)

# Verify authorization
result = ais.verify(resp.agent.id)
print("Authorized:", result.authorized)   # True
print("Query time:", result.query_ms, "ms")

# Get agent + credential summaries (no plaintext)
agent_resp = ais.get_agent(resp.agent.id)
cred = agent_resp.credentials[0]

# Revoke a credential
ais.revoke_credential(resp.agent.id, cred.id, revoke_reason="rotating keys")

# Authorized is now False
after = ais.verify(resp.agent.id)
print("Authorized after revoke:", after.authorized)  # False

Context manager

with AISClient(base_url="https://api.agentidentity_1.io") as ais:
    result = ais.verify(agent_id)

Error handling

from agentidentity_1 import AISClient, AISError

try:
    ais.verify("does-not-exist")
except AISError as e:
    print(e.status, e.body["error"])  # 404 agent not found

Requirements

  • Python 3.10+
  • httpx ≥ 0.27

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 3

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
httpx
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
httpx>=0.27.0runtime
pytest-httpx
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pytest-httpx>=0.30; extra == "dev"runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pytest>=8.0; extra == "dev"runtime

Distribution files

2 collected
agentidentity_1-0.1.0-py3-none-any.whl

bdist_wheel · 4.96 KB · Python py3

Source file
agentidentity_1-0.1.0.tar.gz

sdist · 4.7 KB · Python source

Source file

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:26 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:edd81bb81b3bd25dcdfd768177a24876c3aa5414d391b879cbf6a8a7d0fbab6d

Other collected versions

View all collected versions →