Agent Passport Standard (APS) — Python SDK
Project description
APS Python SDK
Python SDK for the Agent Passport Standard v0.1.
Install
pip install -e ".[dev]"
Quick Start
from aps import AgentPassport, PassportConfig, Skill, Soul, Policies, Lineage, generate_key_pair
pub, priv = generate_key_pair()
from cryptography.hazmat.primitives.serialization import Encoding, PublicFormat
pub_hex = pub.public_bytes(Encoding.Raw, PublicFormat.Raw).hex()
passport = AgentPassport.new(PassportConfig(
id="did:key:z6MkExample",
public_key=pub_hex,
owner_did="did:key:z6MkOwner",
skills=[Skill("python", "1.0.0", "Python dev", ["code_write"], "0x" + "ab" * 32)],
soul=Soul("focused", "tdd", [], "0x" + "cd" * 32),
policies=Policies("0x" + "ef" * 32, ["can_bid"]),
lineage=Lineage("original", [], 0),
))
passport.sign(priv)
assert passport.verify(pub)
Tests
python -m pytest tests/ -v
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
aps_sdk-1.1.0.tar.gz
(31.2 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
aps_sdk-1.1.0-py3-none-any.whl
(25.9 kB
view details)
File details
Details for the file aps_sdk-1.1.0.tar.gz.
File metadata
- Download URL: aps_sdk-1.1.0.tar.gz
- Upload date:
- Size: 31.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b542a34b36fc76f9c5dbaf9b62bcbd1b8406cf39f794a262abf4121a3a7e7288
|
|
| MD5 |
ebdc5ef7b425999bccf8bdba8154eeb8
|
|
| BLAKE2b-256 |
44a983dff386ceb5e71815d9df7a68423218537629de38de174952e9905c3856
|
File details
Details for the file aps_sdk-1.1.0-py3-none-any.whl.
File metadata
- Download URL: aps_sdk-1.1.0-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb7f01b7d3ea48da04b9a62233bdc2a47760237485a94fc2b0914feec0bf18dd
|
|
| MD5 |
70c1ad986b0606463bb566a26f4a542e
|
|
| BLAKE2b-256 |
74562e59333ad02229f4e8c383aa207e8066dcf1602c78c5e8cbcaf7254c1e3f
|