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

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

Built distributions (wheels)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Download URL wickra_genome-0.1.2-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
03eebaeddb01b2c574320459964a4f4f6f2fcd2dd885cf83caa1109696d51cc0
BLAKE2b-256 checksum
How to use checksums
dbd4a571fb4dde23392217e8416a07c4cc8bfe6dd1b4dd9308ab7f11209cf294
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

This release

0.1.2 This release

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