Small Python utilities for the fseasy scope.
uv add fs-pyutilsOr with pip:
pip install fs-pyutilsfs-pyutils provides lightweight reusable Python helpers that can be shared across projects.
Please note that we didn't install necessary dependencies for the utils as it should be installed in your main repo.
- Build structured logging helpers for syslog-based deployments.
- Add Gunicorn logging helpers for JSON/syslog output.
- Provide
systemdnotify helpers for FastAPI services and DB watchdog integration. - Import a Python module directly from a file path.
- Convert audio bytes to MP3 bytes with
ffmpeg.
from fs_pyutils.lang_basic import import_module_from_path
module = import_module_from_path("local_conf", "./conf.py")from fs_pyutils.audio import audio_to_mp3_bytes
mp3_bytes = audio_to_mp3_bytes(audio_bytes)Project page: https://pypi.org/project/fs-pyutils/