Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fs-pyutils

PyPI version Python PyPI status

Small Python utilities for the fseasy scope.

Installation

uv add fs-pyutils

Or with pip:

pip install fs-pyutils

What It Does

fs-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.

Features

  • Build structured logging helpers for syslog-based deployments.
  • Add Gunicorn logging helpers for JSON/syslog output.
  • Provide systemd notify 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.

Usage

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)

PyPI

Project page: https://pypi.org/project/fs-pyutils/

About

Python utils

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages