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.2.tar.gz (10.3 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.2-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: asqav-0.2.2.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for asqav-0.2.2.tar.gz
Algorithm Hash digest
SHA256 284ce524d073f7a5310304e99f9843747385a27f81a3a9e730656d94d2b2251f
MD5 4d90cdebf92aad410529e20fd9d515fe
BLAKE2b-256 3a093d859ce077a31e31a6d0053d4f13684f9378db50fe4bf08c93e2e122f421

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asqav-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for asqav-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd873391d0fad97ee7ba7a1ac09f433dd4c8f8f3b70bdd18490319c2577e6621
MD5 af82ddbaaaa4580ed4e4fa527f591ea4
BLAKE2b-256 bf5c58b68f5c48f89f24f301b1aa2b9678bd2b7142cd63ff33447813a0022b28

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