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.2.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.2.3
File Size Uploaded Provenance Actions
wickra_genome-0.2.3.tar.gz 71.3 kB Without provenance Details for wickra_genome-0.2.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for wickra-genome 0.2.3
File Actions
wickra_genome-0.2.3-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details for wickra_genome-0.2.3-cp39-abi3-win_arm64.whl
wickra_genome-0.2.3-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for wickra_genome-0.2.3-cp39-abi3-win_amd64.whl
wickra_genome-0.2.3-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details for wickra_genome-0.2.3-cp39-abi3-musllinux_1_2_x86_64.whl
wickra_genome-0.2.3-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details for wickra_genome-0.2.3-cp39-abi3-musllinux_1_2_aarch64.whl
wickra_genome-0.2.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for wickra_genome-0.2.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
wickra_genome-0.2.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for wickra_genome-0.2.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
wickra_genome-0.2.3-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for wickra_genome-0.2.3-cp39-abi3-macosx_11_0_arm64.whl
wickra_genome-0.2.3-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for wickra_genome-0.2.3-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 6.2 MB

Release files / wickra_genome-0.2.3.tar.gz

Download URL wickra_genome-0.2.3.tar.gz
Size 71.3 kB
Tags Source
SHA-256 checksum
How to use checksums
77ae0c2bc4ff77b12c77a1c73002503f7aad2e7de4f484d96981fc1a10ef6322
BLAKE2b-256 checksum
How to use checksums
9cff275465929ac611b83357f08f2be0a7e9dc076f5bec2bd8a8d7fa0a7ff5f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_genome-0.2.3-cp39-abi3-win_arm64.whl
Size 594.6 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
2b183be83ff300e2b9057f2f5c4fd9719748c6e2eb25d53c2e687df833021c55
BLAKE2b-256 checksum
How to use checksums
4263ba9d491e4ee87ca84d746d0a2a27f84b765707203cd06ccb40d071a3a2be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_genome-0.2.3-cp39-abi3-win_amd64.whl
Size 674.0 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
9bf7fb8b23c52d316b011b49315018b5d75d176e8a2dde2c9b59ca49adaadff5
BLAKE2b-256 checksum
How to use checksums
c6aa3e42425c858f9214f9b6b7925a1f7f0489f284ccae109f93604e633673f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_genome-0.2.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
eb1565318868961881d7bf85c395a87dc92c7ff790bf62bac1c4f91c5dbdb75e
BLAKE2b-256 checksum
How to use checksums
23f802d8491458471c99e9fe956c4d6b7d27480c52a48073df992afbea48d163
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_genome-0.2.3-cp39-abi3-musllinux_1_2_aarch64.whl
Size 897.8 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
5ecb3fe09d41a86fe5af4db321ca61efb77ab6e7617eaa9118c63406cad1a269
BLAKE2b-256 checksum
How to use checksums
acc083e7f23fc9e95357b00a65fbcee083205e8096ca494a7cf22012a883aad9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_genome-0.2.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 798.8 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
c6411aaa2c5acfb7853df7a1e19c0154ba1597377f1943ad53a656846b30cd9f
BLAKE2b-256 checksum
How to use checksums
b56b2108f8da7d8813a40c60885d7f2722a350b8239b1e9d9f31c455253a6f2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_genome-0.2.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 721.0 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
b937a49c8c48bc8a7627a8f1d848094bb226dc949002115c129fcb1b859e1d4b
BLAKE2b-256 checksum
How to use checksums
e7b136b145202a2992e657c7cb0684a35f40c8ad3ba11bcecb64b8da8b35158c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_genome-0.2.3-cp39-abi3-macosx_11_0_arm64.whl
Size 653.2 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2885579f5b28d26f8ed48c44affe7e7d76989f45bccc62772e52d17974ee0ecc
BLAKE2b-256 checksum
How to use checksums
1e51ab83ade55382c4781a4eea0bb62cba5b1a8a2d5372ab12c2da9b8212185e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL wickra_genome-0.2.3-cp39-abi3-macosx_10_12_x86_64.whl
Size 755.4 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
98b155de0bf579606b9dc7f499239c0f8b66b6db31b9146127549ca8606e7a3e
BLAKE2b-256 checksum
How to use checksums
ce40504f5f7be58be2c0042f79ce3e1f2656bf308d6a22b1dcd65f8d051d295f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for wickra-genome 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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