https://github.com/liblaf/grapes
๐ Supercharge your Python with rich logging, precise timing, and seamless serialization.
https://github.com/liblaf/grapes
cli documentation library logging mkdocs progress-bar python rich serialization timer
Last synced: 4 months ago
JSON representation
๐ Supercharge your Python with rich logging, precise timing, and seamless serialization.
- Host: GitHub
- URL: https://github.com/liblaf/grapes
- Owner: liblaf
- License: mit
- Created: 2025-01-13T07:56:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-25T01:08:59.000Z (5 months ago)
- Last Synced: 2026-01-25T14:44:29.262Z (5 months ago)
- Topics: cli, documentation, library, logging, mkdocs, progress-bar, python, rich, serialization, timer
- Language: Python
- Homepage: https://liblaf-grapes.readthedocs.io
- Size: 3.59 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

**[Explore the docs ยป](https://liblaf.github.io/grapes/)**
[](https://codecov.io/gh/liblaf/grapes)
[](https://github.com/liblaf/grapes/actions/workflows/mega-linter.yaml)
[](https://github.com/liblaf/grapes/actions/workflows/test.yaml)
[](https://results.pre-commit.ci/latest/github/liblaf/grapes/main)
[](https://codspeed.io/liblaf/grapes)
[](https://github.com/astral-sh/ruff)
[](https://pypi.org/project/liblaf-grapes)
[](https://pypi.org/project/liblaf-grapes)
[](https://pypi.org/project/liblaf-grapes)
[Changelog](https://github.com/liblaf/grapes/blob/main/CHANGELOG.md) ยท [Report Bug](https://github.com/liblaf/grapes/issues) ยท [Request Feature](https://github.com/liblaf/grapes/issues)

## โจ Features
- ๐จ **Rich Logging:** Beautiful, structured logging with loguru integration, multiple output formats (rich console, JSONL, file), and customizable profiles for different environments;
- โฑ๏ธ **Precise Timing:** Easy-to-use timing decorators and context managers with detailed statistics (mean, median, stdev) and automatic logging integration;
- ๐ฆ **Multi-Format Serialization:** Unified interface for JSON, TOML, and YAML serialization with Pydantic model support and customizable encoding/decoding hooks;
- ๐ฅ **Human-Readable Formats:** Intelligent conversion of numbers, durations, and throughput into human-readable strings with appropriate units and precision;
- ๐ **Progress Tracking:** Integrated progress bars with rich visualization, timing integration, and parallel processing support through joblib;
- โ๏ธ **Smart Configuration:** Environment-aware configuration system using Pydantic with automatic environment variable parsing and type-safe settings.
## ๐ฆ Installation
To install `liblaf-grapes`, run the following command:
```bash
uv add liblaf-grapes
```
## โจ๏ธ Local Development
You can use Github Codespaces for online development:
[](https://codespaces.new/liblaf/grapes)
Or clone it for local development:
```bash
gh repo clone liblaf/grapes
cd grapes
mise run install
```
## ๐ค Contributing
Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub [Issues](https://github.com/liblaf/grapes/issues) to get stuck in to show us what you're made of.
[](https://github.com/liblaf/grapes/pulls)
[](https://github.com/liblaf/grapes/graphs/contributors)
## ๐ More Projects
- **[๐ Grapes](https://github.com/liblaf/grapes)** - Supercharge your Python with rich logging, precise timing, and seamless serialization.
- **[๐ Melon](https://github.com/liblaf/melon)** - A comprehensive Python library for 3D mesh processing with advanced I/O capabilities, proximity analysis, and integration with external mesh processing tools.
- **[๐ Tangerine](https://github.com/liblaf/tangerine)** - Squeeze dynamic content into your files with Tangerine's template magic.
- **[๐โ๐ฉ Lime](https://github.com/liblaf/lime)** - AI-powered Git commit assistant and repository documentation generator
- **[๐ Apple](https://github.com/liblaf/apple)** - A JAX and Warp library for differentiable physics simulation, featuring elastic energy models and finite element methods.
- **[๐ Cherries](https://github.com/liblaf/cherries)** - Sweet experiment tracking with Comet, DVC, and Git integration.
---
#### ๐ License
Copyright ยฉ 2025 [liblaf](https://github.com/liblaf).
This project is [MIT](https://github.com/liblaf/grapes/blob/main/LICENSE) licensed.