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.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_xray-0.1.1.tar.gz | 60.4 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| wickra_xray-0.1.1-cp39-abi3-win_arm64.whl | CPython 3.9 | abi3 | Windows ARM64 | Details |
| wickra_xray-0.1.1-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| wickra_xray-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ x86-64 | Details |
| wickra_xray-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ ARM64 | Details |
| wickra_xray-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_xray-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| wickra_xray-0.1.1-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| wickra_xray-0.1.1-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.1.tar.gz
| Download URL | wickra_xray-0.1.1.tar.gz |
|---|---|
| Size | 60.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0c3ff1b193af15ce1761c65d32fceb013df130cfced5ded9b2eed9f8f18b1db
|
|
BLAKE2b-256 checksum How to use checksums |
e659a24d12063e2e22ae12bf7b52dbe97aa4e8b97ca19f82471377ef2ca548d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.1-cp39-abi3-win_arm64.whl
| Download URL | wickra_xray-0.1.1-cp39-abi3-win_arm64.whl |
|---|---|
| Size | 239.4 kB |
| Tags | CPython 3.9 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
6ba6f71ec5dcda96808c45f3df4e6fa4c321d4a75641608447e15250572deb53
|
|
BLAKE2b-256 checksum How to use checksums |
ecfac00981dccd0cab103898ae46cd8b3510aeb32dd6956df8331077a100c33e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.1-cp39-abi3-win_amd64.whl
| Download URL | wickra_xray-0.1.1-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 257.3 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c6b0fd2f5df6ed6ec5f0b71710b576cf1e9ac26129db9fa47d3e512993e431ee
|
|
BLAKE2b-256 checksum How to use checksums |
511eb139610b84df3622f1eed9a6e4e1d77d1ccad72797d67310d3be42aaa3ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | wickra_xray-0.1.1-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 |
1825019e87346e9650c3140d2fd31c8a147406a2b113b833775896acff61cb54
|
|
BLAKE2b-256 checksum How to use checksums |
f37b0f69df50a1284501a09ac57acb644cf0bde0936cfff1239fc50ee95249ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | wickra_xray-0.1.1-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 |
336290411597f8c7966ed3b641c54b600f6ce2f4ded778526b8748c1837cc7a4
|
|
BLAKE2b-256 checksum How to use checksums |
3ec98ebd8c7a85bbb374be0fee7824fd5d08144a89fa6d7e911128ec1e089571
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | wickra_xray-0.1.1-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 |
a069fac3e107af5f940b3a5bddfeefb0e65ac7bec20a335c61a3835620c365f5
|
|
BLAKE2b-256 checksum How to use checksums |
1961067361f66ef78dd9abfda96229945894a4704630ff653ee1131c6ea66d52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | wickra_xray-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 339.9 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
218f4d3952a52426b355d0d2d50627933e17fe18dd8411bfb7bcb8bcb74e9028
|
|
BLAKE2b-256 checksum How to use checksums |
c7d253e59aacfbe0aac5c701b847877aeee9c2cff81cd842d75b3a71a448cb91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | wickra_xray-0.1.1-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 |
9fa78bb7687b428bbb3323566abf2918e29a345e6ca4943737f7783fd28bd527
|
|
BLAKE2b-256 checksum How to use checksums |
0352f8d3f7dd303a95e6401372d04fe981e917bcd47f32c3008750cdc20e58c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_xray-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | wickra_xray-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 341.8 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
8c7b2f72fde66d91708bdd48fd0299fd84ccf34f8ac83f92695b0a796c2fef7e
|
|
BLAKE2b-256 checksum How to use checksums |
504517be8ed55c38ff597069420f3e90b866e32d1bc1f1e199e29e5917ac55b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|