Skip to main content

rmlst-cli

rmlst-cli is a simple tool to use the rMLST API through the command line.

Install

pip install rmlst-cli
# or
uv tool install rmlst-cli
# or
conda install -c bioconda rmlst-cli
# or
pixi add -c bioconda rmlst-cli

Quickstart

Single FASTA file:

rmlst -f sample.fasta

Directory of FASTA files:

rmlst -d ./fastas/ -O ./results/

Output modes

  • Full JSON (default):

    rmlst -f sample.fasta
    
  • Species only (two columns: species and support):

    rmlst -f sample.fasta --species-only
    # With custom headers
    rmlst -f sample.fasta --species-only="Species Support"
    

Examples

Trim to 5000 contigs:

rmlst -f large.fasta --trim-to-5000

Graceful failure (continue on error):

rmlst -d ./fastas/ --graceful

Exit codes

Code Meaning
0 Success
1 Unexpected error
2 Input/usage error (invalid FASTA, empty dir, etc.)
3 Too many contigs (>5000) without --trim-to-5000
4 Network error after retries
5 HTTP error or invalid JSON
7 Filesystem error
130 Interrupted (Ctrl-C)

Python API usage

from rmlst_cli import api

# Single file
try:
    result = api.identify("sample.fasta")
    print(result)
except Exception as e:
    print(f"Error: {e}")

# Directory
for basename, result in api.identify_dir("./fastas/", graceful=True):
    print(f"{basename}: {result}")

# Extract species
from rmlst_cli.formats import extract_species, extract_species_and_support
species = extract_species(result)  # Comma-separated string
species_names, support_values = extract_species_and_support(result)  # Separate strings

Metadata

Release files for rmlst-cli 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rmlst-cli 1.1
File Size Uploaded Provenance Actions
rmlst_cli-1.1.tar.gz 10.0 kB With provenance Details for rmlst_cli-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rmlst-cli 1.1
File Interpreter ABI Platform Actions
rmlst_cli-1.1-py3-none-any.whl Python 3 none any Details for rmlst_cli-1.1-py3-none-any.whl

Total release size: 22.7 kB

Release files / rmlst_cli-1.1.tar.gz

Download URL rmlst_cli-1.1.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
20651b38aad7625e96a7fb85858495d12197fdf5c2deebbdbd10f665c96df553
BLAKE2b-256 checksum
How to use checksums
763445d08c5cf06b8851eb337f76b17e27f27b0ed5c43dcd15c447415a06a670
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 13, 2026.

Transparency log

Release files / rmlst_cli-1.1-py3-none-any.whl

Download URL rmlst_cli-1.1-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
254ec7ccbce0e93a37ab47e183894b3ef72f59aa51c45d8bc16c67c2020874c0
BLAKE2b-256 checksum
How to use checksums
3aa06ae4564682216a1750509b5f3da0b6168df438eb9ae0e3f5403375d38770
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 13, 2026.

Transparency log

Security for rmlst-cli 1.1

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rmlst_cli-1.1.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 Jun 13, 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.

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