Wickra Feature Store — Python
Python bindings for wickra-feature-store,
the data-driven feature-matrix core. Build a FeatureStore from a spec JSON,
drive it with command JSONs, and read back feature matrices — the same command
protocol every language binding speaks.
Install
pip install wickra-feature-store
Usage
import json
from wickra_feature_store import FeatureStore
spec = json.dumps({
"universe": ["AAA"],
"features": [
{"kind": "indicator", "name": "Sma", "params": [2]},
{"kind": "price", "field": "close"},
],
"labels": [{"kind": "forward_return", "horizon": 1}],
})
store = FeatureStore(spec)
def candle(ts, close):
return {"ts": ts, "open": close, "high": close,
"low": close, "close": close, "volume": 1.0}
response = store.command(json.dumps({
"cmd": "build_batch",
"data": {"AAA": [candle(0, 100.0), candle(1, 110.0), candle(2, 121.0)]},
}))
matrix = json.loads(response)
print(matrix["columns"]) # ['Sma(2)', 'price.close', 'fwd_return(1)']
# Straight into pandas:
# import pandas as pd
# df = pd.DataFrame(matrix["data"], columns=matrix["columns"])
API
| Method | Description |
|---|---|
FeatureStore(spec_json) |
Build a feature store from a spec JSON (raises ValueError if invalid). |
store.command(cmd_json) -> str |
Apply a command JSON, return the response JSON. Commands: set_spec, push, push_batch, build, build_batch, labels, reset, version. |
FeatureStore.version() -> str |
The library version. |
Arrow / Parquet output is a binary file format and is not available over this
JSON surface; use the wickra-feature-store CLI for columnar output.
Build from source
maturin develop --release
pytest -q
License
MIT OR Apache-2.0.
Metadata
Release files for wickra-feature-store 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wickra_feature_store-0.1.1.tar.gz | 64.2 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| wickra_feature_store-0.1.1-cp39-abi3-win_arm64.whl | CPython 3.9 | abi3 | Windows ARM64 | Details |
| wickra_feature_store-0.1.1-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| wickra_feature_store-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ x86-64 | Details |
| wickra_feature_store-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ ARM64 | Details |
| wickra_feature_store-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| wickra_feature_store-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| wickra_feature_store-0.1.1-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| wickra_feature_store-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 5.9 MB
Release files / wickra_feature_store-0.1.1.tar.gz
| Download URL | wickra_feature_store-0.1.1.tar.gz |
|---|---|
| Size | 64.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a2cbe86f85b1e057545ae52d5252929edb90a68a57b2acc86037a6d88edc3eb
|
|
BLAKE2b-256 checksum How to use checksums |
4a9337c6e2dd99226ab94ed201e0d46851f87bed6d2fa24856ee81901abb277c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.1-cp39-abi3-win_arm64.whl
| Download URL | wickra_feature_store-0.1.1-cp39-abi3-win_arm64.whl |
|---|---|
| Size | 555.1 kB |
| Tags | CPython 3.9 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
3cbed85a5f99bc9f09a1f4c536b6cc550768cbdd44d73f4acd158c3ae84f9104
|
|
BLAKE2b-256 checksum How to use checksums |
7baa6b598d9cc2c584640c5f9088fc0cd8ff074d41012a2587280556007f1204
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.1-cp39-abi3-win_amd64.whl
| Download URL | wickra_feature_store-0.1.1-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 635.3 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
78709261821484108603052954cc76a3a53b90c71e0eb62d1b7e05c065b7f2df
|
|
BLAKE2b-256 checksum How to use checksums |
649c45cb1fb6a8d6db3ef4cb378e1411dc6fa20e0e30b0e5385cdb0ae0912104
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | wickra_feature_store-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 975.1 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
84f9b9ec7bb7f9f6801cc57d1ca2e71190549d3a87552443ca6ff334d3ac46f4
|
|
BLAKE2b-256 checksum How to use checksums |
7ea94ffa59eb14d127a6833c396f977499e5f0beabbff58d972c2420adc90743
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | wickra_feature_store-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 857.9 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
c222220b1f798f2af1cb6661390da58385cb18c690c5378acd4bf29cc8600683
|
|
BLAKE2b-256 checksum How to use checksums |
386d128b45fdec57537bc5e65594b7cc6c134f14bad54b5511962c1e2035a8ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | wickra_feature_store-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 758.2 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
422df197e5eae581b4f2952a6523cde694c4b00ab32957edc62d5d9954aeed86
|
|
BLAKE2b-256 checksum How to use checksums |
4f6a529c0fcacfd590e80ebcb414798064befab62fb1789da92a8750c9c37e7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | wickra_feature_store-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 678.0 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
1dfc4f83a44e12e213fec3e531b094424a442eef7bbc1179a35076bd6b5a43fa
|
|
BLAKE2b-256 checksum How to use checksums |
7a2c3793899a31c13fdf32b3d5af8e8c7cbc341761afd900e5c7b103d7bcef15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | wickra_feature_store-0.1.1-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 623.5 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
800aaa567f1c14ee1bc4c700a203598fa37c8f1fd60a269ee51bccf3ca314d19
|
|
BLAKE2b-256 checksum How to use checksums |
a31ff79406ed806a3464f1500616c713ebce82ecd5ced29d9c273ff903a91e88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | wickra_feature_store-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 722.8 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
769d210172092e7438f432c332614c77e010dff2e48e6443f15408bba71bd4bd
|
|
BLAKE2b-256 checksum How to use checksums |
1ff65e0f11e29b35310f1e541519a047420d3ecd528b5fbfa57b6906b47a4373
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|