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

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.1
File Size Uploaded Provenance Actions
wickra_timemachine-0.2.1.tar.gz 49.0 kB Without provenance Details for wickra_timemachine-0.2.1.tar.gz

Built distributions (wheels)

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

Total release size: 6.1 MB

Release files / wickra_timemachine-0.2.1.tar.gz

Download URL wickra_timemachine-0.2.1.tar.gz
Size 49.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a3e8d6f2d3c86a76e7a8005aa1afa3b2363d474070437a9275927b5c2bae0a1c
BLAKE2b-256 checksum
How to use checksums
0ac96ea25d20c482d3ccce08821582b80e2a8d19798076e8d7e67203888fc194
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_timemachine-0.2.1-cp39-abi3-win_arm64.whl
Size 579.9 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
d6c75f93fc8635c886eeae3cbb09cd14c247b05fe3cd7932381640a6e19ec7a3
BLAKE2b-256 checksum
How to use checksums
7e248215114dc3382a9df8b26417d63b4ef66d7611e173abe6fee85a8b7109c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_timemachine-0.2.1-cp39-abi3-win_amd64.whl
Size 659.8 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
8ae2bf0942a7084f4b4d6be24398f279823bb7b9ff04770174aaea23a2fead58
BLAKE2b-256 checksum
How to use checksums
43b5b4ee93ab896dd9456fe582df1f939b2f6e14a571e98690813e6b359690d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_timemachine-0.2.1-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
945394f10d4bb56067cac460ecc567711663954f56c2f3c46ba7fe67588b8fde
BLAKE2b-256 checksum
How to use checksums
bccf3bc2b270f5d700a9d68bdd21ffc94a58e24f413b0a44c84290be8283de6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_timemachine-0.2.1-cp39-abi3-musllinux_1_2_aarch64.whl
Size 887.7 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
40783a07ab2f2b9ea1fc90ca1474bb50fc870fb9efd92d8f8f2f690a02e22004
BLAKE2b-256 checksum
How to use checksums
659f002e27601f5a05b1c913a9add34e16e8c66b702fabfbb559651f9348ebab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_timemachine-0.2.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 785.5 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
456d78f698c59ea08687a73a2757c983c4eb3a59913afc4f06c872f4f2195cea
BLAKE2b-256 checksum
How to use checksums
c1faa56c5f52bf67b8cb35c55222764f69fca95dc8a253bf310e54ff86d8de53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_timemachine-0.2.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 708.6 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
35518aebc4c99c98269d9cc0b256a0c9f8254e4fee636c42c23e67230e2f3a3c
BLAKE2b-256 checksum
How to use checksums
de5f6632510d456028059084e2aea81fdc02a05abe32a2520376d4cd9d4d8666
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_timemachine-0.2.1-cp39-abi3-macosx_11_0_arm64.whl
Size 641.1 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a1fda9db4fb487de1b1e930ff6a8ef00f93dbf055499c537fc9e23bd57c444b9
BLAKE2b-256 checksum
How to use checksums
3af7a70aded49802f89afbbec3373fcb0dc5b0ca1d9d21afd5c9d3de1bb60763
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_timemachine-0.2.1-cp39-abi3-macosx_10_12_x86_64.whl
Size 742.7 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
22b9294a640ad71ef1459fdb1483b20bbf3ec2b4b8c733cd10425c88ac80d094
BLAKE2b-256 checksum
How to use checksums
2595aae1b597e9d75794d7cd9ee14e96cd96eebbf20b453a3c07a6c3ae740618
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Security for wickra-timemachine 0.2.1

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