Skip to main content

quant-engine-py

Python bindings for quant-engine — a C++20 backtesting engine with struct-of-arrays bar data, a zero-allocation hot loop, and a parallel parameter sweep harness.

Python drives the engine; Python does not participate in it. You start runs and read results. There is no per-bar callback and there will not be one: it would take the GIL ~2500 times per backtest and allocate on every one, voiding the performance properties the engine exists for. That is a correctness boundary, enforced by a test that counts Python frames entered during a run — not a roadmap item.

Install

pip install quant-engine-py

macOS on Apple Silicon, Python 3.10+. There is no Linux wheel, no Intel wheel and no source distribution: the engine is a private repository, so it ships compiled or not at all. pip install anywhere else reports that no matching distribution exists, which is the honest answer rather than a build that fails halfway.

Use

import qe

cfg  = qe.load_qe("strategy.qe")   # evaluate a .qe config
bars = qe.load_bars(cfg)           # resolve its data specs
res  = qe.run_backtest(cfg, bars)  # .combined_equity, .per_strategy

qe.engine_version                  # the engine this was compiled against

Also bound: ic_analysis, rolling_ic_analysis, long_short_backtest, and the metrics (sharpe, sortino, cagr, max_drawdown, total_return, kahan_sum). Bar columns come back as read-only numpy views over the engine's own buffers, not copies.

qe.engine_version is not cosmetic. A binding compiled against one engine and read as though it spoke for another does not crash — it returns subtly different numbers. Built from a source tree, the module compares the submodule's commit at import and raises on a mismatch.

Documentation

Everything else — the .qe language, factor research, walk-forward validation, the full bound surface, the sign conventions you need before reading a drawdown — is at:

https://qe.jiucheng-zang.ca/python/

The engine's own documentation is at https://qe.jiucheng-zang.ca/.

License

All rights reserved. Published for use, not for redistribution.

Metadata

Release files for quant-engine-py 0.5.3

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

Built distribution (wheel)

Table of built distributions (wheels) for quant-engine-py 0.5.3
File Interpreter ABI Platform Actions
quant_engine_py-0.5.3-cp312-cp312-macosx_13_0_arm64.whl CPython 3.12 CPython 3.12 macOS 13.0+ ARM64 Details for quant_engine_py-0.5.3-cp312-cp312-macosx_13_0_arm64.whl

Release files / quant_engine_py-0.5.3-cp312-cp312-macosx_13_0_arm64.whl

Download URL quant_engine_py-0.5.3-cp312-cp312-macosx_13_0_arm64.whl
Size 3.6 MB
Tags CPython 3.12 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
39761d9ea857d799fc4e9c82a09a3a63c7d8cd86d5f1a63dda8c5c28db5d8795
BLAKE2b-256 checksum
How to use checksums
33d22a21830836071fc03d41571f073e4600c30b3fb38f128f2af36a8f6d5fd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for quant-engine-py 0.5.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.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for quant_engine_py-0.5.3-cp312-cp312-macosx_13_0_arm64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.5.3 This release

1 release file Full provenance

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