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.3

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.3
File Size Uploaded Provenance Actions
wickra_timemachine-0.2.3.tar.gz 49.6 kB Without provenance Details for wickra_timemachine-0.2.3.tar.gz

Built distributions (wheels)

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

Total release size: 6.1 MB

Release files / wickra_timemachine-0.2.3.tar.gz

Download URL wickra_timemachine-0.2.3.tar.gz
Size 49.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6f6468ef16056ce13579d2eed0b004622b7893b1f0135cc77bbb3ee1c9a00854
BLAKE2b-256 checksum
How to use checksums
4e59f230909c70b529ce7173287f6a4adb9f2856b5069054d19088bc909049f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_timemachine-0.2.3-cp39-abi3-win_arm64.whl
Size 591.2 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
bcc5ee3d832b943c8c702c9642bbf6b5f74863d13a8dc0a2735f1123c84be80e
BLAKE2b-256 checksum
How to use checksums
8fe2e8e8c4f3bcb8f07c3d630418f8bb2d773f697842553248f784b5df3e8e40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_timemachine-0.2.3-cp39-abi3-win_amd64.whl
Size 664.2 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0aaa915e1108a816589768cbe0e0360e32ab1b0e9f765925989294f27d070455
BLAKE2b-256 checksum
How to use checksums
8e5d7ce48c5e44f82d4fc50720e91e669b083b419edf7b40bd1e8523af1814d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_timemachine-0.2.3-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
71a1780e41030f116183af41b24356227c8afdb8a5497ead0283fb3b0213279b
BLAKE2b-256 checksum
How to use checksums
0660459dbfb528785d3da91eb09ee35a5049f88ea5d4aafc32fd86ec5485d4b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_timemachine-0.2.3-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
098e66ced853c23b1656278d281965ff79076cc117be2b15d193716cd3b84e65
BLAKE2b-256 checksum
How to use checksums
1034cac9c90b3f4f5686684640a48f6676520688f7ed6b764d63e48eb3c1de40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_timemachine-0.2.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 790.1 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
1de7717f906001f79699f72e9185d33d71e48b6bec22e35beb495c0d5eb355d5
BLAKE2b-256 checksum
How to use checksums
6aaa9e09ad3987f2f8fc4f64cd516fd927dd12f7650fa1010d0ee109a34f7633
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_timemachine-0.2.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 721.1 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
0fbaaa50889a39052b417d3f20ef5e37c1602b2dc9359c75d3d5d3ebe36a52f6
BLAKE2b-256 checksum
How to use checksums
c35fec81089c7e6b5e09b330d78fef00d01d09848d993dcff1d186209873e59c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_timemachine-0.2.3-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
7bddd923820a387af545363e9e0b00c52662b331eec4bd6896d6e282d15370d6
BLAKE2b-256 checksum
How to use checksums
bf656a21c6dd22a245999615102843fd6dd1be252724dd46d2ffb977bc780d96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_timemachine-0.2.3-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
631de74fbd5edbdd39c4888d8c85ee9a6bbb928a603a8f01992ff186e6c5bc5b
BLAKE2b-256 checksum
How to use checksums
c7cac16df0a3f41d9325f8a7a4a7612680a13376ffb30668335294bcf3195dea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for wickra-timemachine 0.2.3

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