Skip to main content

Wickra Darwin — Python

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

Usage

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.

See also

License

Dual-licensed under either MIT or Apache-2.0, at your option.

Metadata

Release files for wickra-darwin 0.1.0

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.1.0
File Size Uploaded
wickra_darwin-0.1.0.tar.gz 46.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for wickra-darwin 0.1.0
File
wickra_darwin-0.1.0-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details
wickra_darwin-0.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
wickra_darwin-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
wickra_darwin-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details
wickra_darwin-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
wickra_darwin-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
wickra_darwin-0.1.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
wickra_darwin-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details

Total release size: 6.3 MB

Release files / wickra_darwin-0.1.0.tar.gz

Download URL wickra_darwin-0.1.0.tar.gz
Size 46.2 kB
Tags Source
SHA-256 checksum
How to use checksums
57cdbbf35d00172fd20bbfeb42a1dfa27e4ae887a7e0bb494f9aea3227c682d1
BLAKE2b-256 checksum
How to use checksums
cbff9c53700aa22a4fac39f928d4f97b3811a55d36d36a43818570fb02c24b80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

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

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

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

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

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

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

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

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

Download URL wickra_darwin-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 740.9 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
0313c4fa201c985ab4876f80834e31d5f19244e958fda7b021679c2aaea320fa
BLAKE2b-256 checksum
How to use checksums
12ad2d709819201b59671dd8f8a881612c27131f47d8c65bc52bc7c7842b120f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_darwin-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Size 672.1 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0a89f11d2167d73e5af0fc64f54ebbabab06fdbaadd476f3d3c2e254b62e9549
BLAKE2b-256 checksum
How to use checksums
191bc2f0a428aa0641029649b33c531c39256a529813de2c08a103f278447c2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

Release history Release notifications | RSS feed

0.2.0

9 release files

0.1.5

9 release files

0.1.4

9 release files

0.1.3

9 release files

0.1.2

9 release files

0.1.1

9 release files

This release

0.1.0 This release

9 release files

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