semvec/pypi-packages huggingface dataset:
polars-whichlang 0.1.1
Language identification plugin for polars
Requires Python: >=3.9

# polars-whichlang

[![PyPI version](https://img.shields.io/pypi/v/polars-whichlang.svg)](https://pypi.org/project/polars-whichlang/)


This polars plugin is a wrapper for [whichlang](https://github.com/quickwit-oss/whichlang), 
a very fast and reasonably accurate language identification library written in rust. 

It currently supports the following languages:
 
- Arabic (ara)
- Dutch (nld)
- English (eng)
- French (fra)
- German (deu)
- Hindi (hin)
- Italian (ita)
- Japanese (jpn)
- Korean (kor)
- Mandarin (cmn)
- Portuguese (por)
- Russian (rus)
- Spanish (spa)
- Swedish (swe)
- Turkish (tur)
- Vietnamese (vie)

## Installation

```
pip install polars-whichlang
```
## Examples

```python
import polars as pl
from polars_whichlang import detect_lang

df = pl.DataFrame(
    {
        "index": [1, 2, 3, 4],
        "text": [
            "This is a test.", 
            "Đây là một bài kiểm tra.", 
            "Dies ist ein Test", 
            "这是一个测试"
        ],
    }
)

df.with_columns(detect_lang('text').alias('lang'))
```

```
shape: (4, 3)
┌───────┬──────────────────────────┬──────┐
│ index ┆ text                     ┆ lang │
│ ---   ┆ ---                      ┆ ---  │
│ i64   ┆ str                      ┆ str  │
╞═══════╪══════════════════════════╪══════╡
│ 1     ┆ This is a test.          ┆ eng  │
│ 2     ┆ Đây là một bài kiểm tra. ┆ vie  │
│ 3     ┆ Dies ist ein Test        ┆ deu  │
│ 4     ┆ 这是一个测试               ┆ cmn  │
└───────┴──────────────────────────┴──────┘
```
scapr 2025.12.2
A Python script that uses Pillow's ImageGrab to capture screenshots.
Requires Python: >=3.10
Keywords: image, screen capture, screen shot, screenshot

# scapr

![PyPI - Version](https://img.shields.io/pypi/v/scapr)

## Screen Capture in Python

A script that uses Pillow's ImageGrab to capture screenshots.

## Usage

```shell
usage: scapr [-h] [--auto] [--seconds SLEEP_SEC] [--count STOP_COUNT]
             [--folder OUTPUT_DIR] [--region REGION_BOX] [--flat]

Command-line utility to capture screenshots.

options:
  -h, --help           show this help message and exit
  --auto               Do not prompt to start capturing screenshots. Begin
                       right away.
  --seconds SLEEP_SEC  Number of seconds to pause between screenshots.
  --count STOP_COUNT   Number of screenshots to take before stopping.
  --folder OUTPUT_DIR  Name of folder for saving captured screenshots.
  --region REGION_BOX  Region to capture (instead of full screen). Specify box
                       coordinates, separated by commas (no spaces between),
                       as 'x1,y1,x2,y2' where x1 and y1 are the left-top pixel
                       coordinates, and x2 and y2 are the right-bottom pixel
                       coordinates. Example: '--region 100,100,600,600' to
                       capture a 500 x 500 image starting at 100 pixels from
                       top and left.
  --flat               Do not create a sub-folder for each capture session (a
                       'flat' output folder structure).
```

## Reference

[Pillow](https://pypi.org/project/Pillow/)

Pillow - [ImageGrab](https://pillow.readthedocs.io/en/stable/reference/ImageGrab.html)

Python - [KeyboardInterrupt](https://docs.python.org/3/library/exceptions.html#KeyboardInterrupt)