microbiorust-py

Crates.iomicrobiorust-py
lib.rsmicrobiorust-py
version0.1.1
created_at2025-06-27 15:26:04.756037+00
updated_at2025-06-27 15:37:12.059722+00
descriptionMicrobiology friendly bioinformatics Rust functions
homepage
repositoryhttps://github.com/LCrossman/microBioRust
max_upload_size
id1728844
size47,018
(LCrossman)

documentation

README

microbiorust-py

Python bindings for microBioRust — a high-performance, modular bioinformatics toolkit written in Rust.

microBioRust is the core Rust Crate

microbiorust-py provides fast and memory-efficient bioinformatics functionality to Python users by leveraging the power of Rust, exposed through PyO3. This package aims to offer an alternative to libraries like Biopython, with a focus on speed, correctness, and extensibility.


Features

  • Fast parsers for GenBank and EMBL formats
  • Output to GFF, FAA, and FFN
  • Accurate feature extraction and translation
  • Seamless Python API for easy integration into existing pipelines
  • Built with Rust for safety and performance

Installation

Build the PyModule from source using maturin (recommended) - You will need to use the --features flag below:

pip install maturin
maturin develop --features extension-module

You can run

cargo test

which tests if the pyfunctions have been successfully added to the PyModule

Example usage in Python:

import microbiorust
result = microbiorust.gbk_to_faa("test_input.gbk")
for r in result:
   print(r)
Commit count: 94

cargo fmt