fpyutils

raw JSON →
4.0.1 verified Fri May 01 auth: no python

A collection of useful non-standard Python functions that are simple to use, highly readable but not efficient. Current version is 4.0.1, which drops Python 2 support and requires Python >=3.7 <4. The library is in active development with a recent release in 2024.

pip install fpyutils
error ModuleNotFoundError: No module named 'fpyutils.file'
cause Trying to import from submodules after version 4.0.0 reorganization.
fix
Change import to 'from fpyutils import get_file_list' or the specific function you need.
error AttributeError: module 'fpyutils' has no attribute 'get_file_list'
cause Using an older version where functions were in submodules, or a typo in function name.
fix
Check your fpyutils version (pip show fpyutils) and upgrade to 4.x. Use 'from fpyutils import get_file_list'.
breaking Functions were moved to top-level package in version 4.0.0. Submodule imports like 'from fpyutils.file import ...' no longer work.
fix Use 'from fpyutils import function_name' instead.
deprecated Support for Python 2 was dropped in version 4.0.0. The library now requires Python >=3.7.
fix Upgrade to Python 3.7 or later.
gotcha The library explicitly states it is 'not efficient'. Do not rely on fpyutils for performance-critical code.
fix Use standard library or optimized alternatives for heavy operations.

Basic usage: list all .txt files in the current directory.

from fpyutils import get_file_list

files = get_file_list('.', extension_filter='.txt')
print(files)