Skip to main content

protfasta

PyPI version Python versions Documentation Status License: MIT Last commit Open issues Stars Downloads

Release 0.1.26 (October 2026)

Overview

protfasta - a robust parser for protein-based FASTA files.

Documentation

For all documentation see https://protfasta.readthedocs.io/en/latest/.

For code see https://github.com/holehouse-lab/protfasta.

If you want to change the package rather than use it, ARCHITECTURE.md walks through how a read_fasta and a write_fasta call move through the modules.

Installation

protfasta has been tested on Linux and macOS. It should also work on Windows but we haven't tested it there yet.

protfasta can be downloaded and installed directly from PyPI using pip:

pip install protfasta

If this has worked, the pfasta command-line tool should be available from the command-line

pfasta --help

And you're done. This also means you can now import and use protfasta in your Python workflow.

Simple example

import protfasta

# sequences is now a dictionary where keys are FASTA headers and values are sequences.
sequences = protfasta.read_fasta('inputfile.fasta')

For files that are too large to fit in memory, read_fasta_stream() applies the same sanitization but yields one record at a time:

import protfasta

for header, sequence in protfasta.read_fasta_stream('huge.fasta'):
    ...

Running tests

To run tests on your environment, clone the source code and from protfasta root

cd protfasta/tests
pytest --verbose

To run the test suite over all supported Python versions we use tox; from the protfasta source root directory simply run

tox	

And the tests should run across Python envs 3.9 to 3.15 (experimental).

Errors and help

For bug reports or errors please raise an issue on this github repository (see the Issues tab at the top).

Changelog

The full release history lives in CHANGELOG.md.

Copyright (c) 2020-2026, Alex Holehouse - Holehouse lab. protfasta is released under the MIT license. The codebase is well structured and relatively simple, lending it to feature addition. We welcome pull-requests assuming contributed code maintains an appropriate level of clarity and robustness.

Acknowledgements

Many of the software-engineering tools and approaches used in the development of protfasta come from resources developed by the Molecular Sciences Software Institute.

Metadata

Release files for protfasta 0.1.26

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

Source distribution (sdist)

Source distribution for protfasta 0.1.26
File Size Uploaded
protfasta-0.1.26.tar.gz 85.5 kB Details

Built distribution (wheel)

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

Total release size: 161.7 kB

Release files / protfasta-0.1.26.tar.gz

Download URL protfasta-0.1.26.tar.gz
Size 85.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a35c0dc015dcd980eb523c5f2ea7325bf1f92cbb122fc1c4f7a58ff8b132522a
BLAKE2b-256 checksum
How to use checksums
08f7ce6412ad0517b5b8670624810c615be5b7ed08e183a868ca8ab95e7b5f99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / protfasta-0.1.26-py3-none-any.whl

Download URL protfasta-0.1.26-py3-none-any.whl
Size 76.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a5c9d15f9e76134134fb461f1b791aaae00c00e192c852bb6bf928dba8432ac
BLAKE2b-256 checksum
How to use checksums
1996bd8bec6bf65372429d7413c00dd25fea2d8de5134a8ea0b7a3f77d669566
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.26 This release

2 release files

0.1.24

2 release files

0.1.23

2 release files

0.1.18

1 release file

0.1.13

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.5

1 release file

0.1.4.1

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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