semvec/pypi-packages huggingface dataset:
logfn 0.0.1
Structured logging for Python with pluggable pipelines and transports
License: MIT
Requires Python: >=3.9
Keywords: logging, structured-logging, json, observability

# logfn-python

Structured logging for Python with pluggable pipelines and transports.

## Features

- **Structured Logging**: JSON-based log events with consistent schema
- **Log Levels**: trace, debug, info, warn, error, fatal
- **Child Loggers**: Create scoped loggers with inherited context
- **Pipeline Stages**: Pluggable event processing (redaction, enrichment, sampling)
- **Multiple Sinks**: Console (pretty/JSON), HTTP (batched with retry)
- **Type Hints**: Fully typed with Python type hints

## Installation

```bash
pip install logfn
```

## Quick Start

```python
from logfn import dev_logger

logger = dev_logger("my-app")

logger.info("Application started", version="1.0.0")
logger.warn("Deprecated API used", api="/old-endpoint")
logger.error("Request failed", status_code=500, path="/api/users")
```

## Basic Usage

### Creating a Logger

```python
from logfn import create_logger, SinkConsole

logger = create_logger(
    name="my-service",
    level="info",
    sinks=[SinkConsole(json=True)],
)

logger.info("User logged in", user_id="123", email="user@example.com")
```
python-smarttub 0.0.47
API to query and control hot tubs using the SmartTub system
License: MIT
Requires Python: >=3.13

# python-smarttub

This package provides an API for querying and controlling hot tubs using the SmartTub system.

## Installation
```
pip3 install python-smarttub
```

## CLI
```
python3 -m smarttub --help
python3 -m smarttub -u SMARTTUB_EMAIL -p SMARTTUB_PASSWORD info --status
```

## API
```
from smarttub import SmartTub

async with aiohttp.ClientSession() as session:
  st = SmartTub(session)
  await st.login(username, password)
  account = await st.get_account()
  spas = await account.get_spas()
  for spa in spas:
    spa.get_status()
    spa.get_pumps()
    spa.get_lights()
    ...
    # See pydoc3 smarttub.api for complete API
```

See also `smarttub/__main__.py` for example usage

## Troubleshooting

If this module is not working with your device, please run the following
command and include the output with your bug report:

```bash
python3 -m smarttub -u YOUR_SMARTTUB_EMAIL -p YOUR_SMARTTUB_PASSWORD -vv info -a
```

## Contributing
```bash
uv sync --extra dev
uv run pre-commit install
```