kmhelpers
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
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
Quick Install with Conda
This will automatically:
- Install
kmhelpersPython package - Install
kmindexandntcard
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
.envcan 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
Once the environment has been activated:
# Check the installed version
kmhelpers --version
# View available commands
kmhelpers --help
Tip:
khis available as a short alias forkmhelpers(e.g.kh --help).
# Check ntcard
ntcard --version
# Check kmtricks
kmtricks --version
# Check kmindex
kmindex --version
Update
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:
- Author: Sébastien BELLENOUS
- Email: kmhelpers@groupes.renater.fr
- Repository: GitHub
- Supervisor: Pierre Peterlongo
Version: 0.7.0 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kmhelpers-0.7.0.tar.gz | 155.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kmhelpers-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 339.8 kB
Release files / kmhelpers-0.7.0.tar.gz
| Download URL | kmhelpers-0.7.0.tar.gz |
|---|---|
| Size | 155.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0775a7e2f975ac12ba905a70a27ea00de398cbae190b0fe2b8d7090d1f61b1e5
|
|
BLAKE2b-256 checksum How to use checksums |
e937f3c8175facf61ce915b7283d448f14e280cc82fce1d56011e1cd9391f575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 2, 2026.
Transparency logRelease files / kmhelpers-0.7.0-py3-none-any.whl
| Download URL | kmhelpers-0.7.0-py3-none-any.whl |
|---|---|
| Size | 184.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d18a621abd8cc606f5b4074daf7b0bd1b34bc16b0bd3c9459a7bba914610fa1d
|
|
BLAKE2b-256 checksum How to use checksums |
ea7199255510961d307b515551ff0fc58e102fd4a584a730da956abf52f4dc93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 2, 2026.
Transparency log