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

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

Built distributions (wheels)

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

Total release size: 6.5 MB

Release files / wickra_darwin-0.2.2.tar.gz

Download URL wickra_darwin-0.2.2.tar.gz
Size 52.4 kB
Tags Source
SHA-256 checksum
How to use checksums
050a0b9a3b057e3547d3c8bd4f964b8fedf6c1d41c12b582d00377e4994ff575
BLAKE2b-256 checksum
How to use checksums
83e51503a4712d8c7605af130c75135ee5e6f45b93b018098fd16619bb68270a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

Download URL wickra_darwin-0.2.2-cp39-abi3-win_arm64.whl
Size 629.1 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
d20970305cb3bcb08c09c9bd2c5d85a5850898f05fb7919099fb5767ff238ebd
BLAKE2b-256 checksum
How to use checksums
5d743f8234499569300ff757440ce61b11424b0deb109685bc586526b872e82c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

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

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

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

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

Download URL wickra_darwin-0.2.2-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
384085799530fdcd3ee83f4d444d4758a9570c9af1acd30b8fd6fba7f8266047
BLAKE2b-256 checksum
How to use checksums
12a7299c1ee2da1157d9e05b7885326b32fc5752f221548e06380e19e5ec7f43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

Download URL wickra_darwin-0.2.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 837.2 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
9aece421e67ccfdb2383cb3756ccdb467364b53e5cda0bd0a3267bdc11b101a7
BLAKE2b-256 checksum
How to use checksums
63b28ac0c5483d6bed1cdc044c539a37c19bcf66f14759fca024d58d7f1d78fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

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

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

Download URL wickra_darwin-0.2.2-cp39-abi3-macosx_11_0_arm64.whl
Size 687.2 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
854ce382c17953b0d1ae4e4ae328c606f13b311b589624ee4ba8445c8d9f12b1
BLAKE2b-256 checksum
How to use checksums
559887fd6b6af1a83e2d327e0346e8ad9abe8ff034fd8feecb36d6f081db7e9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

Download URL wickra_darwin-0.2.2-cp39-abi3-macosx_10_12_x86_64.whl
Size 790.6 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
76eb4c170d458065e1fdb8c8889b5ca2ea2572e9e58ee2a1b8dedd868186132e
BLAKE2b-256 checksum
How to use checksums
d30ac4d28737f803a55e59114ebbffca53c07bc82b8b20b984ff1e4eb16923aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Security for wickra-darwin 0.2.2

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