allotax
Python bindings for allotax-core — fast allotaxonometer computation powered by Rust via PyO3.
Install
pip install allotax
Usage
import allotax
sys1 = {"types": ["word_a", "word_b", "word_c"], "counts": [100.0, 50.0, 25.0]}
sys2 = {"types": ["word_b", "word_c", "word_d"], "counts": [80.0, 40.0, 20.0]}
# Single alpha — lean display result
result = allotax.compute_allotax(sys1, sys2, alpha=1.0)
# result keys: normalization, delta_sum, diamond_counts, max_delta_loss, wordshift, balance, alpha
# Multiple alphas at once (shared combElems step, Rayon-parallelized)
result = allotax.compute_allotax_multi_alpha(sys1, sys2, alphas=[0.5, 1.0, float("inf")])
# result keys: balance, alpha_results
# Full intermediate data (for custom downstream processing)
result = allotax.compute_allotax_full(sys1, sys2, alpha=1.0)
result = allotax.compute_allotax_multi_alpha_full(sys1, sys2, alphas=[0.5, 1.0])
API
| Function | Returns |
|---|---|
compute_allotax(sys1, sys2, alpha, wordshift_limit=200) |
Lean display dict for a single α |
compute_allotax_full(sys1, sys2, alpha) |
Full intermediate result for a single α |
compute_allotax_multi_alpha(sys1, sys2, alphas, wordshift_limit=200) |
Lean display dict for multiple α values |
compute_allotax_multi_alpha_full(sys1, sys2, alphas) |
Full intermediate result for multiple α values |
rank_turbulence_divergence(ranks1, ranks2, counts1, counts2, alpha) |
RTD only (pre-combined data) |
Input systems are plain dicts with "types" (list of str) and "counts" (list of float).
References
Gallagher et al. (2021). Generalized word shift graphs. EPJ Data Science, 10(1), 4.
Metadata
Release files for allotax 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| allotax-0.3.2.tar.gz | 9.5 kB | Without provenance | Details for allotax-0.3.2.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| allotax-0.3.2-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for allotax-0.3.2-cp39-abi3-win_amd64.whl |
| allotax-0.3.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details for allotax-0.3.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| allotax-0.3.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details for allotax-0.3.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| allotax-0.3.2-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl | CPython 3.9 | abi3 | macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64 | Details for allotax-0.3.2-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
Total release size: 1.5 MB
Release files / allotax-0.3.2.tar.gz
| Download URL | allotax-0.3.2.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f480f8f5f71a594a7354e46dc2be42200e1ccda338fdf885151d055a4112a604
|
|
BLAKE2b-256 checksum How to use checksums |
729480f2498bad6f73fc652d9271453978f53efccd9cb7cb60186647af28fc5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / allotax-0.3.2-cp39-abi3-win_amd64.whl
| Download URL | allotax-0.3.2-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 221.5 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d05659845122ac2f4ec74199b270d3980bfe54e049fdb1ab79f5b298f5b165e6
|
|
BLAKE2b-256 checksum How to use checksums |
be2026295a323ee3d16bfbfe65ea14ad8753ddc6ff07405f0a83faf61c0d4068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / allotax-0.3.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | allotax-0.3.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 351.0 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
12158f793b2a86a069ce95e717838099cb510bdf6628b234b0f9a5257e247d9c
|
|
BLAKE2b-256 checksum How to use checksums |
b6c9ced4dd091458d28111f99bf2b5a2dd87ef9c4a4f71e50ba535a5a09d6114
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / allotax-0.3.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | allotax-0.3.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 341.0 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
aca15fce05aeb1c2c8f3092245f1ab8f674b95c3654e738c6050eee0acd7ddff
|
|
BLAKE2b-256 checksum How to use checksums |
7122954a1cb01f1876adcc871fafad9801ca0022247eb3eba369d551bea5641e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / allotax-0.3.2-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
| Download URL | allotax-0.3.2-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
|---|---|
| Size | 626.3 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d23a281a59d364d35a6b6a86a207b8b576effdad2e50f7c41aeb0f5ed9b18a50
|
|
BLAKE2b-256 checksum How to use checksums |
02e0f707ab3a337a32bf975ffb8cd2713639259d0628c58fb961e56503edbbbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for allotax 0.3.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.