Skip to main content

serialize-foundation-sdk (Python)

Python client SDK for the serialize Foundation audit ledger. Mirrors @serializefoundation/foundation-sdk-ts.

Install

pip install serialize-foundation-sdk

Or in editable mode from the monorepo:

pip install -e "packages/foundation-sdk-py[dev]"

Quick start

from serialize_foundation_sdk import FoundationClient, SerialisedEventInput, Subject

client = FoundationClient(
    api_key="your-api-key",
    base_url="https://foundation.serialize.local",
)

# Record an event — actor + tenantId are resolved server-side from your API key
event = client.record_event(
    SerialisedEventInput(
        schema_version=1,
        action="create",
        subject=Subject(
            document_id="doc-001",
            version_hash="a" * 64,  # SHA-256 of document content
            document_type="swms",
        ),
    )
)
print(event.event_id)

client.close()

See CLAUDE.md for full API reference, conventions, and ADR links. See docs/adr/0005-actor-profile-system.md for why actor/tenantId are excluded from input.

Metadata

Release files for serialize-foundation-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for serialize-foundation-sdk 0.1.0
File Size Uploaded Provenance Actions
serialize_foundation_sdk-0.1.0.tar.gz 43.8 kB Without provenance Details for serialize_foundation_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for serialize-foundation-sdk 0.1.0
File Interpreter ABI Platform Actions
serialize_foundation_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for serialize_foundation_sdk-0.1.0-py3-none-any.whl

Total release size: 51.8 kB

Release files / serialize_foundation_sdk-0.1.0.tar.gz

Download URL serialize_foundation_sdk-0.1.0.tar.gz
Size 43.8 kB
Tags Source
SHA-256 checksum
How to use checksums
47fbe596d956e5d92b1102ffb9b3c0acaa0d22bdbe8a1fac4506847c7d52a9ed
BLAKE2b-256 checksum
How to use checksums
5160a6eeab17e625688bf5ffdbfef193ad10bff1b268ad02fa5defe487d0c438
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / serialize_foundation_sdk-0.1.0-py3-none-any.whl

Download URL serialize_foundation_sdk-0.1.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09476e46b26280d90b8f549fb196898ebc738138d659d660eb27294443de2e92
BLAKE2b-256 checksum
How to use checksums
5e0c7e4c83c56a431eb14969bd97f008717be00bae08ef37d4d6260a94aa7fad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for serialize-foundation-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page