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

Built distributions (wheels)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Download URL wickra_darwin-0.1.1-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
9c1e039e6a4c67f6dc415b5130a01746abbfa24b2204164f155fa848da775910
BLAKE2b-256 checksum
How to use checksums
a14592212ab7cafb0c6277d84bcf9e51ad9794f222c079ec933c0d98a8ad69e7
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

This release

0.1.1 This release

9 release files

0.1.0

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