semvec/pypi-packages huggingface dataset:
stress-timer 0.1.1
A timer that says the time, and stresses you out, it also provides tracking for questions and the time spent on the questions.
License: MIT
Requires Python: <3.13,>=3.10

# Question Timer Application

A simple command-line application that helps you track the time spent on each question, with audible time announcements and logging.

## Features

- Starts and stops the timer using the spacebar key.
- Announces elapsed time using text-to-speech.
- Automatically logs the elapsed time to a CSV file (`Question-Log.csv`).
- Allows you to mark each question as correct, incorrect, or not applicable (yes/no/n/a).

## Prerequisites

- Python 3.10, 3.11, or 3.12 (Python 3.13 is **not supported** due to dependencies).
- macOS, Linux, or Windows.

## Installation

You can install the package via [PyPI](https://pypi.org/):

```bash
pip install stress-timer
```

Or, if installing from source:

```bash
git clone https://github.com/yourusername/stress-timer-oce4nm4n.git
cd stress-timer-oce4nm4n
pip install .
```

If you use Poetry:

```bash
poetry install
```

## Running the Application

To start the timer application, run:

```bash
stress-timer
```

Or, if running from source:

```bash
python -m stress_timer_oce4nm4n.main
```

## Controls

- **Spacebar**: Start or stop the timer. Press again when you finish a question.
- **q**: Quit the application.

## Logging

The elapsed time for each question is automatically logged to `Question-Log.csv` in the same directory as the script. You can open this file in any CSV editor or spreadsheet software.

### Example Log File Format

| Question | Time (seconds) | Correct |
|----------|----------------|---------|
| 1        | 30             | yes     |
| 2        | 45             | no      |

## Troubleshooting

- **Python version errors:**
  If you encounter errors about missing or incompatible dependencies, ensure you are using Python 3.10, 3.11, or 3.12.
- **Audio issues:**
  Make sure your system audio is working and you have the necessary permissions.

## License

MIT License
pgsrip 0.1.12
Rip your PGS subtitles
License: MIT
Requires Python: <4.0,>=3.11
Keywords: video, mkv, subtitles, rip, srt, pgs, sup, sub, metadata, movie, episode, tv, shows, series

# PGSRip

Rip your PGS subtitles.

[![Latest
Version](https://img.shields.io/pypi/v/pgsrip.svg)](https://pypi.python.org/pypi/pgsrip)

[![License](https://img.shields.io/github/license/ratoaq2/pgsrip.svg)](https://github.com/ratoaq2/pgsrip/blob/master/LICENSE)

  - Project page  
    <https://github.com/ratoaq2/pgsrip>

**PGSRip** is a command line tool that allows you to extract and convert
PGS subtitles into SRT format. This tool requires MKVToolNix and
tesseract-ocr and tessdata (<https://github.com/tesseract-ocr/tessdata>
or <https://github.com/tesseract-ocr/tessdata_best>)

## Installation

pgsrip:

    $ pip install pgsrip

MKVToolNix:

    [Linux/WSL - Ubuntu/Debian]
    $ sudo apt-get install mkvtoolnix

    [Windows/Chocolatey]
    $ choco install mkvtoolnix

tesseract:

PPA is used to install latest tesseract 5.x. Skip PPA repository if you decide to stick with latest official Debian/Ubuntu package

    [Linux/WSL - Ubuntu/Debian]
    $ sudo add-apt-repository ppa:alex-p/tesseract-ocr5
    $ sudo apt update
    $ sudo apt-get install tesseract-ocr

    [Windows/Chocolatey]
    $ choco install tesseract-ocr


tessdata:

    $ git clone https://github.com/tesseract-ocr/tessdata_best.git
    export TESSDATA_PREFIX=~/tessdata_best

If you prefer to build the docker image Build Docker:

    $ git clone https://github.com/ratoaq2/pgsrip.git
    cd pgsrip
    docker build . -t pgsrip

## Usage

### CLI

Rip from a .mkv:

    $ pgsrip mymedia.mkv
    3 PGS subtitles collected from 1 file
    Ripping subtitles  [####################################]  100%  mymedia.mkv [5:de]
    3 PGS subtitles ripped from 1 file

Rip from a .mks:

    $ pgsrip mymedia.mks
    3 PGS subtitles collected from 1 file
    Ripping subtitles  [####################################]  100%  mymedia.mks [3:pt-BR]
    3 PGS subtitles ripped from 1 file

Rip from a .sup:

    $ pgsrip mymedia.en.sup
    1 PGS subtitle collected from 1 file
    Ripping subtitles  [####################################]  100%  mymedia.en.sup
    1 PGS subtitle ripped from 1 file

Rip from a folder path:

    $ pgsrip -l en -l pt-BR ~/medias/
    11 PGS subtitles collected from 9 files / 2 files filtered out
    Ripping subtitles  [####################################]  100%  ~/medias/mymedia.mkv [4:en]
    11 PGS subtitles ripped from 9 files

Using docker:

    $ docker run -it --rm -v /medias:/medias -u $(id -u username):$(id -g username) ratoaq2/pgsrip -l en -l de -l pt-BR -l pt /medias
    11 PGS subtitles collected from 9 files / 2 files filtered out
    Ripping subtitles  [####################################]  100%  /medias/mymedia.mkv [4:en]
    11 PGS subtitles ripped from 9 files

### API

``` python
from pgsrip import pgsrip, Mkv, Options
from babelfish import Language

media = Mkv('/subtitle/path/mymedia.mkv')
options = Options(languages={Language('eng')}, overwrite=True, one_per_lang=False)
pgsrip.rip(media, options)
```