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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ef70f1f3568921346e9d15041ce18d56642a50f0d05cfc6705dd68d4cbdad3f
|
|
| MD5 |
fa7d4735f238f11a35636fe5a2dac748
|
|
| BLAKE2b-256 |
7316aca80a6e48d26e1b560c33c90c91feb2e749a6d4570c25f2831be7399769
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08f55cf9eb8bca3f902f3d5aeed0ee4f4edd80507a36e381860f6b48f9b9efa2
|
|
| MD5 |
2864b8d3f0cdfa09cc080d7518739e7f
|
|
| BLAKE2b-256 |
4fd79e11d5668120f1b6b16de66ba0d3b603c5950088a295932d0573949ea54c
|