Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.7.4 instead.
Reason given by maintainers: fails to import on Python < 3.10

kmhelpers


Kmhelpers Logo

A Python toolkit for managing, compressing, and querying kmindex indices efficiently.

Documentation: https://sebllns.github.io/kmhelpers/


Table of Contents

Disclaimers

kmhelpers is provided "as is", without warranty (see LICENSE). Operations that build, update, or compress indices modify data in place, so it might be useful to back up important data beforehand, and if you are not sure of something, ask here before running it.

Getting started

Install with pip

pip install kmhelpers
kmhelpers install-deps

install-deps downloads the kmtricks, kmindex and ntcard binaries next to the kmhelpers executable, so a virtual environment (python -m venv) is recommended.

To update:

pip install --upgrade kmhelpers

Install from source with Conda

Clone the repository and navigate to it

git clone https://github.com/sebllns/kmhelpers
cd kmhelpers

To clone a released version directly:

git clone --branch vX.Y.Z https://github.com/sebllns/kmhelpers
cd kmhelpers

Create the Conda environment

This will automatically:

  • Install kmhelpers Python package
  • Install kmindex and ntcard

Prerequisites: Conda (Miniconda or Anaconda) must be installed. If you don't have it, see Installation Instructions.

# Create environment with kmindex pre-installed
conda env create -f conda/environment.yml -p ./.env

# Activate the environment
# Run this each time you open a new terminal session before using kmhelpers
conda activate ./.env

Note: Once per terminal session, activate the environment before using kmhelpers:

conda activate /path/to/kmhelpers/.env

.env can be replaced by any path, for example a shared or permanent location like ~/.kmhelpers:

conda env create -f conda/environment.yml -p ~/.kmhelpers
conda activate ~/.kmhelpers

Verify Installation

For a Conda install, once the environment has been activated:

# Check the installed version
kmhelpers --version

# View available commands
kmhelpers --help

Tip: kh is available as a short alias for kmhelpers (e.g. kh --help).

# Check ntcard
ntcard --version

# Check kmtricks
kmtricks --version

# Check kmindex
kmindex --version

Update a source install

To pull the latest changes from the default branch (main):

git pull origin main

To check out a released version instead:

git fetch --tags
git checkout vX.Y.Z

If your local branch is already tracking a remote branch, you can simply run:

git pull

Check the installed version:

kmhelpers --version

Documentation

https://sebllns.github.io/kmhelpers/

Covers installation, a full tutorial, command reference, core concepts, and the API reference.

License

This project is licensed under the GNU General Public License - see the LICENSE file for details.

Copyright (c) 2026 Sébastien Bellenous, Genscale, INRIA

Contact

For questions, bug reports, or contributions, please contact:


Version: 0.7.2 Status: Development

Changelog

See CHANGELOG.md for detailed version history.

Acknowledgements

The authors thank Téo Lemane for developing kmindex and for his responsiveness in addressing feature requests and issues raised during the development of kmhelpers. We acknowledge the GenOuest core facility (https://www.genouest.org) for providing the computing infrastructure. The work was funded by the Inria Challenge "OmicFinder" (https://project.inria.fr/omicfinder/), and by the state funding managed by the French National Research Agency under the France 2030 program [ANR-22-PEAE-0005].

Metadata

Release files for kmhelpers 0.7.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 kmhelpers 0.7.2
File Size Uploaded Provenance Actions
kmhelpers-0.7.2.tar.gz 181.8 kB With provenance Details for kmhelpers-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kmhelpers 0.7.2
File Interpreter ABI Platform Actions
kmhelpers-0.7.2-py3-none-any.whl Python 3 none any Details for kmhelpers-0.7.2-py3-none-any.whl

Total release size: 400.9 kB

Release files / kmhelpers-0.7.2.tar.gz

Download URL kmhelpers-0.7.2.tar.gz
Size 181.8 kB
Tags Source
SHA-256 checksum
How to use checksums
62b9f1b3b58fc2418f3f50e56bc7366148a342e29be37ce3476034407efb69a7
BLAKE2b-256 checksum
How to use checksums
b80b2057d22bd11a67d06a3d327f089c40fd9ab3409bc2cdd20b68bb314be022
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / kmhelpers-0.7.2-py3-none-any.whl

Download URL kmhelpers-0.7.2-py3-none-any.whl
Size 219.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
085bbadc0a773c03a10e4d02a89a37a84a944ffb6e44477c90a956eea3f6cec8
BLAKE2b-256 checksum
How to use checksums
73ba7ed751abcf95f77206724112a681aff84621b65d4702280f01ed3901e152
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for kmhelpers 0.7.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kmhelpers-0.7.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.7.2 This release

2 release files Full provenance

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