Skip to main content

syft-migration

Versioning and on-the-fly migration foundation for Syft objects.

Lets peers running different package versions exchange data by upgrading or downgrading serialized objects to a version the other side understands.

Building blocks

  • MigratableObject — base for any versioned object (canonical_name + version), auto-registers via __init_subclass__.
  • PackageProtocolSchema — the protocol surface of one release of one package (protocol_name, package_name, package_version, one version per object).
  • MigrationRegistry — per-package registry of all object versions, migration edges, and the current + historical protocol schemas.
  • MigrationService — upgrades/downgrades objects, including to the version a peer's package version supports.
  • protocol_version_at_least — compares two protocol versions as integers, so "10" is later than "2". Use it instead of a string or int() comparison.
  • coverage — checks a package runs against its own registry: unregistered_objects finds a versioned object filed into another package's registry, and missing_upgrade_paths / missing_downgrade_paths find a version that cannot reach latest or cannot reach a lower version. Each returns findings, so empty means covered.

Docs

  • Object Versions — how to add a version to a versioned object, and which migrations the new version needs.

Dev

uv pip install -e packages/syft-migration
just test-unit-migration

Metadata

Release files for syft-migration 0.1.2

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

Source distribution (sdist)

Source distribution for syft-migration 0.1.2
File Size Uploaded Provenance Actions
syft_migration-0.1.2.tar.gz 19.2 kB Without provenance Details for syft_migration-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for syft-migration 0.1.2
File Interpreter ABI Platform Actions
syft_migration-0.1.2-py3-none-any.whl Python 3 none any Details for syft_migration-0.1.2-py3-none-any.whl

Total release size: 31.0 kB

Release files / syft_migration-0.1.2.tar.gz

Download URL syft_migration-0.1.2.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b1ec41efdc24dee2a2586ecc3e86628998dd89c9e8c26a76270f5ccda35171de
BLAKE2b-256 checksum
How to use checksums
7f43657ed9cc6cb88520d814416769403a6b1752bd8e23ee043235bb7a80987e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / syft_migration-0.1.2-py3-none-any.whl

Download URL syft_migration-0.1.2-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92273fe24999d40c5fd6084a5db2b932d22ef7e56fddd5a25a1f0e40ef67f4a8
BLAKE2b-256 checksum
How to use checksums
a787ff95be04ce7488c22187e37bca0aac670d643421414b3e3390dd18304cb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for syft-migration 0.1.2

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.

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