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

Uploaded Python 3

File details

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

File metadata

  • Download URL: asqav-0.2.4.tar.gz
  • Upload date:
  • Size: 10.6 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.4.tar.gz
Algorithm Hash digest
SHA256 f10a2ee7fc3e8806da3e4695f722313c435c708e7eec71c2aeb331e14e80b321
MD5 e34836ec8248aad5c5e0397a6f32dd0b
BLAKE2b-256 535149ad3de0a3a480d1c2d7e23939bb2f93295bb8425606e5ac76da40e12d86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asqav-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 11.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e2d769aeeb70e0d5da3f3c1c65e4ce253c04d13ace6020032d1854050854ca0e
MD5 783fa8c3aec4f8813a8f17f6f2bf8fc9
BLAKE2b-256 fd7e405526906bd07ff76ae30be7b3bc95682050fd0c919a22752995285faf58

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