Wickra Genome — Python
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
Build from source
maturin develop --release
Usage
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.
License
Dual-licensed under either of Apache-2.0 or MIT at your option.
Release files for wickra-genome 0.1.0
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.0.tar.gz | 68.1 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| wickra_genome-0.1.0-cp39-abi3-win_arm64.whl | CPython 3.9 | abi3 | Windows ARM64 | Details |
| wickra_genome-0.1.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| wickra_genome-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ x86-64 | Details |
| wickra_genome-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ ARM64 | Details |
| wickra_genome-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_genome-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| wickra_genome-0.1.0-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| wickra_genome-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.2 MB
Release files / wickra_genome-0.1.0.tar.gz
| Download URL | wickra_genome-0.1.0.tar.gz |
|---|---|
| Size | 68.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8f61286dd82d836268dca977746422062335c9c3ed7dc452e4264508fc817ea
|
|
BLAKE2b-256 checksum How to use checksums |
ec305b48dba209de38a04ea37eef4417b58d1c6db47487bd3af8cef02a3af7b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.0-cp39-abi3-win_arm64.whl
| Download URL | wickra_genome-0.1.0-cp39-abi3-win_arm64.whl |
|---|---|
| Size | 587.8 kB |
| Tags | CPython 3.9 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
0db3ceebecb9e0936b1e84cb5ae6812c8193fe939f464b4de8dc86ea717f489b
|
|
BLAKE2b-256 checksum How to use checksums |
6d0e4115ee753de2cf55c4bb10c15170a7e55512b613b0f866ced22d2ad8cec8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.0-cp39-abi3-win_amd64.whl
| Download URL | wickra_genome-0.1.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 671.8 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8905bd18b638d8b575acf4a2bfb287c16453b3d82a3b81f9cc3005c0c77510fc
|
|
BLAKE2b-256 checksum How to use checksums |
6568da3c744a3e2c9b35e1c5cde2a596a25e95df324754bd87dd37db5ead9996
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | wickra_genome-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 |
8fcf98d38a54283a6d8fb2be7e84763e0dd2fef13e62326095dbc66097fd7cfd
|
|
BLAKE2b-256 checksum How to use checksums |
82e9c02a22b2c8deee73f1905f787c0ec63b03c1f870f8a394d1f67f6a699295
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | wickra_genome-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 897.3 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
2f57990c0311a57a788aab8f26caa0f98774a0b1ec485916fa0a2ab1e16d738f
|
|
BLAKE2b-256 checksum How to use checksums |
d0626ce7c2ec158e76c66c74304ccfa1f01086a033d252472a4c1db72f540bf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | wickra_genome-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 803.3 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
165bb7c62f5863ecd044e3c0b49b70a3552c8fa1d6e487b53f394783e9168c28
|
|
BLAKE2b-256 checksum How to use checksums |
388c22af323b9b33cb4e5bbbc9700c73f4a2d634b557d430edeab07bd9ed2387
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | wickra_genome-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 718.6 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
6fb71db4ebada6fc19247a97d9e179191ee6a49d6b660b9ab12e5b301b3286b3
|
|
BLAKE2b-256 checksum How to use checksums |
65dd942439bbd820cbf08c23c92c1b41d54b6dad2d8a85becba131e48c6fb4c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | wickra_genome-0.1.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 653.0 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a98de4cc08cd96b5a81f691487673d777c30014ba19ae757e89f2a5e8f9e7121
|
|
BLAKE2b-256 checksum How to use checksums |
4da65750e8a6e4fb1472d0440c6b044bef065f995134bc69dd3201497916b3dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|
Release files / wickra_genome-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | wickra_genome-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 757.1 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
ebf725b24f1d0fdbfd207dacbabbc9afc973be4f26ee16c9ab50dc3f3228a39b
|
|
BLAKE2b-256 checksum How to use checksums |
1f2eec05eb58344decb5534c05c29890bcd214c765dfb303b4ef1ed0f709279e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|