semvec/pypi-packages huggingface dataset:
road24-artifacthub 0.1.3
Shared logging and metrics library for Road24 FastAPI microservices
Requires Python: >=3.12

# road24-artifacthub

Shared logging and metrics SDK for Road24 microservices. Provides structured JSON logging, Prometheus metrics, and framework-specific integrations following a Sentry SDK-like pattern.

## Installation

```bash
# Core library
pip install road24-artifacthub

# With all integrations
pip install road24-artifacthub[all]

# Development (includes test tools)
pip install road24-artifacthub[dev]
```

## Quick Start

```python
import road24_sdk
from fastapi import FastAPI
from httpx import AsyncClient, Timeout
from road24_sdk.integrations.fastapi import FastApiLoggingIntegration
from road24_sdk.integrations.httpx import HttpxLoggingIntegration
from road24_sdk.integrations.redis import RedisLoggingIntegration
from road24_sdk.integrations.sqlalchemy import SqlalchemyLoggingIntegration

def setup_road24_sdk():
    road24_sdk.init(
        service_name="my-service",
        log_level="INFO",
        integrations=[
            HttpxLoggingIntegration(),
            SqlalchemyLoggingIntegration(),
            RedisLoggingIntegration(),
        ],
    )

# FastAPI requires .setup(app) since it needs the app instance
app = FastAPI()
setup_road24_sdk()
FastApiLoggingIntegration().setup(app)
```

## Available Integrations

| Integration | Extra | Description |
|---|---|---|
| `FastApiLoggingIntegration` | `fastapi` | Inbound HTTP request/response logging and metrics |
| `HttpxLoggingIntegration` | `httpx` | Outbound HTTP request/response logging and metrics |
| `SqlalchemyLoggingIntegration` | `sqlalchemy` | Database query logging and metrics |
| `RedisLoggingIntegration` | `redis` | Redis command logging and metrics |

## Manual Testing

Standalone scripts to inspect structured JSON logs and metrics (no server needed):

```bash
make test-logs-http-input    # Inbound HTTP request log
make test-logs-http-output   # Outbound HTTPX request log
make test-metrics-http       # Prometheus metrics after HTTP calls
make test-logs-redis         # Redis command logs (SET, GET, HSET, etc.)
make test-logs-db            # DB query logs (SELECT, INSERT, UPDATE, DELETE)
```

## Development

```bash
make install    # Install all dependencies (requires uv)
make test       # Run tests with coverage
make lint       # Lint with ruff
make format     # Format with ruff
make check      # Lint + test
```
pyright-to-gitlab 1.3.0
Convert Pyright JSON output to GitLab CI/CD format
Requires Python: >=3.8
Keywords: ci/cd, gitlab, pyright

# pyright to gitlab

[![PyPI version](https://img.shields.io/pypi/v/pyright-to-gitlab.svg)](https://pypi.org/project/pyright-to-gitlab)
[![Python versions](https://img.shields.io/pypi/pyversions/pyright-to-gitlab.svg)](https://pypi.org/project/pyright-to-gitlab)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
[![Typing: typed](https://img.shields.io/badge/typing-typed-blue.svg)](https://github.com/python/mypy)

Simple Python tool to convert Pyright JSON output to GitLab Code Quality report format.

**Zero runtime dependencies** - Pure Python implementation using only the standard library.


## Usage
Run the script with the path to the pyright output file:
```shell
$ pip install pyright-to-gitlab
$  pyright . --outputjson | pyright-to-gitlab > code-quality.json 
```

Alternatively, the module can be called:
```shell
$ pip install pyright-to-gitlab
$  pyright . --outputjson | python -m pyright_to_gitlab > code-quality.json 
```
### Custom path prefix
The `--prefix` option adds a custom prefix path to the file paths in the output. This is
useful for mono-repos, where the paths in the pyright output is not the repository root.


```shell
$  pyright . --outputjson | pyright-to-gitlab --prefix my-app > code-quality.json
```

## Testing
To run the tests, execute
```shell
$ uv run pytest tests/
```