probe-format (Python)
Read Probe prediction-market order-book files into
pyarrow tables, and from there into pandas or polars.
The decoding is the Rust crate probe-format; tables
cross into Python as Arrow IPC streams.
pip install probe-format
import probe_format as pf
f = pf.open("hour.probe")
print(f.version, f.header["markets"], "markets")
book = f.book_max(market="will-x-happen") # pyarrow.Table, one row per level change
df = book.to_pandas() # pandas
pl_df = pf.to_polars(book) # polars (pip install polars)
events = f.events(start_ns=f.header["hour_start_ns"],
end_ns=f.header["hour_start_ns"] + 600_000_000_000)
levels = f.levels(market="will-x-happen") # best-price exceptions and book hashes included
f.book_at("7001", 1794477900000000000) # {"bids": [(price_micro, size_micro), ...], ...}
| method | rows |
|---|---|
markets() |
the markets table: slug, condition id, tokens, units |
events(market, start_ns, end_ns) |
one per event: type, clocks, fee, tx hash, payload, book hash |
levels(market, start_ns, end_ns) |
one per level: token, side, price, size, mirror, best-price exception |
book_max(market, start_ns, end_ns) |
book-max: every level change, checkpoint level and trade with seq, qual, op, level |
book_at(token, ts_ns) |
a token's book at a receive time |
Building from source
pip install maturin
maturin develop -m probe-py/Cargo.toml # from the repository root
pytest probe-py/tests
Metadata
Release files for probe-format 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| probe_format-0.1.0.tar.gz | 59.6 kB | Without provenance | Details for probe_format-0.1.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| probe_format-0.1.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for probe_format-0.1.0-cp39-abi3-win_amd64.whl |
| probe_format-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details for probe_format-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| probe_format-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details for probe_format-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| probe_format-0.1.0-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details for probe_format-0.1.0-cp39-abi3-macosx_11_0_arm64.whl |
| probe_format-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details for probe_format-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl |
Total release size: 4.6 MB
Release files / probe_format-0.1.0.tar.gz
| Download URL | probe_format-0.1.0.tar.gz |
|---|---|
| Size | 59.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9c9d2a1ca165b24ca2fb862720e517f21f2c2f8ff3236583b65e34aa96a2bcf
|
|
BLAKE2b-256 checksum How to use checksums |
0e96cccc59139c6fe443ab520b4b29dd1411496b0c7090abb78ce91431870326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / probe_format-0.1.0-cp39-abi3-win_amd64.whl
| Download URL | probe_format-0.1.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 776.0 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
5aacfabb4faf034f0a407e755c7866670eb706a189a5eee67863554c06205393
|
|
BLAKE2b-256 checksum How to use checksums |
946659d1c5694fb9e3d6c35176eb892a7a7ddbb935991060e157be6dff476b8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / probe_format-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | probe_format-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a45550debb127d08deb452cf3bf57bdd3ce0a93213df22ae9b043553ecbfe284
|
|
BLAKE2b-256 checksum How to use checksums |
bca35a051a454fcd5a35bdd4b87cc1753dad7a8e825d80903b432797ac81b404
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / probe_format-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | probe_format-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 948.7 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
f7e1855019c922a117e575b14617f465d5a2d196c8abb7c6a52a75f3591226ec
|
|
BLAKE2b-256 checksum How to use checksums |
ebd19d628dd50d4cc2ed0970dbd8d06510d42ace593f98b5bc4ca362397a129a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / probe_format-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | probe_format-0.1.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 862.2 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f0aeb2a2975848cb165300c88e66d5de17dc9f270ab63f0d2c2f71b97aeacdfd
|
|
BLAKE2b-256 checksum How to use checksums |
e60669b435b7c0b32bc505c9071e54f6cfcc478ff7d0d54f319291af623350df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / probe_format-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | probe_format-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 946.6 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
7dca574eacb3036a35549c57c4dda1affeb3056ec92686653419a2dc9c519c8b
|
|
BLAKE2b-256 checksum How to use checksums |
810b42c316ce5248c9cf1995a29caca1dae3ac5bb8a5dc3abe6dee9470d9fee1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for probe-format 0.1.0
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.