lutils
Small logging and config helpers.
Features
- Logging helper with consistent levels, optional color output, and optional file output.
- Config helper with dot-delimited keys and auto-create on missing values.
- Supports TOML/INI/JSON/YAML formats depending on installed parsers.
- Lightweight, minimal dependencies.
Examples
Logging:
import lutils
lutils.set_log_level("debug")
lutils.log("info", "Hello from lutils")
Config (auto-creates missing values when a default is given):
import lutils
lutils.config.set("app.name", "beeper")
print(lutils.config.get("app.name"))
print(lutils.config.get("missing.value", "fallback"))
Config file selection (defaults to ./config.*):
import lutils
lutils.config.set_name("settings")
lutils.config.set_path("./")
Optional dependencies
lutils uses optional parsers if you have them installed:
toml(only needed on Python < 3.11; Python 3.11+ usestomllib)PyYAMLfor YAML supportcoloredlogsfor colored log output
Install with extras (recommended):
pip install "lutils[toml,yaml,colors]"
Individual extras:
pip install "lutils[toml]" # TOML on Python < 3.11
pip install "lutils[yaml]" # YAML support
pip install "lutils[colors]" # coloredlogs output
Metadata
Release files for liforra-utils 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| liforra_utils-0.2.0.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| liforra_utils-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.1 kB
Release files / liforra_utils-0.2.0.tar.gz
| Download URL | liforra_utils-0.2.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
985a13ed07a55f800d810c4656917da22ec0c8ad19cafe7f9dc80fa88041d01f
|
|
BLAKE2b-256 checksum How to use checksums |
fb209ad8c0fb4ee6a03ea2124958ae21806ebeeb4cb5456c9f4e42e1a9f05121
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / liforra_utils-0.2.0-py3-none-any.whl
| Download URL | liforra_utils-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2cb81bc51e27c39aed879d391d15d631fe90b41f15caf9af469aa9845f1988ed
|
|
BLAKE2b-256 checksum How to use checksums |
2fa9def27edc2dce4bfc9a713e35edfa7a39503526157b239e0e4370cbab5079
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|