Skip to main content

PyBWT: A Burrows-Wheeler Transform Tool

PyBWT is a Python implementation of the Burrows-Wheeler Transform (BWT) for efficient text compression and pattern searching. It supports:

  • Constructing the BWT of a given text.
  • Reversing the BWT to recover an original text.
  • Efficient occurrence counting using the FM-index (Backward Search).

📌 Features

✅ Compute the Burrows-Wheeler Transform (BWT) of a string.
✅ Invert the BWT to recover the original text.
✅ Search for substrings efficiently without reconstructing the original text.
✅ Uses suffix arrays and LF-mapping for fast operations.


🔧 Installation

Install the tool in a Python environment using the pip package-management system:

pip install pybwt

Import the tool into your file by

import pybwt

and start using!


⌨️ User Guide/Documentation

The tool is relatively simple at the moment and functions largely through the BWT_Container class. For a simple example, please visit the project's git repo. Additional documentation will be created shortly.

Release files for pybwt 0.1.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 pybwt 0.1.2
File Size Uploaded
pybwt-0.1.2.tar.gz 3.4 kB Details

Built distribution (wheel)

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

Total release size: 7.3 kB

Release files / pybwt-0.1.2.tar.gz

Download URL pybwt-0.1.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d63c74747332736d9cd662e48fe1b8ef19e1c19f0f6f691b684273b35c7648a8
BLAKE2b-256 checksum
How to use checksums
2e839b1d5cc78acb34b8d746ef62ffa761c825d3aa00f5a2eec67ce1c7025d8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / pybwt-0.1.2-py3-none-any.whl

Download URL pybwt-0.1.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
555f230a764299f4aa26a2a6941562ebd983e4cf9f445c7f7abce0eb1ccb19fd
BLAKE2b-256 checksum
How to use checksums
971c520e6577d01c0dee412edb457f427e1c7956924f151a2088bab7ec9edccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

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