Skip to main content

bactax 0.2.0

A simple python tool for getting bacterial taxonomy and gram stain information from NCBI taxonomy data.

Installation

The most recently released version of bactax can be downloaded with pip:

pip install bactax

Usage

Getting taxonomic information for a bacteria

import bactax

genus = "akkermansia"
taxonomy = bactax.get_taxonomy(genus=genus) # returns a Taxonomy object

This will return a Taxonomy object with all the information above the level of genus filled in (i.e., family, order, class, etc.).

Determining gram stain

import bactax

genus = "escherichia"
gram_stain = bactax.gram_stain(genus=genus) # returns Gram.NEGATIVE

Updating the taxonomy data

bactax uses data from NCBI's taxonomy database. This data is downloaded and stored in a gzipped csv within the package. Since NCBI regularly updates their data, bactax provides a method to download the latest taxonomy database from NCBI.

import bactax
bactax.update()

Metadata

Release files for bactax 0.2.0

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

Source distribution (sdist)

Source distribution for bactax 0.2.0
File Size Uploaded Provenance
bactax-0.2.0.tar.gz 4.9 MB Without provenance Details

Built distribution (wheel)

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

Total release size: 9.9 MB

Release files / bactax-0.2.0.tar.gz

Download URL bactax-0.2.0.tar.gz
Size 4.9 MB
Tags Source
SHA-256 checksum
How to use checksums
01941aa0d2b5cde96ce604429eaee2d4c138f9e5df5f6097a4c83cba9115e86d
BLAKE2b-256 checksum
How to use checksums
02ed0488f8775464e77c29dc6697a7e2107902ac5004b67b3dad54477f196bd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.0 CPython/3.13.2 Darwin/24.4.0

Release files / bactax-0.2.0-py3-none-any.whl

Download URL bactax-0.2.0-py3-none-any.whl
Size 4.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
30cfa5fde56cdb1cd518bfa86763f566d05124e7781c56450ca005bbedbbdf86
BLAKE2b-256 checksum
How to use checksums
0e79665a2c8d8d5ffc720e1c25f551554d17cf2ec7046e06a146052fb1dfc5a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.0 CPython/3.13.2 Darwin/24.4.0

Security for bactax 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No 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