grrr
Fast, colorful logging and a small collection of practical tools for modern Python.
grrr combines a Fond-backed native logger with lightweight shell-command helpers
and JSON settings. It requires CPython 3.15 or newer.
Installation
uv pip install grrr
Logging
from grrr import Logger, LogLevel
with Logger("app", level=LogLevel.DEBUG, console="split") as log:
log.debug("starting")
log.info("ready")
log.warning("check the configuration")
Console output supports color and can be routed to stdout, stderr, or split by severity. File, buffer, and queued loggers use the same API:
from grrr import Logger
with Logger.file_logger("logs/app.log") as log:
log.info("written to a rotating file")
with Logger.buffer_logger() as log:
log.success("captured in memory")
record = log.records()[0]
print(record.level, record.message, record.timestamp)
with Logger.queue_logger(console="split") as log:
log.info("handled by the native listener")
log.flush()
Child loggers share their parent's sinks while adding a qualified name:
with Logger("service") as log:
database = log.child("database")
database.info("connected")
Exception tracking is opt-in and stores text snapshots rather than live frames:
with Logger("worker", track_exceptions=True) as log:
try:
raise RuntimeError("something growled")
except RuntimeError:
log.exception("job failed")
print(log.exceptions)
Shell commands
Command factories preserve argument boundaries and execute without an implicit shell by default:
import sys
from grrr.cli import BaseShellCommand
command = BaseShellCommand.adhoc(sys.executable, "-c", "print('hello')")
print(command.get())
Synchronous and asynchronous shell sessions are available when explicit shell interpretation or streaming output is needed.
JSON settings
from grrr.config import SimpleSettingsManager
with SimpleSettingsManager("my-app") as settings:
settings.set("theme", "dark")
print(settings.get("theme"))
Settings are stored in one JSON file, with access serialized by a file lock and resources released through the context-managed API.
Version
python -c "import grrr; print(grrr.__version__)"
Metadata
Release files for grrr 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| grrr-0.7.1-cp315-cp315-win_amd64.whl | CPython 3.15 | CPython 3.15 | Windows x86-64 | Details for grrr-0.7.1-cp315-cp315-win_amd64.whl |
| grrr-0.7.1-cp315-cp315-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl | CPython 3.15 | CPython 3.15 | Linux glibc 2.26+ x86-64, Linux glibc 2.28+ x86-64 | Details for grrr-0.7.1-cp315-cp315-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl |
| grrr-0.7.1-cp315-cp315-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl | CPython 3.15 | CPython 3.15 | Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 | Details for grrr-0.7.1-cp315-cp315-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl |
| grrr-0.7.1-cp315-cp315-macosx_15_0_arm64.whl | CPython 3.15 | CPython 3.15 | macOS 15.0+ ARM64 | Details for grrr-0.7.1-cp315-cp315-macosx_15_0_arm64.whl |
Total release size: 1.0 MB
Release files / grrr-0.7.1-cp315-cp315-win_amd64.whl
| Download URL | grrr-0.7.1-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 377.5 kB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
05e276e704598d6c8faa29c560b4d079b6c49dab964d8c5bab4199d0656f7990
|
|
BLAKE2b-256 checksum How to use checksums |
d7c7e9ec2d462b41c34c50ba5db2700cb6531d4398f6e222e46f7721ad68771f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / grrr-0.7.1-cp315-cp315-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl
| Download URL | grrr-0.7.1-cp315-cp315-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 291.0 kB |
| Tags | CPython 3.15 Linux glibc 2.26+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6347cf60603d184db83fe9cfd53fbabaa5875b4dcdd4bba974079253f3ff96ac
|
|
BLAKE2b-256 checksum How to use checksums |
f61fea1ef06a98c9a8511801b946c43cbce2243335427eb0dc4cacfaac17dfd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / grrr-0.7.1-cp315-cp315-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
| Download URL | grrr-0.7.1-cp315-cp315-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 266.0 kB |
| Tags | CPython 3.15 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
5fb684579b285f595bb1f702b153635e0f2e8b6c0220ca3ec77922d6c5d26f54
|
|
BLAKE2b-256 checksum How to use checksums |
3e416fa532e406458054fc4aa8a279ff3f7af26c0e97931e6ec0d122d810a230
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / grrr-0.7.1-cp315-cp315-macosx_15_0_arm64.whl
| Download URL | grrr-0.7.1-cp315-cp315-macosx_15_0_arm64.whl |
|---|---|
| Size | 96.6 kB |
| Tags | CPython 3.15 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5ced963fa20a6eccd7bea0a19fcfce9a5c9b085c7a751b9a11905a48a5b73613
|
|
BLAKE2b-256 checksum How to use checksums |
851c42bbb5f0f6b193025ff876a252f8cbb846a74c5b7f2b3d147d5c78f53191
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for grrr 0.7.1
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.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for grrr-0.7.1-cp315-cp315-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA 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.