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.3
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.3.tar.gz | 60.4 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| wickra_xray-0.1.3-cp39-abi3-win_arm64.whl | CPython 3.9 | abi3 | Windows ARM64 | Details |
| wickra_xray-0.1.3-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| wickra_xray-0.1.3-cp39-abi3-musllinux_1_2_x86_64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ x86-64 | Details |
| wickra_xray-0.1.3-cp39-abi3-musllinux_1_2_aarch64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ ARM64 | Details |
| wickra_xray-0.1.3-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.3-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| wickra_xray-0.1.3-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| wickra_xray-0.1.3-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.3.tar.gz
| Download URL | wickra_xray-0.1.3.tar.gz |
|---|---|
| Size | 60.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22e097e9477e55ce1b6704b174101079c2f89886d13749a4d75d3024afd53e95
|
|
BLAKE2b-256 checksum How to use checksums |
0422b7219f5fdb5fa02f83210ff34134271451288329ff1dc79b7bc8e7242fca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.3-cp39-abi3-win_arm64.whl
| Download URL | wickra_xray-0.1.3-cp39-abi3-win_arm64.whl |
|---|---|
| Size | 239.4 kB |
| Tags | CPython 3.9 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
f245f9c46cc09dea38e29333b63a194b2aac87443b8dba0bacde7e601bee7f67
|
|
BLAKE2b-256 checksum How to use checksums |
2c9bcb28c7fff58c74931d81e6a3fa4bb90af3fd150806ac0f4e21eca3b8ba09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.3-cp39-abi3-win_amd64.whl
| Download URL | wickra_xray-0.1.3-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 257.3 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
fece1190263c13de2111123df9c3a5f9a8f217ab4392536a8cdaa355167ba651
|
|
BLAKE2b-256 checksum How to use checksums |
b09fc30b16fe3acfd4ddd3c04ca5522579feba3a19a63e4cf094c698e4b7b4c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.3-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | wickra_xray-0.1.3-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 579.1 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d393aa5f23476017049215abbdfa0eca5dcd98a23480c70e5ed1203ea1ce7c81
|
|
BLAKE2b-256 checksum How to use checksums |
1a50378763d7e43015c2df490529c49aa2007751b475bb293694169bc0ef26f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.3-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | wickra_xray-0.1.3-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 518.5 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
08eed894a033cec6ce05f3bed43c4000e77ac44ea2f1d7fc8c3ebdd209dff263
|
|
BLAKE2b-256 checksum How to use checksums |
09397fad100e4709a0e2e7a8dcc01ad79b835ad19821099a057843ce9f87a027
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | wickra_xray-0.1.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 365.6 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b97f872d313a9796132eed126c142f66d68f54de31472ef8d1e6cc3c2049be84
|
|
BLAKE2b-256 checksum How to use checksums |
7aa5997aaa8ffd56910b7b498cab0d125808b26e860a6937f26709dfaae6a2cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.3-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | wickra_xray-0.1.3-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 340.0 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
a354574d3a310d8c9d45c03ceea11383aa2c2bb386d0360e2676161a4513d753
|
|
BLAKE2b-256 checksum How to use checksums |
5aa837a5e3714d7a8da56a41c8df319edc511e0be00426cbe4a118c8b5a5dfa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.3-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | wickra_xray-0.1.3-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 309.8 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cbcbaf189053aa6d6e21dce636c07f5a4989695bbb5b6a81bf11281a8f5db07f
|
|
BLAKE2b-256 checksum How to use checksums |
0516dec50c800c26a1043014b8d09fd46c69bc83ef63cbe868867af2e7ada2b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.3-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | wickra_xray-0.1.3-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 341.7 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
be6c25335dc6fd4b96185efd3cd287aae5030ab1650ef752777218fd592051b7
|
|
BLAKE2b-256 checksum How to use checksums |
b41a9e2edd7ff081cf066e01bd86ee46c09616eda4546157077d33ed83d18288
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|