semvec/pypi-packages huggingface dataset:
dcflags 0.2.1
Dataclass fields as cmd args and env vars
License: MIT
Requires Python: >=3.5
Keywords: parse arguments cmd command dataclass env environmental dcflags

# dcflags

Python package for initializing a dataclass with arguments from the command line or values from environmental variables.
Meant to work as an entrypoint for applications, nothing else.

## Install

dcflags is available through pip
```shell
pip install dcflags
```

## Usage
```python
# main.py

import dataclasses
import dcflags


@dataclasses.dataclass
class Config:
    output: str
    workers: int = 1
    verbose: bool = False


if __name__ == "__main__":
    cfg = dcflags.parse(Config)
    print(cfg)
```
```
# help message
$ python main.py --help
usage: main.py [-h] [--output OUTPUT] [--workers WORKERS] [--verbose [VERBOSE]]

options:
  -h, --help           show this help message and exit
  --output OUTPUT      type: str, env: $OUTPUT
  --workers WORKERS    type: int, env: $WORKERS, default: 1
  --verbose [VERBOSE]  type: bool, env: $VERBOSE, default: False

# missing required argument
$ python main.py
usage: main.py [-h] [--output OUTPUT] [--workers WORKERS] [--verbose [VERBOSE]]
main.py: error: the following arguments are required: --output/$OUTPUT

# command line arguments
$ python main.py --output=file.txt
Config(output='file.txt', workers=1, verbose=False)

# env vars
$ OUTPUT=test.txt python main.py
Config(output='test.txt', workers=1, verbose=False)

# a bit of everything
$ OUTPUT=new.txt python main.py --verbose --workers=3
Config(output='new.txt', workers=3, verbose=True)
```
telemetry-toolkit 0.1.0
A toolkit for real-time telemetry visualization and analysis
License: MIT
Requires Python: >=3.11
Keywords: telemetry, visualization, realtime, dashboard

# Telemetry Toolkit

A Python toolkit for real-time telemetry visualization. Dashboard shows simulated vehicle system with live data monitoring and control capabilities.

## Features

- Real-time telemetry data sim
- Dashboard for monitoring and control
- 3D flight path visualization
- Live performance metrics
- Position tracking with map integration

## Requirements

- Python 3.11+
- Dependencies listed in `pyproject.toml`/`setup.py`

## Installation

1. Clone the repo or you can install the package directly from PyPI:
```bash
pip install telemetry_toolkit
```

2. Create and activate a virtual environment:
```bash
python -m venv venv
source venv/bin/activate
```

3. Install package and deps:
```bash
pip install -e .
```

For dev, install additional deps:
```bash
pip install -e ".[dev]"
```

## Usage

### Running the Sim

To start the telemetry dash:

```bash
python run_sim.py
```

This will:
- Initialize the telemetry sim
- Start the control system
- Launch a web browser with the dashboard