semvec/pypi-packages huggingface dataset:
camera-ui-python-types 3.0.0
camera.ui python types
Requires Python: >=3.11
Keywords: camera.ui, python, types

# camera-ui-python-types

Python type definitions for camera.ui ecosystem including camera devices, plugins, detection interfaces, and configuration schemas.

## Installation

```bash
pip install camera-ui-python-types
```

## Purpose

This package provides comprehensive Python type definitions for:

- **Camera Device Management** - Protocol definitions for camera devices and sources
- **Plugin Development** - Type-safe plugin interfaces and abstract base classes
- **Detection Systems** - Motion, object, and audio detection type definitions
- **Configuration Schemas** - JSON schema types for dynamic UI generation  
- **State Management** - Camera state and event type definitions
- **Streaming & Media** - Audio/video codec and streaming type definitions
- **RxPY Integration** - Hybrid observables combining sync/async patterns

## Usage Context

### For Plugin Developers
Provides type safety when developing Python-based camera.ui plugins, ensuring proper implementation of detection algorithms and device integration.

### For Type Checking
Enables static type checking with mypy, pylint, and other Python type checkers for camera.ui related code.

### For IDE Support
Provides full IntelliSense and auto-completion for camera.ui APIs in Python development environments.

## Integration Points

These types are used throughout the Python camera.ui ecosystem:

- **camera-ui-python-common** - Shared utility implementations
- **Python Plugins** - Type-safe plugin development
- **Detection Services** - Motion/object/audio detection implementations
- **Configuration Systems** - Dynamic UI schema generation

## Requirements

- Python 3.10+
- typing-extensions for advanced type features
- RxPY for reactive programming support
- PIL (Pillow) for image type definitions
- Compatible with camera.ui ecosystem packages

## Contributing

Contributions are welcome! Please read our contributing guidelines and submit pull requests to our repository.

## License

MIT

---

*Part of the camera.ui ecosystem - A comprehensive camera management solution.*
rmlst-cli 1.0
rmlst-cli is a simple tool to use the rMLST API through the command line.
Requires Python: <3.15,>=3.9

# rmlst-cli

`rmlst-cli` is a simple tool to use the rMLST API through the command line.

## Install

```bash
pip install rmlst-cli
# or
uv tool install rmlst-cli
# or
conda install -c bioconda rmlst-cli
# or
pixi add -c bioconda rmlst-cli
```

## Quickstart

**Single FASTA file:**

```bash
rmlst -f sample.fasta
```

**Directory of FASTA files:**

```bash
rmlst -d ./fastas/ -O ./results/
```

## Output modes

- **Full JSON** (default):

  ```bash
  rmlst -f sample.fasta
  ```

- **Species only** (two columns: species and support):

  ```bash
  rmlst -f sample.fasta --species-only
  # With custom headers
  rmlst -f sample.fasta --species-only="Species Support"
  ```

## Examples

**Trim to 5000 contigs:**

```bash
rmlst -f large.fasta --trim-to-5000
```

**Graceful failure (continue on error):**

```bash
rmlst -d ./fastas/ --graceful
```

## Exit codes

| Code | Meaning |
|------|---------|
| 0    | Success |
| 1    | Unexpected error |
| 2    | Input/usage error (invalid FASTA, empty dir, etc.) |
| 3    | Too many contigs (>5000) without --trim-to-5000 |
| 4    | Network error after retries |
| 5    | HTTP error or invalid JSON |
| 7    | Filesystem error |
| 130  | Interrupted (Ctrl-C) |

## Python API usage

```python
from rmlst_cli import api

# Single file
try:
    result = api.identify("sample.fasta")
    print(result)
except Exception as e:
    print(f"Error: {e}")

# Directory
for basename, result in api.identify_dir("./fastas/", graceful=True):
    print(f"{basename}: {result}")

# Extract species
from rmlst_cli.formats import extract_species, extract_species_and_support
species = extract_species(result)  # Comma-separated string
species_names, support_values = extract_species_and_support(result)  # Separate strings
```