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.1.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.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: asqav-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 94d9af87aec4b41cea6ede0e6f62346f2aaf76ecf6ca4ba0d1a8d2f695de64ea
MD5 6c2270bd191c65ebf61dfbfd08420f28
BLAKE2b-256 63f4cdfcc6e92ea014fad82db4fa3772f3dcf0669a3ca854fe0e6c116573e8d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asqav-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 352149c4628ec54d25b4f245bf074c255621dc7733cc023cee8543ba8c13d687
MD5 65537179905dcc0c912de4407da79ae6
BLAKE2b-256 64f3d5885097cc991472686ec5353e0241f73c686b1f214637d56ed2c0d48372

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