Catalog PyPI
PACKAGE EXPLORERView in registry

agent-cid

PyPI

Content-addressed artifact manifest for AI agents (Python port of @p-vbordei/agent-cid)

agentciddided25519jcsmanifestmultiformatsrfc8785
Versions collected1
Direct dependencies8From release 0.1.0
Last observed20 Oct, 21:38 UTC

README

Version 0.1.0 documentation

agent-cid (Python)

CI License

Python port of @p-vbordei/agent-cid. Content-addressed artifact manifest for AI agents — CIDv1 + Ed25519 + DID + RFC 8785 JCS. Byte-deterministic-compatible with the TypeScript reference: passes the same C1–C5 conformance vectors.

Install

pip install agent-cid

Usage

import asyncio
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
from agent_cid import build, verify, pubkey_to_did_key, BuildOpts, SignerInput

async def main():
    priv = Ed25519PrivateKey.generate()
    pub = priv.public_key().public_bytes(
        serialization.Encoding.Raw, serialization.PublicFormat.Raw,
    )
    did = pubkey_to_did_key(pub)

    manifest = await build(
        b"hello world",
        BuildOpts(
            producer_did=did,
            schema_uri="https://example.org/schema",
            media_type="text/plain",
            signers=[SignerInput(did=did, sign_fn=lambda b: priv.sign(b))],
        ),
    )
    r = await verify(manifest, b"hello world")
    print(r.ok)  # True

asyncio.run(main())

Conformance

pip install -e ".[dev]"
pytest -v

Vectors in vectors/ are copied verbatim from the TS conformance suite.

License

Apache-2.0

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.019 May 20268

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
p-vbordei/agent-cid

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
p-vbordei/agent-cid-py

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7cea6748ea5fa6fab08e5af92c541b35a817537c6a0f665cbc82fb003104c002