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 | Provenance | Actions |
|---|---|---|---|---|
| liforra_utils-0.2.0.tar.gz | 8.2 kB | Without provenance | Details for liforra_utils-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| liforra_utils-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for liforra_utils-0.2.0-py3-none-any.whl |
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}
|
Security for liforra-utils 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.