semvec/pypi-packages huggingface dataset:
cleantrak-schemas 0.1.2
Data models for the Cleantrak system
License: MIT
Requires Python: >=3.7
Keywords: car wash, control system, validation, schemas

# Cleantrak Schemas

Data model library for the Cleantrak system.

## Installation

```bash
pip install cleantrak_schemas
```
Features
Comprehensive data validation for car wash components
Schema generation for documentation and integration
Command-line interface for configuration validation
Models
Controller: Configuration for the main control system
Relay: Control relays for various equipment
DI: Digital inputs configuration
WashGroup: Wash groups and related components

## CLI interface
```bash
# Configuration check
cleantrak-schemas validate controller controller_config.json

# Display model list
cleantrak-schemas list-models

# Version check
cleantrak-schemas version

cleantrak-generate-schemas
```

Usage example
```bash
from cleantrak_schemas.models.relay import Relay, RelayConfig
from cleantrak_schemas.models.controller import ControllerConfig

# Create and validate a relay
relay = Relay(
    slot_id=1,
    channel_id=5,
    name="Left Brush",
    equipment_type="BRUSH"
)

# Load and validate configuration from a file
import json
with open('config.json', 'r') as f:
    data = json.load(f)
    
config = RelayConfig(**data)  # Validates the data
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.