Skip to main content

Stable qualified names and immutable metadata contracts for SheafLab packages.

Project description

sheafcommons

sheafcommons contains small, dependency-free contracts for values that need to cross package boundaries without becoming ad-hoc strings or mutable dicts. The first release provides qualified names and immutable metadata with explicit merge conflict handling.

from sheafcommons import Metadata, QualifiedName

asset = QualifiedName.parse("vision:camera/front")
labels = Metadata.from_mapping({"owner": "capture", "tier": "primary"})
merged = labels.merge(Metadata.from_mapping({"format": "rgb"}))

assert str(asset) == "vision:camera/front"
assert merged["format"] == "rgb"

QualifiedName keeps a namespace separate from its local identifier. Metadata preserves sorted, immutable entries and rejects conflicting values by default, making ownership changes visible at composition boundaries.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sheafcommons-0.1.0a1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sheafcommons-0.1.0a1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file sheafcommons-0.1.0a1.tar.gz.

File metadata

  • Download URL: sheafcommons-0.1.0a1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sheafcommons-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 019d4ec6c8578a5a09b50df22bbb4cbd8300cf4eccb9535ead0daed252adbf1d
MD5 653b76c42d968e0e43e16ba0c7f75ea2
BLAKE2b-256 c456cfddb3d02269322a764b3ecb37180a78ff85e813fd63ed2d250bbc9f641e

See more details on using hashes here.

File details

Details for the file sheafcommons-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: sheafcommons-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sheafcommons-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 3cc394d133745a1ebef17a2139059281c21189c0e629916710746a2ef125647e
MD5 934bb2c225c70362167da7604cc27040
BLAKE2b-256 25e61ddd39a44eaccd4db7a37c7aecc9fa928fbb7925420c0d85497fe9bc16ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page