Skip to main content

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.

Built on Wickra License: MIT OR Apache-2.0 PyO3 Docs

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.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-genome 0.1.1
File Size Uploaded
wickra_genome-0.1.1.tar.gz 68.1 kB Details

Built distributions (wheels)

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

Release files / wickra_genome-0.1.1.tar.gz

Download URL wickra_genome-0.1.1.tar.gz
Size 68.1 kB
Tags Source
SHA-256 checksum
How to use checksums
044b4a1158cc3e93fdfcd5488c70bd3a5a36ef76bb19814a7c46e8365edd25db
BLAKE2b-256 checksum
How to use checksums
82154f77cb91d0f67c85d0d1fcda2d470eed0efa4f16376d0b51d6cec9370c5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_genome-0.1.1-cp39-abi3-win_arm64.whl
Size 587.9 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
1c571b4ac02af9108a145be998a0db23f9446a101ce62027278ef5b046ed53de
BLAKE2b-256 checksum
How to use checksums
98f0a1cc0567fefbcef4916f75c7b3821b2f833b57d45bde0ac03b3874cdf729
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_genome-0.1.1-cp39-abi3-win_amd64.whl
Size 671.8 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0423b9980ee26e2eee233e2656823edea97b47ea3b50a8aa7b4fe816d89e25c7
BLAKE2b-256 checksum
How to use checksums
8ff32eb8a116dbe8b89cd01ab331706f3f1d583fc80fe42f8a46f1c9e2599d78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

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

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

Download URL wickra_genome-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 803.2 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
9eaeac223f2243b44e690a3a1043aeabf7e76cd98fecf506bc7caacbf3c619a8
BLAKE2b-256 checksum
How to use checksums
5182b946cafe99a9e22b3b5cd2dfb81eaaa8381c5555ffb5f1bf1b2a0d9b8399
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

Download URL wickra_genome-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
Size 653.1 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c2638e16a5cb5c2b3d96ac0b0c97e5d7c2ae2a598ce720fea7f49affadbd3a8c
BLAKE2b-256 checksum
How to use checksums
252c6e57425075bd4ee7ca1825f796ad6e265687f8f1a5042811edc1be198584
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_genome-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl
Size 757.0 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
f7a4f306240f1d65178ff38e868849235976b3fa87e3ae4bb6e63cb410345ba8
BLAKE2b-256 checksum
How to use checksums
349ec20d8e29c213cb7b54be38828e30b53ce63b530bb571b4c3cec4a22eb6c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release history Release notifications | RSS feed

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