Skip to main content

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). Raises ValueError on 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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wickra-xray 0.1.2
File Size Uploaded
wickra_xray-0.1.2.tar.gz 60.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for wickra-xray 0.1.2
File
wickra_xray-0.1.2-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details
wickra_xray-0.1.2-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
wickra_xray-0.1.2-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
wickra_xray-0.1.2-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details
wickra_xray-0.1.2-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.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
wickra_xray-0.1.2-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
wickra_xray-0.1.2-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.2.tar.gz

Download URL wickra_xray-0.1.2.tar.gz
Size 60.4 kB
Tags Source
SHA-256 checksum
How to use checksums
baa77b09900fb7b6aa29ab3e0ee18b5e4878b29985787ee859be786b3ad778aa
BLAKE2b-256 checksum
How to use checksums
654c5a8da25f09b39ec5c32a595ad0a25ad521850c5843247dae2d1151850eea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / wickra_xray-0.1.2-cp39-abi3-win_arm64.whl

Download URL wickra_xray-0.1.2-cp39-abi3-win_arm64.whl
Size 239.3 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
26bfc0444206aad6b3bedaf51d845949a9b6869ba4abc4c774dbb8bf48da8ee0
BLAKE2b-256 checksum
How to use checksums
319030385a6948ea3a77eeeb9b863d11fb734de7df6138fe1f120df5ab253023
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / wickra_xray-0.1.2-cp39-abi3-win_amd64.whl

Download URL wickra_xray-0.1.2-cp39-abi3-win_amd64.whl
Size 257.3 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
fd7186fb4af75c09e6b598362c6b9469cb809aef2dca2b364d458bce347a3f7c
BLAKE2b-256 checksum
How to use checksums
0c9af1b5954adb97adab4b3519563b57c47c992eddb40e1299dc47631c2a9f03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / wickra_xray-0.1.2-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL wickra_xray-0.1.2-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
15ec2cf25240745dfc4e1c0676272eeb8e4f0f35c26d2cbb314fe0ad99ae3f07
BLAKE2b-256 checksum
How to use checksums
d021de805fc1a49b80c094e3a9086ca0df71904fffeb9644562cdd315da0929f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / wickra_xray-0.1.2-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL wickra_xray-0.1.2-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
17bf1418278681c65851e7cf3bac88d5868a0f66044fd015e9ae8e81f9601883
BLAKE2b-256 checksum
How to use checksums
61e3097de1e2e99b5d77f4a1d222d7f2604d4679510609e5e35acf9e26569ef9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / wickra_xray-0.1.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL wickra_xray-0.1.2-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
6d8595a607908e1e2998fb08194bbe0c41e132b8369c9dfa7bd3fcc3fdef3463
BLAKE2b-256 checksum
How to use checksums
c47e957aaa3080a55b1f8aa6db716175967adfd8d8069bac427f4604b5d0c860
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / wickra_xray-0.1.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL wickra_xray-0.1.2-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
84d1accbff1c1daf59a2c9aabf929cb00661e64596e1e2617aef5c6e4c138733
BLAKE2b-256 checksum
How to use checksums
6af045568d747841b9d9a4d50195eb9998d2befb039b2a4ba5453c856c1e068a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / wickra_xray-0.1.2-cp39-abi3-macosx_11_0_arm64.whl

Download URL wickra_xray-0.1.2-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
c052c49e21dfaf3bef4ebf1692bb81385101a0a930ffc2d3b6ad45d9d23259f7
BLAKE2b-256 checksum
How to use checksums
485774f7ab01d3ca5cb555da664fc754ede09e5a55ed9ee77083a10a552b8736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / wickra_xray-0.1.2-cp39-abi3-macosx_10_12_x86_64.whl

Download URL wickra_xray-0.1.2-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
7c9bd051e4953b49edae2a3ab48b2c02ef36745691283bfb725330dbfdca8ded
BLAKE2b-256 checksum
How to use checksums
945385956c2839fb545fb4514635f92095b180be8efecc423d6496e601a923d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release history Release notifications | RSS feed

0.1.7

9 release files

0.1.6

9 release files

0.1.5

9 release files

0.1.4

9 release files

0.1.3

9 release files

This release

0.1.2 This release

9 release files

0.1.1

9 release files

0.1.0

9 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page