Skip to main content

Wickra Time Machine — scrub the whole crypto market like a video

CI codecov PyPI License: MIT OR Apache-2.0

Wickra Time Machine — Python


Part of the Wickra ecosystem: — for Python. pip install wickra-timemachine — prebuilt wheels for Linux, macOS and Windows, nothing to compile.

Python bindings for the Wickra Time Machine, built with PyO3 and maturin. A TimeMachine handle is driven over a JSON boundary, so seeking a recorded feed to a timestamp yields the byte-identical snapshot as every other Wickra Time Machine binding.

Install

pip install wickra-timemachine

Pre-built wheels ship for Linux, macOS and Windows — there is nothing to compile and no C library to track down.

Quick start

import json
from wickra_timemachine import TimeMachine

feed = "\n".join(json.dumps(line) for line in [
    {"ts": 10, "symbol": "BTC-USDT", "feed": {"kind": "market", "type": "trade",
     "symbol": {"base": "BTC", "quote": "USDT"}, "price": "100", "quantity": "1",
     "aggressor": "Buy", "timestamp": 10}},
    {"ts": 20, "symbol": "BTC-USDT", "feed": {"kind": "market", "type": "trade",
     "symbol": {"base": "BTC", "quote": "USDT"}, "price": "110", "quantity": "2",
     "aggressor": "Sell", "timestamp": 20}},
])

tm = TimeMachine("{}")
tm.command(json.dumps({"cmd": "load", "data": feed}))
snapshot = json.loads(tm.command(json.dumps({"cmd": "seek", "ts": 20})))
print(snapshot["symbols"]["BTC-USDT"]["last"])  # 110.0

Surface

  • TimeMachine(spec_json) — construct a handle from a TimelineSpec JSON ("{}" uses the default spec). Raises ValueError on an invalid spec.
  • TimeMachine.command(cmd_json) — apply a command envelope ({"cmd":"...", ...}) and return the response JSON. Commands: load, seek, state_at, play, version. Raises RuntimeError on a command failure.
  • TimeMachine.version() — the library version.

Determinism

The re-fold lives only in the Rust core; this binding forwards the command string verbatim, so seeking to a given timestamp produces the byte-identical snapshot here and in every other binding — the exact cross-language golden invariant.

Benchmark

Every binding forwards to the same data-driven Rust core, so what this one adds is the call overhead of PyO3, not a different result. The core's throughput is measured by the repository's benchmark suite and the nightly bench.yml run; the numbers, the machine and how to reproduce them are in the repository BENCHMARKS.md.

Documentation

The full guide, the spec reference and the API documentation live in the main repository and the documentation site:

Wickra Time Machine ships native bindings for Python, Node.js, WASM and Rust, plus a C ABI hub that any C-capable language (C, C++, C#, Go, Java, R) links against — all forwarding to the same data-driven, unsafe-forbidden Rust core.

Security

Found a security issue? Please don't open a public issue. Report it privately via the repository's Security tab ("Report a vulnerability") or email support@wickra.org with a subject line starting [wickra security]. Full policy: https://github.com/wickra-lib/wickra-timemachine/blob/main/SECURITY.md.

Disclaimer

Wickra Time Machine is a research tool, provided "as is" without warranty of any kind. It reconstructs recorded market microstructure for analysis; nothing here is financial advice, and trading carries risk of loss.

License

Licensed under either of Apache-2.0 or MIT at your option.

Metadata

Release files for wickra-timemachine 0.2.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-timemachine 0.2.2
File Size Uploaded Provenance Actions
wickra_timemachine-0.2.2.tar.gz 49.6 kB Without provenance Details for wickra_timemachine-0.2.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for wickra-timemachine 0.2.2
File Actions
wickra_timemachine-0.2.2-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details for wickra_timemachine-0.2.2-cp39-abi3-win_arm64.whl
wickra_timemachine-0.2.2-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for wickra_timemachine-0.2.2-cp39-abi3-win_amd64.whl
wickra_timemachine-0.2.2-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details for wickra_timemachine-0.2.2-cp39-abi3-musllinux_1_2_x86_64.whl
wickra_timemachine-0.2.2-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details for wickra_timemachine-0.2.2-cp39-abi3-musllinux_1_2_aarch64.whl
wickra_timemachine-0.2.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for wickra_timemachine-0.2.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
wickra_timemachine-0.2.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for wickra_timemachine-0.2.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
wickra_timemachine-0.2.2-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for wickra_timemachine-0.2.2-cp39-abi3-macosx_11_0_arm64.whl
wickra_timemachine-0.2.2-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for wickra_timemachine-0.2.2-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 6.1 MB

Release files / wickra_timemachine-0.2.2.tar.gz

Download URL wickra_timemachine-0.2.2.tar.gz
Size 49.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4d51f5224d8bfdfff1e07bcf8c586fe1e55ef8353cc34820c80cb2a7383c61a2
BLAKE2b-256 checksum
How to use checksums
e847bda9c8c9d5242a01d93f3e37159f66f7ee8f474fd561f013acc7ae0ccbcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / wickra_timemachine-0.2.2-cp39-abi3-win_arm64.whl

Download URL wickra_timemachine-0.2.2-cp39-abi3-win_arm64.whl
Size 591.2 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
9d2fa857746b02ef85ef6662b4ea57d70d8db26a74a054b581a5fa045b6bc94f
BLAKE2b-256 checksum
How to use checksums
c47cfa92d6e231c31840c815ff4bde64989d01acf411c2e71994df709ea93e0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / wickra_timemachine-0.2.2-cp39-abi3-win_amd64.whl

Download URL wickra_timemachine-0.2.2-cp39-abi3-win_amd64.whl
Size 664.1 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f183f62338605d01920a9be465d678f541a4286a1893aa712a3efbd8a012c347
BLAKE2b-256 checksum
How to use checksums
c558ca14cd34945e54c56128931f9dd53a5b770b813c5e492c65be1cd4aafe7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / wickra_timemachine-0.2.2-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL wickra_timemachine-0.2.2-cp39-abi3-musllinux_1_2_x86_64.whl
Size 1.0 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
9bb49b03094057428cf5b11827af0aa00f4cfaf85ba5ea45c8df65e1cff5c7d8
BLAKE2b-256 checksum
How to use checksums
4945f430f9f2e47defb2b8c6fbef63ffbc16cedbd70305456893e97f9ac00e8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / wickra_timemachine-0.2.2-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL wickra_timemachine-0.2.2-cp39-abi3-musllinux_1_2_aarch64.whl
Size 897.7 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
db8c66004a6874154eb689d2461564ccbf888285d14131e9d54def6f74519ae4
BLAKE2b-256 checksum
How to use checksums
83dd13e938ee11ff9f8b49c09d6a580db748355e1d6acf8215efb6ed3092f42f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / wickra_timemachine-0.2.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL wickra_timemachine-0.2.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 790.2 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
9fb2efe071d7af89f26732f317f9a281ae36ec5f34a436ff78aa9e0aeb4941e8
BLAKE2b-256 checksum
How to use checksums
83a8172b2785c7b6ae72dfb22caeaa15c03b9ac62df855b5f0fdd644244bf159
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / wickra_timemachine-0.2.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL wickra_timemachine-0.2.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 721.0 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
a5d33506e7e57e678877c13eec153b55094fb062f87e5c8b9b74b14e2906a2e1
BLAKE2b-256 checksum
How to use checksums
454379cf320c9d0bb50b8651c7d6c7fbddefabe812fd526521e78824f15542a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / wickra_timemachine-0.2.2-cp39-abi3-macosx_11_0_arm64.whl

Download URL wickra_timemachine-0.2.2-cp39-abi3-macosx_11_0_arm64.whl
Size 650.5 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
80aa18aaaa5dd28775f1984acf3fd1ae93feac305c1dbacfb516cd46bb49ea6e
BLAKE2b-256 checksum
How to use checksums
b66493cd1b2a3bd1020f182224e93ac2bb1377460cd4a05445404720d6d69049
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / wickra_timemachine-0.2.2-cp39-abi3-macosx_10_12_x86_64.whl

Download URL wickra_timemachine-0.2.2-cp39-abi3-macosx_10_12_x86_64.whl
Size 747.2 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
4de6ad529a234bb29d55ade7a58cd86a04964058190128edd1578aa35a96b76b
BLAKE2b-256 checksum
How to use checksums
a4176a5b9d638c9f4a7cf939f9851686389e98711c48d951ab784a7d8b263ece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Security for wickra-timemachine 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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