Quantum-safe control for AI agents
Project description
asqav
Thin API client for asqav.com. All ML-DSA cryptography happens 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
Release history Release notifications | RSS feed
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.5.tar.gz
(10.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
asqav-0.2.5-py3-none-any.whl
(11.3 kB
view details)
File details
Details for the file asqav-0.2.5.tar.gz.
File metadata
- Download URL: asqav-0.2.5.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
375fe75ec81cd2c6df1f777b8bef02993477047b560fc53795b6c456f8d778c9
|
|
| MD5 |
03900760923cc0e37cffc451d1085a1e
|
|
| BLAKE2b-256 |
b14bef3d3fe1739f82b12c02221220641b7ec389026f5d1ef6777f71d8c2c561
|
File details
Details for the file asqav-0.2.5-py3-none-any.whl.
File metadata
- Download URL: asqav-0.2.5-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6199d1054f22a675a4580ee7672209be204f0c57ac566e2cff5af1efb3fcb1f2
|
|
| MD5 |
e4016631083374a3bf871076857d1af1
|
|
| BLAKE2b-256 |
b1af301b22497078784e8d09417278cd09ada20c8705959960547ea141ec5822
|