Skip to content

Grapesยค

Grapes is a comprehensive Python utility library offering robust tools for environment configuration, human-readable formatting, logging, progress tracking, serialization, and timing. Built with extensibility and performance in mind, it integrates seamlessly with popular libraries like Pydantic, Loguru, and Rich, providing developers with a powerful toolkit for building efficient and maintainable applications.
Explore the docs ยป

PyPI - Downloads PyPI - Python Version PyPI - Version Codecov GitHub Actions Workflow Status
GitHub Contributors GitHub Forks GitHub Repo Stars GitHub Issues GitHub License

Changelog ยท Report Bug ยท Request Feature

โœจ Featuresยค

  • ๐Ÿ‡ Comprehensive Utility Library: A rich collection of utility functions and classes to enhance your Python projects, covering a wide range of common tasks.
  • โšก High-Performance Timing: Advanced timing utilities for precise performance measurement, including support for multiple time counters and human-readable duration formatting.
  • ๐Ÿ“Š Progress Tracking: Elegant progress bar and tracking functionality with customizable columns, making it easy to monitor the progress of long-running tasks.
  • ๐Ÿ—‚๏ธ Serialization and Deserialization: Flexible and efficient data serialization and deserialization for JSON, TOML, YAML, and Pydantic models, ensuring seamless data handling.
  • ๐Ÿ“ Human-Readable Formats: Functions to convert numerical values into human-readable formats, such as durations, counts, and throughput, enhancing the readability of your application's output.
  • ๐Ÿ› ๏ธ Environment Configuration: Simplified environment configuration management, allowing you to easily read and manage environment variables with a prefix.
  • ๐ŸŽจ Rich Logging Integration: Enhanced logging with Rich, Loguru, and IceCream, providing colorful, detailed, and user-friendly log outputs.
  • ๐Ÿงช Optional Imports: Graceful handling of optional dependencies, ensuring that your application can run smoothly even if some dependencies are missing.
  • ๐Ÿ“„ Text Processing: Utilities for text processing, including comment stripping, to help clean up and process text data efficiently.
  • ๐Ÿค Extensive Documentation: Detailed and well-structured documentation, making it easy to understand and use the library's features.

๐Ÿ“ฆ Installationยค

To install liblaf-grapes, run the following command:

$ uv add liblaf-grapes

โŒจ๏ธ Local Developmentยค

You can use Github Codespaces for online development:

Or clone it for local development:

$ gh repo clone liblaf/grapes
$ cd grapes
$ just test

๐Ÿค Contributingยค

Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub Issues to get stuck in to show us what you're made of.

More Projectsยค

  • ๐Ÿ‡ grapes - Powerful Python utilities for logging, timing, and more, making development smoother!

Creditsยค


๐Ÿ“ Licenseยค

Copyright ยฉ 2025 liblaf.
This project is MIT licensed.