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.

Metadata

Release files for wickra-genome 0.1.5

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.5
File Size Uploaded
wickra_genome-0.1.5.tar.gz 70.4 kB Details

Built distributions (wheels)

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

Download URL wickra_genome-0.1.5.tar.gz
Size 70.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a7718611d667d83cf130db18301b293c7fff73cee8a6b321d17e5a36892c745d
BLAKE2b-256 checksum
How to use checksums
88fe07429fc21e7005c77a2e3bcc0065f6fd223140522cbbb884e258931d9e35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_genome-0.1.5-cp39-abi3-win_arm64.whl
Size 589.4 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
3c277083ec2f4119d3668255917f84db2bdc69d9946c15c269f871080e004f9c
BLAKE2b-256 checksum
How to use checksums
c95beef0a708a794bf429355c6046550606815ef6cc3b3352771676dd6e9eeb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

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

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

Download URL wickra_genome-0.1.5-cp39-abi3-musllinux_1_2_aarch64.whl
Size 898.6 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
9dc81a1375d33d4fe1b48863719bee7198675ecbca4dc705be936d6eb755c166
BLAKE2b-256 checksum
How to use checksums
2704e36aa08d018092ad98fd29a240b7f3a65231718051f5078bdbe783cef184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

Download URL wickra_genome-0.1.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 719.8 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
f3c0a11fb54afe0414f6ad69fbf3917114f0e516fddb0e928964f46c5c9489d1
BLAKE2b-256 checksum
How to use checksums
edc0889d487a36ac70168ae114396e3a471f03aa94bfc82a9233311f45c7132c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

Download URL wickra_genome-0.1.5-cp39-abi3-macosx_11_0_arm64.whl
Size 654.2 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
71c09ab35fa2cdeb5b09cccbe64e0b26d04f52ee007a58e8fc4232345c576cbf
BLAKE2b-256 checksum
How to use checksums
1bc50ba621fa93376ba0c629990d2ed932f554adad0d3f01cb56af1bba9693d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

Release history Release notifications | RSS feed

0.2.0

9 release files

This release

0.1.5 This release

9 release files

0.1.4

9 release files

0.1.3

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