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 Common errors
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'.
Warnings
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.
Imports
- get_path_tuple_from_relative_file wrong
from fpyutils.path import get_path_tuple_from_relative_filecorrectfrom fpyutils import get_path_tuple_from_relative_file - get_file_list wrong
from fpyutils.file import get_file_listcorrectfrom fpyutils import get_file_list
Quickstart
from fpyutils import get_file_list
files = get_file_list('.', extension_filter='.txt')
print(files)