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.0
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.0.tar.gz | 64.2 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| wickra_feature_store-0.1.0-cp39-abi3-win_arm64.whl | CPython 3.9 | abi3 | Windows ARM64 | Details |
| wickra_feature_store-0.1.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| wickra_feature_store-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ x86-64 | Details |
| wickra_feature_store-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ ARM64 | Details |
| wickra_feature_store-0.1.0-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.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| wickra_feature_store-0.1.0-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| wickra_feature_store-0.1.0-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.0.tar.gz
| Download URL | wickra_feature_store-0.1.0.tar.gz |
|---|---|
| Size | 64.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c440f62554b2d3af6d142ae3f550944c05331dbf841262b55710457dd1ece00f
|
|
BLAKE2b-256 checksum How to use checksums |
70eeed9468bcfdbf5051b22f87649ba0d2f83e6ef516e4ba00b8f1eff0e24d1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.0-cp39-abi3-win_arm64.whl
| Download URL | wickra_feature_store-0.1.0-cp39-abi3-win_arm64.whl |
|---|---|
| Size | 555.1 kB |
| Tags | CPython 3.9 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
33b7533d043853487368e491ac891879450b271430da6183f0e2e9cd3dd65a4b
|
|
BLAKE2b-256 checksum How to use checksums |
021ab1c0adc57bc8e6e68804bae4d1ab7a8e60f06ba95df8892031bde5fdc73e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.0-cp39-abi3-win_amd64.whl
| Download URL | wickra_feature_store-0.1.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 635.3 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d9ecad89b7e83a20289f1d0babd984a3e6e1748742860df69cb1cbe7c76e66dd
|
|
BLAKE2b-256 checksum How to use checksums |
5f6c33fc87631df489c1d7eb1e0d863c2a9d9271b01532d5aba89e11cbbd524b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | wickra_feature_store-0.1.0-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 |
1ae01a0ebab633f1502ee06acd032aeb73e9867158a710fc701bb34d2f5c4e6a
|
|
BLAKE2b-256 checksum How to use checksums |
99b8af87ce557f338dd93dd6d0364170531fb91378c98f4c0638cbcad906a02b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | wickra_feature_store-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 858.0 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
255b4912e70636c8e6b5f0cc34c7bce58e23afee17a8a38301b75307969bed57
|
|
BLAKE2b-256 checksum How to use checksums |
aeea3f5596476337796f38dd18d5ae41c12bf1884210696baca33a66e9a197cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | wickra_feature_store-0.1.0-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 |
ac112a1a3677112deb2651d4e1b8a34f67429b80c053c9d3fca6ee471a4fd352
|
|
BLAKE2b-256 checksum How to use checksums |
e49ab4d58d63139e62ea6069b491e9261cccdf35acb983851d5709ad24b6bb83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | wickra_feature_store-0.1.0-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 |
6e136c7e8b18380542f987512badcaa0e7ca980b6fcd9afabaf1c9af77236715
|
|
BLAKE2b-256 checksum How to use checksums |
dd6aeeb827d78648fc4023a1a7e87ed5f2e2bdd77d4f1162a9812224e17c1bb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | wickra_feature_store-0.1.0-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 |
2bd82bce7cc65517f5ed05cdbd42faba6f6fed44e76d84940587e300ba4c315b
|
|
BLAKE2b-256 checksum How to use checksums |
b8a185eebe4289e32626bce8836aa9fbe10c18f72ccda7d499ae34e700b649b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_feature_store-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | wickra_feature_store-0.1.0-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 |
7734660410ed18672d228886fdbe0105fdee11265b9f25187842c154e4943402
|
|
BLAKE2b-256 checksum How to use checksums |
e77711940446cbcc7becf4f2c0e49d27a878137e8ed6143be9c0e74d587b3b52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|