Wickra Genome — Python
Part of the Wickra ecosystem: — for Python. pip install wickra-genome — prebuilt wheels for Linux, macOS and Windows, nothing to compile.
Python bindings for the Wickra Genome vector engine, built with PyO3 and
maturin. A Genome handle is driven over a JSON boundary, so the same commands
yield the byte-identical similarity, clustering and anomaly results as every
other Wickra Genome binding.
Install
pip install wickra-genome
Pre-built wheels ship for Linux, macOS and Windows — there is nothing to compile and no C library to track down.
Building from this repository (contributors)
maturin develop --release
Quick start
import json
from wickra_genome import Genome
spec = {
"features": [{"kind": "price", "field": "close"}],
"symbols": ["AAA", "BBB", "CCC"],
"normalize": "z_score",
"metric": "euclid",
"seed": 24333,
}
g = Genome(json.dumps(spec))
data = {
"AAA": [{"time": 0, "open": 1, "high": 1, "low": 1, "close": 1, "volume": 0}],
"BBB": [{"time": 0, "open": 2, "high": 2, "low": 2, "close": 2, "volume": 0}],
"CCC": [{"time": 0, "open": 100, "high": 100, "low": 100, "close": 100, "volume": 0}],
}
g.command(json.dumps({"cmd": "build", "data": data}))
print(g.command(json.dumps({"cmd": "similar", "symbol": "AAA", "k": 2})))
print(g.command(json.dumps({"cmd": "anomaly"})))
The command protocol (build, feed, vector, similar, cluster,
anomaly, version) is identical across every binding; only the Rust core
computes, so a fixed seed gives the byte-identical clustering everywhere.
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:
- Repository: https://github.com/wickra-lib/wickra-genome
- Docs (guides, spec reference, cookbook): https://genome.wickra.org
- Runnable example:
examples/python/
Wickra Genome 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-genome/blob/main/SECURITY.md.
Disclaimer
Wickra Genome is research and analytics software. Its similarity, clustering and anomaly outputs are not investment advice, and nothing here is a recommendation to trade. Use at your own risk.
License
Licensed under either of Apache-2.0 or MIT at your option.
Release files for wickra-genome 0.1.4
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_genome-0.1.4.tar.gz | 70.2 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| wickra_genome-0.1.4-cp39-abi3-win_arm64.whl | CPython 3.9 | abi3 | Windows ARM64 | Details |
| wickra_genome-0.1.4-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| wickra_genome-0.1.4-cp39-abi3-musllinux_1_2_x86_64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ x86-64 | Details |
| wickra_genome-0.1.4-cp39-abi3-musllinux_1_2_aarch64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ ARM64 | Details |
| wickra_genome-0.1.4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| wickra_genome-0.1.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| wickra_genome-0.1.4-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| wickra_genome-0.1.4-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 6.2 MB
Release files / wickra_genome-0.1.4.tar.gz
| Download URL | wickra_genome-0.1.4.tar.gz |
|---|---|
| Size | 70.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
145a1ee19bacfdbc19f4a805f1f25b52e1cb55dd32ce2bea56d3be0450559416
|
|
BLAKE2b-256 checksum How to use checksums |
21e46d3d4875feca97d33b1d4bbfc6338866e86987d98c57a13ce1c23f836b13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.4-cp39-abi3-win_arm64.whl
| Download URL | wickra_genome-0.1.4-cp39-abi3-win_arm64.whl |
|---|---|
| Size | 588.8 kB |
| Tags | CPython 3.9 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
e8a7f488a5005d9916e71946223743a18bb6819821b15dca67704fc40c29b204
|
|
BLAKE2b-256 checksum How to use checksums |
71aced75892a8780c079cb38d69d5100ff2f3ed641a9f57992149e4764f1c091
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.4-cp39-abi3-win_amd64.whl
| Download URL | wickra_genome-0.1.4-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 672.7 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c267e24c50a365d44fdbd36b782e7c77cbab34f1fe706048ab10fb2eb0407d79
|
|
BLAKE2b-256 checksum How to use checksums |
9c974b1c824f61f5ae59809d3af54ed33f8ba47e66f678eb1797a4f72c0e28b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.4-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | wickra_genome-0.1.4-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 |
ed0b190bf17fcd87a8b070b2a64d786941e9f2c93fc25ed7865df6ee3a218bc2
|
|
BLAKE2b-256 checksum How to use checksums |
d1bf2f9d49781e80a4cd2889e76ef1f45c59dc0eb14ee2aea346d9171f3a599a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.4-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | wickra_genome-0.1.4-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 898.4 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
74c00fb349f31bdb0582fcbd814aa6bfe54d56c0a7da3b1acb5ed0c79d57b92b
|
|
BLAKE2b-256 checksum How to use checksums |
fb026ceaca43f41500bf89d6135e7fce70d493da0cfc73ab416b97c1e65207c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | wickra_genome-0.1.4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 804.2 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
568987cb4729ff59e5748d9be668354fdb1d6e21685387acebad7fb948b45f02
|
|
BLAKE2b-256 checksum How to use checksums |
96e2514b57c343f3d18a19b023ade6e5ac0db6a4b588ba4039f8f428ca8f711b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | wickra_genome-0.1.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 719.6 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
66b4182b1eebd728a668049dd5a16f9c88be6721d3aa33f13f0c6e0cec780f88
|
|
BLAKE2b-256 checksum How to use checksums |
c1f2266a2e1fd70d58a88fc4497f89ef4b4835aa1fcca99755e705ced1dcd245
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.4-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | wickra_genome-0.1.4-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 654.0 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ba19e717a585e76465eaedb928e64f3bf1a321d28975f61a9b79a9203789e3e1
|
|
BLAKE2b-256 checksum How to use checksums |
b398300bc6f73d49ddde83c2865b3f3ce27881e852e711161aebfd387b475059
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.4-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | wickra_genome-0.1.4-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 758.0 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
f50c2a593cfc4b9434195d11b99b06d9300692640e3505ca748968e93b92d518
|
|
BLAKE2b-256 checksum How to use checksums |
9e59b5d18c0407c97371efc1a8551cfde3be3aa3cf3f8e08b71bd580b0dfcc0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|