Skip to main content

Small feature-vector schemas with explicit ordering and compatibility checks.

Project description

sheafx

sheafx defines compact schemas for numeric feature vectors. A schema makes feature ordering explicit, validates incoming records, and can check whether a new schema remains compatible with an existing consumer.

from sheafx import Feature, FeatureSchema

schema = FeatureSchema((Feature("width"), Feature("height", default=1.0)))
assert schema.encode({"width": 640.0}) == (640.0, 1.0)

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

sheafx-0.1.0a1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

sheafx-0.1.0a1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sheafx-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 3ef70f1f3568921346e9d15041ce18d56642a50f0d05cfc6705dd68d4cbdad3f
MD5 fa7d4735f238f11a35636fe5a2dac748
BLAKE2b-256 7316aca80a6e48d26e1b560c33c90c91feb2e749a6d4570c25f2831be7399769

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sheafx-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 08f55cf9eb8bca3f902f3d5aeed0ee4f4edd80507a36e381860f6b48f9b9efa2
MD5 2864b8d3f0cdfa09cc080d7518739e7f
BLAKE2b-256 4fd79e11d5668120f1b6b16de66ba0d3b603c5950088a295932d0573949ea54c

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