Wickra X-Ray — Python
Python bindings for wickra-xray-core,
built with PyO3 and maturin. The surface mirrors every other Wickra binding:
build an Xray from a spec JSON, drive it with command JSONs, and read back
render frames.
Install
pip install wickra-xray
Usage
import json
from wickra_xray import Xray
spec = json.dumps({
"dataset_ref": "mini", "symbol": "AAA",
"panels": [{"kind": "footprint", "price_bin": 1.0, "bucket_ms": 60000}],
})
xray = Xray(spec)
xray.command(json.dumps({"cmd": "load", "dataset": {
"trades": [{"ts": 1000, "price": 100.4, "qty": 2.0, "side": "buy"}],
}}))
frame = json.loads(xray.command(json.dumps({"cmd": "frame"})))
print(frame["symbol"], frame["cursor_ts"])
Surface
Xray(spec_json)builds an xray from a spec JSON (""or"{}"for an empty handle whose spec is set later). RaisesValueErroron a malformed spec.xray.command(cmd_json)applies a command JSON (set_spec,load,frame,frame_at,bounds,reset,version) and returns the response JSON. Domain errors come back in-band as{"ok":false,"error":...}.Xray.version()returns the library version.
Build from source
maturin develop --release
pytest -q
Release files for wickra-xray 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_xray-0.1.0.tar.gz | 61.1 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| wickra_xray-0.1.0-cp39-abi3-win_arm64.whl | CPython 3.9 | abi3 | Windows ARM64 | Details |
| wickra_xray-0.1.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| wickra_xray-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ x86-64 | Details |
| wickra_xray-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ ARM64 | Details |
| wickra_xray-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_xray-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| wickra_xray-0.1.0-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| wickra_xray-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 3.0 MB
Release files / wickra_xray-0.1.0.tar.gz
| Download URL | wickra_xray-0.1.0.tar.gz |
|---|---|
| Size | 61.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03885797c6f5d8f299586cc4e81bbee680b553854ee572adaf8687c0e07e26c0
|
|
BLAKE2b-256 checksum How to use checksums |
368cd321df432638a5e9cd3de1ef3cccde4e1aef483d6caa82c91e3427c1ba38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.0-cp39-abi3-win_arm64.whl
| Download URL | wickra_xray-0.1.0-cp39-abi3-win_arm64.whl |
|---|---|
| Size | 238.9 kB |
| Tags | CPython 3.9 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
bd802839f917f27a4719ea55d517c2a3ca8eb1cc64e8db00b40469b0b6fabc0e
|
|
BLAKE2b-256 checksum How to use checksums |
51b94da47bf070a68e88eb7f94d622e251e6086f385eda2a5c68f5b63380b552
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.0-cp39-abi3-win_amd64.whl
| Download URL | wickra_xray-0.1.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 256.9 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9a5feb68d408de1c21564c2211f9416ebf39da4ed7f5434135ed78b18a619cac
|
|
BLAKE2b-256 checksum How to use checksums |
2240ec6617c45b1df181e09ecb2c79df1681e374d964fbdb584b381b406dc319
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | wickra_xray-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 578.5 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
04c00009f533173563407129135b24c84d4835ca51672b83d160e2e0f626eee9
|
|
BLAKE2b-256 checksum How to use checksums |
e103383ed0ae174e1ec020a2de7ab89316a0eead3ca967526750d89f786749b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | wickra_xray-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 517.7 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
db3c45940a398a4a06d74f21edc95501b35bc4bb2d572be796e2108ca756c218
|
|
BLAKE2b-256 checksum How to use checksums |
9a0dec68fb70b4d603282b414e91af4f5ffc55b19a8780100c253c7f1777ebe1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | wickra_xray-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 365.2 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c22557889fab19242b0ecde78498a70b741d27ff45f8e96c30cb81279952135c
|
|
BLAKE2b-256 checksum How to use checksums |
1b28da6c49d70028da7c1757d0e754ad4c0d643bec791527ba18b0e70a301cf0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | wickra_xray-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 339.4 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
3ebf5bae58b93d1f5999136e40a0a8b06063c222a0616b6165b1e9739d30d05f
|
|
BLAKE2b-256 checksum How to use checksums |
7e30e377fe4968ee6e93913305c6c6d56901438fb157c3d5ab736e07ff89ce9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | wickra_xray-0.1.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 309.6 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
576bdd6300ffcfa6a707afbd6278443b1cff0ce8e0c709d3689f82c5d9035ad9
|
|
BLAKE2b-256 checksum How to use checksums |
7e6afbfd37423017a51bcd881101865f730f5862803fdbcd63fcf83fbfec0fdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | wickra_xray-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 341.4 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
f18442ef50363bd6c20557461d164579484e9d1f64f7cc8a8231a5e2252b4594
|
|
BLAKE2b-256 checksum How to use checksums |
1fceccd136896f51bd7504fe248f73ab35190f915ca6c3c6dc09e9047aadc43b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|