Skip to main content
PyPI package Travis CI build status (Linux) AppVeyor CI build status (Windows) Code Coverage Documentation Status

Python package for working with biological sequences from FASTA files.

Features

  • Easy to use: intuitive API for parsing, searching and writing FASTA files

  • Lightweight: no dependencies outside Python’s standard library

  • Cross-platform: Linux, Mac and Windows are all supported

  • Works with with Python 2.7, 3.2, 3.3, and 3.4

Quick Guide

To install the TinyFasta package:

sudo pip install tinyfasta

To parse a FASTA file:

>>> from tinyfasta import FastaParser
>>> for fasta_record in FastaParser("tests/data/dummy.fasta"):
...     if fasta_record.description.contains('seq1'):
...         print(fasta_record)
...
>seq1|contains 2x78 A's
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

To create a FASTA record:

>>> from tinyfasta import FastaRecord
>>> sequence = "C" * 100
>>> fasta_record = FastaRecord.create("My Sequence", sequence)
>>> print(fasta_record)
>My Sequence
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCC

Metadata

Release files for tinyfasta 0.1.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 tinyfasta 0.1.0
File Size Uploaded Provenance Actions
tinyfasta-0.1.0.tar.gz 4.7 kB Without provenance Details for tinyfasta-0.1.0.tar.gz

Release files / tinyfasta-0.1.0.tar.gz

Download URL tinyfasta-0.1.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
91a21d094277a2fcbbe3f8083dcc3dbc8e841343cb8e30016ec76ae49ff2f22e
BLAKE2b-256 checksum
How to use checksums
732d46be92e98568ee479ec344026ae6581ad8e8617e73a13db1b5b093a84def
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tinyfasta 0.1.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

0.0.1

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