Metadata-Version: 2.4
Name: redup-servicekit
Version: 1.0.2
Summary: Toolkit for Python microservices: YAML configuration, JSON logging, Prometheus metrics and gRPC utilities
Author: REDUP
License: MIT
Project-URL: Homepage, https://github.com/redup-ai/redup.python.servicekit/blob/main/README.md
Project-URL: Repository, https://github.com/redup-ai/redup.python.servicekit
Keywords: servicekit,python,grpc,prometheus
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyYAML<7.0,>=6.0.3
Requires-Dist: python-json-logger<5.0,>=4.0.0
Requires-Dist: prometheus-client<1.0,>=0.24.1
Requires-Dist: grpcio<2.0,>=1.78.0
Requires-Dist: grpcio-tools<2.0,>=1.78.0
Requires-Dist: grpcio-reflection<2.0,>=1.78.0
Requires-Dist: grpcio-health-checking<2.0,>=1.78.0
Requires-Dist: protobuf<7.0,>=6.32.1
Dynamic: license-file

# redup-servicekit

![Python Test status](https://github.com/redup-ai/redup.python.servicekit/actions/workflows/python-test.yml/badge.svg?branch=master)
[![PyPI version](https://img.shields.io/pypi/v/redup-servicekit)](https://pypi.org/project/redup-servicekit/)


Python toolkit for building production-ready microservices with:

- centralized YAML configuration and environment overrides,
- structured JSON logging,
- Prometheus metrics and monitoring helpers,
- gRPC health checks and utilities (async client, server-side decorators).

## Features

- **Configuration**: `ConfigSingleton` for loading and merging YAML configs, with environment variable overrides.
- **Logging**: JSON console logging via `python-json-logger`.
- **Monitoring & Metrics**: Prometheus integration with counters, gauges and histograms for tasks and service stats.
- **gRPC Utilities**: Async gRPC client, health checks and decorators for collecting per-method metrics.

## Installation

```bash
pip install redup-servicekit
```

## License

Licensed under the MIT License. See the `LICENSE` file for details.
