semvec/pypi-packages huggingface dataset:
subconv 1.1.2
Async SRT subtitle translator using OpenAI
Requires Python: >=3.13

# SRT Translator

A tool that translates SRT subtitle files to any language using OpenAI's API. It processes subtitles asynchronously in batches for efficient translation while preserving timing and formatting.

## CLI

```bash
subconv input.srt output.srt
```

### Examples

```bash
subconv input.srt output.srt -t "Spanish"
subconv input.srt output.srt -s "English" -t "Japanese"
subconv input.srt output.srt --target-language "French" --source-language "German"
```

### Options

| Option                     | Description                    | Default              |
| -------------------------- | ------------------------------ | -------------------- |
| `-t, --target-language`    | Target language for translation | Brazilian Portuguese |
| `-s, --source-language`    | Source language (optional)     | Auto-detected        |
| `-m, --model`              | OpenAI model                   | gpt-4o-mini          |
| `-c, --concurrent`         | Max concurrent requests        | 5                    |
| `-b, --batch-size`         | Subtitles per batch            | 15                   |

## Library

```python
import asyncio
from pathlib import Path
from subconv import TranslationConfig, TranslationService

config = TranslationConfig(
    input_path=Path("input.srt"),
    output_path=Path("output.srt"),
    target_language="Spanish",
    source_language="English",
)

asyncio.run(TranslationService(config).run())
```

## Environment

```bash
export OPENAI_API_KEY=your-key
```

## License

[MIT](LICENSE)

---

_Tests and documentation generated by Claude xD_
pip-timemachine 0.2.3
Add your description here
Requires Python: >=3.10

# pip-timemachine

A simple Python server that forwards requests to PyPI's Simple API,
filters results based on a specific point in time, and returns the
response.

Primary purpose is for testing pip, but may be useful for reliably
installing the same packages from a given date.

## Features

- Filters package files by a specified datetime
- Powered by [PEP 691](https://peps.python.org/pep-0691/) and [PEP 700](https://peps.python.org/pep-0700/) to quickly filter packages after the given time
- Can point to any simple index that supports PEP 691 and PEP 700, not just PyPI

## Installation

I reccomend install `pip-timemachine` as a tool, e.g.

Using [uv](https://github.com/astral-sh/uv?tab=readme-ov-file#uv):
```bash
uv tool install pip-timemachine
```

Or using [pipx](https://github.com/pypa/pipx?tab=readme-ov-file):
```bash
pipx install pip-timemachine
```

## Usage

### Run

Once installed, run the server:
```bash
pip-timemachine 2023-10-18T12:00:00
```

And then point pip (or any other installer) to use this server as an index:
```bash
pip install requests --index http://127.0.0.1:8040/simple
```

### CLI Options

```
 Usage: pip-timemachine [OPTIONS] MOMENT:[%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
 
 Arguments:
   moment      MOMENT:[%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]  [default: None] [required]
 
 Options : 
   --index        TEXT     [default: https://pypi.org/simple]
   --port         INTEGER  [default: 8040]
   --help                  Help
```

# To Dos

 * Support clients (e.g. pip) that do not support PEP 691 or PEP 700