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.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-darwin 0.2.3
File Size Uploaded Provenance Actions
wickra_darwin-0.2.3.tar.gz 52.4 kB Without provenance Details for wickra_darwin-0.2.3.tar.gz

Built distributions (wheels)

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

Total release size: 6.5 MB

Release files / wickra_darwin-0.2.3.tar.gz

Download URL wickra_darwin-0.2.3.tar.gz
Size 52.4 kB
Tags Source
SHA-256 checksum
How to use checksums
761155ffbfdf6b338a33d893abdc3fb0c0d51adce299d5173b1cf9f30d907575
BLAKE2b-256 checksum
How to use checksums
ce83b608008c0d4345b68e838fe44fe538ce5dd5e0ded3804fd05afdb4d8d3a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

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

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

Download URL wickra_darwin-0.2.3-cp39-abi3-win_amd64.whl
Size 708.1 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e59fb02aa56cfd8f445e76d2e9f3d82b268f0a85b97654ddafeae678f87024be
BLAKE2b-256 checksum
How to use checksums
279c769b87c0cd58577593bcca3d36b1a65be09330eeff7dcc51dee19f3e2e73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_darwin-0.2.3-cp39-abi3-musllinux_1_2_x86_64.whl
Size 1.1 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
f1604e43ce34f38b98382cb3bf298654fe7947c662ef472f80b8a538401511be
BLAKE2b-256 checksum
How to use checksums
e0438f14c5fb6d145777b10a2b191eb360c1679c7ccbe8ff1ce7da46c1b642b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_darwin-0.2.3-cp39-abi3-musllinux_1_2_aarch64.whl
Size 936.0 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
6b0719096324247da4cc2492a1b132f03a11f900c6495543d94e2a53ef7c8b44
BLAKE2b-256 checksum
How to use checksums
cab580d21471af07f834a01958462dbd5662662a1f87d331c10af6a2a1d5ed36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

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

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

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

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

Download URL wickra_darwin-0.2.3-cp39-abi3-macosx_11_0_arm64.whl
Size 687.3 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
80e5a3cef7cf6017bc37f16921b526eb05e493f4b85b6d35c886413dd64b4241
BLAKE2b-256 checksum
How to use checksums
a4b74703fc48e509362050f6397b9f1a5718d59d9a798542fd354e729abaf157
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_darwin-0.2.3-cp39-abi3-macosx_10_12_x86_64.whl
Size 790.7 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
d91117f593ae337517ecc5a6c447e751cf8825522fddee8068b0186edc75c142
BLAKE2b-256 checksum
How to use checksums
8cc2f65fe82571bf91f21953067cef43c479c417e577ebff099090cfb4525e28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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