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 anEvolveSpecJSON ("{}"defers configuration to a laterset_spec). RaisesValueErroron an invalid spec.Darwin.command(cmd_json)— apply a command envelope ({"cmd":"...", ...}) and return the response JSON. Commands:set_spec,evolve,best,version. RaisesRuntimeErroron 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
- The main project: https://github.com/wickra-lib/wickra-darwin
- Documentation: https://wickra.org
License
Dual-licensed under either MIT or Apache-2.0, at your option.
Metadata
Release files for wickra-darwin 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wickra_darwin-0.1.2.tar.gz | 46.4 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| wickra_darwin-0.1.2-cp39-abi3-win_arm64.whl | CPython 3.9 | abi3 | Windows ARM64 | Details |
| wickra_darwin-0.1.2-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| wickra_darwin-0.1.2-cp39-abi3-musllinux_1_2_x86_64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ x86-64 | Details |
| wickra_darwin-0.1.2-cp39-abi3-musllinux_1_2_aarch64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ ARM64 | Details |
| wickra_darwin-0.1.2-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.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| wickra_darwin-0.1.2-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| wickra_darwin-0.1.2-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 6.4 MB
Release files / wickra_darwin-0.1.2.tar.gz
| Download URL | wickra_darwin-0.1.2.tar.gz |
|---|---|
| Size | 46.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be6e365dc8ba8269ccd6b6668cb4c4368ba143e8015d631bb531c19bcabae69c
|
|
BLAKE2b-256 checksum How to use checksums |
17d234a9c597ea44563674d6e5dba6807b4ddf9ee840aa1f1307bfd140d3ed49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_darwin-0.1.2-cp39-abi3-win_arm64.whl
| Download URL | wickra_darwin-0.1.2-cp39-abi3-win_arm64.whl |
|---|---|
| Size | 622.8 kB |
| Tags | CPython 3.9 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
620b24f8733bdd05e7ed06a7affd131d054383f63f8c9d2207f24bae12226b41
|
|
BLAKE2b-256 checksum How to use checksums |
fa8e35ce816c4a2bdb40da61f62586e3337e72222d82170ead08bb30ff33fc68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_darwin-0.1.2-cp39-abi3-win_amd64.whl
| Download URL | wickra_darwin-0.1.2-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 705.7 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a2efd3886de95637a00e7951449aa8f6039c00a32d238052d31b0a426629194c
|
|
BLAKE2b-256 checksum How to use checksums |
c080db7e2feded765efc4de963498c59ea2ff1dc4122fd527fdeb7f17ab70516
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_darwin-0.1.2-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | wickra_darwin-0.1.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 |
5e66b074c63f5382e3feb1a777f31ea516cc4583de170b8b8d9295ff2915e3f9
|
|
BLAKE2b-256 checksum How to use checksums |
a7ade4f717bf621d4e024513e4cf5de5dc97d02c560dc3ceb80666926768013d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_darwin-0.1.2-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | wickra_darwin-0.1.2-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 934.6 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
2a034da830db97a3b63c0f0f157b2132859ce8e97da9d68f0fa8278c69b29b04
|
|
BLAKE2b-256 checksum How to use checksums |
a65670ff93a009f8c89afecff07a69708ce81612d03999f626c62c1b48ee81b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_darwin-0.1.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | wickra_darwin-0.1.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 839.4 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8bbbdd9030206cd8e876ab16a740a58faf901d5036ca5a8258bfa171f6503a00
|
|
BLAKE2b-256 checksum How to use checksums |
1655576e69881ab77e2ee56a9c08d3ee49e27434817cf416a252375e4f65bc5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_darwin-0.1.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | wickra_darwin-0.1.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 755.8 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
45518436c9b7c8f176d1ea6502788c043bd81016e77bcd4afea191293139f1c9
|
|
BLAKE2b-256 checksum How to use checksums |
8cb6f7c9f8c85d7b17af5ca30ee227855d2080644b976cb5302c873de47c5840
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_darwin-0.1.2-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | wickra_darwin-0.1.2-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 686.2 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cf1f4f70f0ab43db4830df82eef566692a0449d781ef1510ec70403dfbd47cc8
|
|
BLAKE2b-256 checksum How to use checksums |
ca883879336e58dc735b6c3a6f31cb299d3e98530af881766f0cd293b01795ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_darwin-0.1.2-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | wickra_darwin-0.1.2-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 791.2 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
b3c0c6f635ab650f6e69f801a9fa9efd0dd705b65da7798e6fc2c8843b7b4d64
|
|
BLAKE2b-256 checksum How to use checksums |
1a1a4e15a62704f0886e400455621ebe149847e30a916e2243bf0b08ea505565
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|