Fyuneru
raw JSON → 0.5.10 verified Sat May 09 auth: no python
A Python utility library providing logging, file path management, and configuration helpers. Current version is 0.5.10, released with a regular cadence. Requires Python >=3.10.
pip install fyuneru Common errors
error AttributeError: module 'fyuneru' has no attribute 'Logger' ↓
cause Old import style or outdated version (pre-0.5.0).
fix
Upgrade fyuneru to >=0.5.0:
pip install --upgrade fyuneru. Then use from fyuneru import Logger. error TypeError: Logger.__init__() takes 1 positional argument but 2 were given ↓
cause Passing `name` as a positional argument in 0.5.x+.
fix
Use keyword argument:
Logger(name='myapp'). Warnings
breaking Between versions 0.4.x and 0.5.x, the logging API changed: the `name` parameter moved from positional to keyword-only. ↓
fix Always use `Logger(name='...')` instead of positional argument.
gotcha PathManager.resolve() does not automatically create directories; use .ensure() for that. ↓
fix Use `pm.ensure('data/file.txt')` if you need directory creation.
deprecated The `Config` class is deprecated and will be removed in 0.6.0. ↓
fix Migrate to `from fyuneru import config` module-level functions.
Imports
- Logger wrong
from fyuneru.logger import Loggercorrectfrom fyuneru import Logger - PathManager wrong
from fyuneru.path import PathManagercorrectfrom fyuneru import PathManager
Quickstart
from fyuneru import Logger, PathManager
logger = Logger(name='myapp')
logger.info('Application started')
pm = PathManager(base_path='/tmp')
print(pm.resolve('data/file.txt'))