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
Metadata
Release files for aps-sdk 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aps_sdk-1.1.0.tar.gz | 31.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aps_sdk-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 57.2 kB
Release files / aps_sdk-1.1.0.tar.gz
| Download URL | aps_sdk-1.1.0.tar.gz |
|---|---|
| Size | 31.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b542a34b36fc76f9c5dbaf9b62bcbd1b8406cf39f794a262abf4121a3a7e7288
|
|
BLAKE2b-256 checksum How to use checksums |
44a983dff386ceb5e71815d9df7a68423218537629de38de174952e9905c3856
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / aps_sdk-1.1.0-py3-none-any.whl
| Download URL | aps_sdk-1.1.0-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb7f01b7d3ea48da04b9a62233bdc2a47760237485a94fc2b0914feec0bf18dd
|
|
BLAKE2b-256 checksum How to use checksums |
74562e59333ad02229f4e8c383aa207e8066dcf1602c78c5e8cbcaf7254c1e3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|