Skip to main content

Wickra Genome — a vector database of the whole market

CI codecov PyPI License: MIT OR Apache-2.0

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:

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.3

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.3
File Size Uploaded
wickra_genome-0.1.3.tar.gz 70.3 kB Details

Built distributions (wheels)

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

Download URL wickra_genome-0.1.3.tar.gz
Size 70.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a0eee3684162dbb7dd95574a2f2e35314e2ed6f9fd7bd4ea37d36b3724c3a8b9
BLAKE2b-256 checksum
How to use checksums
7738c71bb2b383b9b2d5de2e7778abfb0bff8117bf06c3e924e98715eed16491
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_genome-0.1.3-cp39-abi3-win_arm64.whl
Size 588.8 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
17901c4e3b64a937ba62a6ceed6b53caa2359db7a1e0ea7bcf79f3b04d5fbb62
BLAKE2b-256 checksum
How to use checksums
7d356e869fd8732dbde37bd045342170dd1b3d2312712727d27663905f459422
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_genome-0.1.3-cp39-abi3-win_amd64.whl
Size 672.8 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
de6b25f3c1ffa3162f861c4c3c4dad01402ef82f6fcd86f97656685b02000681
BLAKE2b-256 checksum
How to use checksums
83f239fab8ba39bac562d1316dbcf119d7fa65961c877fdccfd7b5ef80da3342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_genome-0.1.3-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
3f9a58fd79e468401708d23830ad10432a8d3a5b086bcff01bca4dc112f0c0a9
BLAKE2b-256 checksum
How to use checksums
8d26ced868a2449de4f574ed80c2a6b258c182fde7904d41530c31d14834245d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_genome-0.1.3-cp39-abi3-musllinux_1_2_aarch64.whl
Size 898.3 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
c13131d7e13f6d3e9efa4399b9b5e7f3c2a2e56bfceea7875946f8af6861a3a3
BLAKE2b-256 checksum
How to use checksums
99491bc63f65cf58d7187978ccbbbc56ca8c7ab096928b805660782a4b23ec61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

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

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

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

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

Download URL wickra_genome-0.1.3-cp39-abi3-macosx_10_12_x86_64.whl
Size 758.1 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
5b1d8d902714cd0be0e77b83b406c0779f5896c1951430f5b73f5a0ceab27ed2
BLAKE2b-256 checksum
How to use checksums
690429426d293a60501fe4f257455c6374c6cf443ce0dbda341ab8d265f9dc93
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

This release

0.1.3 This release

9 release files

0.1.2

9 release files

0.1.1

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