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

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

Built distributions (wheels)

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

Total release size: 6.1 MB

Release files / wickra_genome-0.2.0.tar.gz

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

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

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

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

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

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

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

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

Download URL wickra_genome-0.2.0-cp39-abi3-musllinux_1_2_aarch64.whl
Size 888.8 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
723a6fbb39f7b568156d4f09a2130b9bc75b81eeaff9fc365463b7aa24ce42bf
BLAKE2b-256 checksum
How to use checksums
96c6462433ce8eeadcc1c250a7c76b22ac05a82a076edf8665985eebcb3f947a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

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

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

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

Download URL wickra_genome-0.2.0-cp39-abi3-macosx_11_0_arm64.whl
Size 655.5 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
574a5e291526ce59af172f67a492641c87e587ff5c302ebaf8621bc4603a221e
BLAKE2b-256 checksum
How to use checksums
2292f8426d2271b70474a3317dddef8bc25874153755393a2f0971ff67850575
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

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

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

9 release files

0.1.5

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