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

Built distributions (wheels)

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

Total release size: 6.2 MB

Release files / wickra_genome-0.2.2.tar.gz

Download URL wickra_genome-0.2.2.tar.gz
Size 71.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ffd071501c0deab07148b71790ed4922f2df72028cd5328a4e36f4274d467f2f
BLAKE2b-256 checksum
How to use checksums
29e00173527c54a1c071effee38c35b3532cc7f131780761da7f10173e3c2346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

Download URL wickra_genome-0.2.2-cp39-abi3-win_arm64.whl
Size 594.3 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
23afcdf4694bf6f7ca91e0c1f7f896afcf3e7add7479080d083edca672ab57a5
BLAKE2b-256 checksum
How to use checksums
49ec16e99f96a3ffdb7990bdb5211ca3422f67e37e7bba66a176375f8bc2a8fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

Download URL wickra_genome-0.2.2-cp39-abi3-win_amd64.whl
Size 674.0 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
84378ffb5a8cb2d4a68646e422036890f95cc8e5b77b557143e2cb773e271288
BLAKE2b-256 checksum
How to use checksums
70eed1f87ba68f843c6fb4a9937d75af0037b407afad82b4eb7a6a22542c765f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

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

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

Download URL wickra_genome-0.2.2-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
2395ca4ced085ca7a61b23bf321dad76ac8dbe05045b920553ba4c54a551c60d
BLAKE2b-256 checksum
How to use checksums
bfcbbd05316b47b5ffe5e552d3f314c33059abfdf7c6425b6284b6120f8612a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

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

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

Download URL wickra_genome-0.2.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 720.9 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
78fc61be54206855d5bbd191672af4ab3a34eaa294d90b3edf89e53dea6a325e
BLAKE2b-256 checksum
How to use checksums
fadf64eea0241ca71ea157f2d532494006a52fe0bcdddbc2c9407bcfa5960080
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

Download URL wickra_genome-0.2.2-cp39-abi3-macosx_11_0_arm64.whl
Size 653.1 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4237725bcecdae6b23aaa15dd9021923a64c1eea0fd6fecac11d8cf8d68cce05
BLAKE2b-256 checksum
How to use checksums
7f20c9aa31bbafe4512096fe100e23736f88a5eb3a22143fa4d0ab524c5ed4db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

Download URL wickra_genome-0.2.2-cp39-abi3-macosx_10_12_x86_64.whl
Size 755.5 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
20df27c743f155bd0d4cafc43c3a4bd1bd2044292e0248a111560e4ed03a5759
BLAKE2b-256 checksum
How to use checksums
d5c8a8cd295fd3ae0621319e4c2001785372349c5347e242f09ba7462af9c65e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Security for wickra-genome 0.2.2

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