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.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.2.1
File Size Uploaded Provenance Actions
wickra_genome-0.2.1.tar.gz 70.4 kB Without provenance Details for wickra_genome-0.2.1.tar.gz

Built distributions (wheels)

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

Total release size: 6.1 MB

Release files / wickra_genome-0.2.1.tar.gz

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

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

Download URL wickra_genome-0.2.1-cp39-abi3-win_arm64.whl
Size 582.4 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
8e32b4760420b6e53fa136b009ce9a9c6df5710bcc499ab9cf97162b1c2f9e8b
BLAKE2b-256 checksum
How to use checksums
7996d35d570e9d52463e52dd3737df7a8cc9e404eb616fe923143eddf10d955b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

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

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

Download URL wickra_genome-0.2.1-cp39-abi3-musllinux_1_2_aarch64.whl
Size 888.3 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
0ee228758abcf44784a4c9301db69875ec98aec721d25c94777d7d89d3f03345
BLAKE2b-256 checksum
How to use checksums
4f36a5f021245a560a33073511d76f82c4a3294d7904739b4bca9d57a7ebd5fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

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

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

Download URL wickra_genome-0.2.1-cp39-abi3-macosx_11_0_arm64.whl
Size 642.2 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
890b773a38a9f04b811acf4d4bd8e21262295c82dfb712499925f36ea03fbd52
BLAKE2b-256 checksum
How to use checksums
14c3d504096d222962b89efc4d061081735088a939c4a4f279e2674590007b2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

Security for wickra-genome 0.2.1

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