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.suspend(reason="investigation", note="...")  # Temporary disable
agent.unsuspend()  # Re-enable suspended agent
agent.revoke(reason="manual")  # Permanent revoke

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.3.tar.gz (10.6 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.3-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: asqav-0.2.3.tar.gz
  • Upload date:
  • Size: 10.6 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.3.tar.gz
Algorithm Hash digest
SHA256 ebd9fc79a19dd3389b46def2f97d898bb6298bc73ac519e31f9963b661119f47
MD5 b81951e8a751c62a311a714883c956ce
BLAKE2b-256 3b6777e8111ed6d462d3ea26fc1d9bb5f1a057fc7977441401e5af0b0659a7ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asqav-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 11.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3d71c39cfc90ae926d63c1359a61f8a72d0877ff52d84e6d603fab1d46b6b505
MD5 bff0c0c9321a1ee53ae82f16774e8017
BLAKE2b-256 d0ba045b38ee18f782f9a0a6545b3bbca0aef5319878b2764e32e326bb8c12ec

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