Skip to main content

Wickra Darwin — evolutionary strategy search at hundreds of thousands of backtests per second

CI codecov PyPI License: MIT OR Apache-2.0

Wickra Darwin — Python


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

Python bindings for the Wickra evolutionary strategy search, built with PyO3 and maturin. A Darwin handle is driven over a JSON boundary, so a fixed seed yields the byte-identical search as every other Wickra Darwin binding.

Install

pip install wickra-darwin

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_darwin import Darwin

spec = {
    "seed": 1, "population": 8, "generations": 3,
    "mutation_rate": 0.2, "crossover_rate": 0.6, "fitness": "sharpe",
    "search_space": {
        "indicators": [{"name": "rsi", "param_ranges": [{"min": 2, "max": 30, "step": 1}]}],
        "rules": "single_threshold", "max_conditions": 1,
    },
    "elitism": 1, "top": 5,
}

darwin = Darwin(json.dumps(spec))
data = {"BTCUSDT": [ { "time": 1700000000, "open": 100, "high": 101, "low": 99, "close": 100.5, "volume": 10 } ]}
report = json.loads(darwin.command(json.dumps({"cmd": "evolve", "data": data})))
print(report["best"])

Surface

  • Darwin(spec_json) — construct a search handle from an EvolveSpec JSON ("{}" defers configuration to a later set_spec). Raises ValueError on an invalid spec.
  • Darwin.command(cmd_json) — apply a command envelope ({"cmd":"...", ...}) and return the response JSON. Commands: set_spec, evolve, best, version. Raises RuntimeError on a command failure.
  • Darwin.version() — the library version.

Determinism

The search's PRNG lives only in the Rust core; this binding forwards the command string verbatim, so a given seed produces the byte-identical report 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 Darwin 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-darwin/blob/main/SECURITY.md.

Disclaimer

Wickra Darwin is a research tool, provided "as is" without warranty of any kind. Evolutionary search optimises a fitness objective over historical data — a strong in-sample fitness is not evidence of out-of-sample performance, and overfitting is the default outcome, not the exception. Nothing here is financial advice; any strategy you deploy is your responsibility, and trading carries risk of loss.

License

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

Metadata

Release files for wickra-darwin 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-darwin 0.2.1
File Size Uploaded Provenance Actions
wickra_darwin-0.2.1.tar.gz 51.5 kB Without provenance Details for wickra_darwin-0.2.1.tar.gz

Built distributions (wheels)

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

Total release size: 6.4 MB

Release files / wickra_darwin-0.2.1.tar.gz

Download URL wickra_darwin-0.2.1.tar.gz
Size 51.5 kB
Tags Source
SHA-256 checksum
How to use checksums
828a20c95f885bbe2620c545c554699005d36237a886c097b605801ee4fc4184
BLAKE2b-256 checksum
How to use checksums
eed9d0ca32c17e9701a660830eef7c62bc14cef099795a7b7b0c70618f9cbdf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

Download URL wickra_darwin-0.2.1-cp39-abi3-win_amd64.whl
Size 703.1 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
7edee7bc2079eaad66f2ebe5a694ff690f958d0986f0e7edac6d2df821d38dc2
BLAKE2b-256 checksum
How to use checksums
c2295a00e419e84212b125b7243ba6b62a0280e12785cc3f48f4285233677d4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

Download URL wickra_darwin-0.2.1-cp39-abi3-musllinux_1_2_aarch64.whl
Size 922.0 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
5f78b2c46e050d410a01228d0fae11abe3b7215001c237e21521290153445fd6
BLAKE2b-256 checksum
How to use checksums
f1922b25b7e0e49b38802754b4933ef6c0b83a0bee89c451496cdae85c8ea69c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

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

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

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

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

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

Security for wickra-darwin 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