Skip to main content

Quantum-safe identity and cryptographic audit trails for AI agents.

Project description

asqav

PyPI Python 3.10+ License: MIT

Thin API client for asqav.com. All cryptographic operations (ML-DSA signing, key generation) happen server-side. No native dependencies required.

Installation

pip install asqav

Usage

import asqav

# Initialize with your API key (get one at asqav.com)
asqav.init(api_key="sk_...")

# Create an agent
agent = asqav.Agent.create("my-agent")

# Sign an action
sig = agent.sign("api:call", {"model": "gpt-4"})

# Issue a token
token = agent.issue_token(scope=["read", "write"])

What this SDK does

This SDK asqav Cloud (server-side)
API calls ML-DSA key generation
Response parsing Cryptographic signing
Error handling Token issuance
OTEL export Signature verification

The SDK is intentionally minimal (~900 lines). All quantum-safe cryptography runs on asqav's servers.

API Reference

Initialization

asqav.init(api_key="sk_...")  # or set ASQAV_API_KEY env var

Agent

agent = asqav.Agent.create("name", algorithm="ml-dsa-65")
agent = asqav.Agent.get("agt_xxx")

agent.sign("action", {"key": "value"})
agent.issue_token(scope=["read"], ttl=3600)
agent.issue_sd_token(claims={...}, disclosable=[...])  # Business tier
agent.revoke(reason="manual")

Tracing

with asqav.span("api:openai", {"model": "gpt-4"}) as s:
    response = openai.chat.completions.create(...)
    s.set_attribute("tokens", response.usage.total_tokens)

Requirements

  • Python 3.10+

Get your API key

Sign up at asqav.com

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asqav-0.2.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asqav-0.2.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file asqav-0.2.0.tar.gz.

File metadata

  • Download URL: asqav-0.2.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for asqav-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b5058de8d9b5815347a8fe97d1487b4ffcdddf9aff3c562da8f8997404e58392
MD5 48390bdc267f3a4826fe5c0e73d1924b
BLAKE2b-256 67e97ca0232437185985f53302bedad39605ff427c975bc4db90c92336d1ccbb

See more details on using hashes here.

File details

Details for the file asqav-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: asqav-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for asqav-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a971eece953e7ad92a928a0eecb6c3eccf008ca00e5e52ce57e4e4a91d92ffbf
MD5 f88d9c5d9e4695ccd51f2cfb8dbc888d
BLAKE2b-256 65743e0e7e891af405cce999a81898507a7387b0509ab166adb68d452c527799

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page