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.3

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.3
File Size Uploaded Provenance Actions
syft_migration-0.1.3.tar.gz 19.3 kB Without provenance Details for syft_migration-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 31.0 kB

Release files / syft_migration-0.1.3.tar.gz

Download URL syft_migration-0.1.3.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b8837d485c2f7805e030783a46183529cb2aabb15489212cd38598c15739c8c6
BLAKE2b-256 checksum
How to use checksums
55c79af981363cf509c3455cb6728b54f2574ddd5b0ab1bfa5585be581159da1
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.3-py3-none-any.whl

Download URL syft_migration-0.1.3-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2799eea5137802ccf7d91f780b02ee9864abe8223c06c41326051d5a7a9e765
BLAKE2b-256 checksum
How to use checksums
f700a3bc7edeb8fa539a4ad524f407af20456db6238b494a515f11c596907071
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.3

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