Releases: Matrixxboy/protogrid
Releases · Matrixxboy/protogrid
1.0.0
Protogrid: Standardized Python API Responses
Core Purpose
- Consistency: Enforces a uniform JSON structure across multiple microservices.
- Efficiency: Automates repetitive tasks like pagination and metadata injection.
- Reliability: Built-in type safety to prevent malformed API outputs.
Key Capabilities
- Automated Pagination: Handles offset, limit, and total count logic out of the box.
- Unified Error Formatting: Transforms Python exceptions into clean, readable JSON error objects.
- Metadata Injection: Automatically attaches timestamps, request IDs, and versioning to responses.
- Type Safety: Utilizes Python type hints to ensure data integrity.
- Zero Bloat: Minimal footprint with no heavy external dependencies.
Why Use It?
- Development Speed: Focus on business logic instead of boilerplate response wrapping.
- Frontend Compatibility: Ensures your frontend team always receives a predictable data structure.
- Scalability: Simplifies maintenance as your service ecosystem grows.
Resources
- Official Documentation: Protogrid Docs
- Installation:
pip install protogrid
Full Changelog: https://github.com/Matrixxboy/protogrid/commits/protogrid