pyfastx is a python module for fast random access to sequences from plain and gzipped FASTA/Q file.
conda install bioconda::pyfastx