semvec/pypi-packages huggingface dataset:
typoglycemia 0.1.1
A Python package for scrambling the inner letters of words in a sentence while keeping the first and last letters in place.
Requires Python: >=3.8

# typoglycemia

## Introduction

Typoglycemia is a CLI tool that displays the given text with a typoglycemia effect. The typoglycemia effect involves keeping the first and last letters of a word in place while shuffling the internal letters randomly.

## Installation

```console
pip install typoglycemia
```

## API Usage

```bash
>>> import typoglycemia

>>> typoglycemia.make_typoglycemia('Hello World')
'Hlelo Wrold'

>>> typoglycemia.make_typoglycemia('Lorem ipsum dolor sit amet, consectetur adipiscing elit.')
'Lroem isupm dloor sit aemt, cnosetcuter aidipcsing elit.'
```

## Command Line Usage

```bash
$ typoglycemia -t "Hello World"
Hlelo Wrold

$ typoglycemia -t "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
Lroem isupm dloor sit aemt, cnosetcuter aidipcsing elit.
```

## Contributing

[![Contributors](https://contrib.rocks/image?repo=hooli-dev/typoglycemia&columns=5)](https://github.com/hooli-dev/typoglycemia/graphs/contributors)
crop-yolo 1.1.0
Crop people from jpg files via yolo v10
Requires Python: >=3.12

# YOLOv8 Person Cropping Tool

This tool uses YOLOv8 to detect and crop persons from images. It's designed to process multiple images, optionally searching recursively through directories, and can crop either the largest detected person or all detected persons in each image.

## Features

- Uses YOLOv8 for accurate person detection
- Supports multiple YOLOv8 models (yolov8x.pt, yolov8m.pt, yolov8s.pt)
- Processes images in parallel for faster execution
- Allows recursive directory search
- Option to crop all detected persons or just the largest one
- Adds customizable margin to cropped images
- Saves images with no detected persons in a separate directory
- Option to remove small images after processing

## Installation

1. Clone this repository
2. Install the required dependencies:

```bash
pip install ultralytics rich typer opencv-python
```

3. Ensure you have the YOLOv8 models in your home directory under a `yolov8` folder.

## Usage

Run the script using the following command:

```bash
python main.py [OPTIONS]
```

### Options

- `--margin-percentage INTEGER`: Margin percentage for bounding box (default: 3, recommended range: 0-10)
- `--model-size INTEGER`: Model size (default: 640, recommended: 320, 640, or 1280)
- `--model TEXT`: YOLOv8 model to use (options: yolov8x.pt, yolov8m.pt, yolov8s.pt)
- `--recursive / --no-recursive`: Search for images recursively (default: False)
- `--crop-all / --no-crop-all`: Crop all detected persons instead of just the largest (default: False)

## How it works

1. The script prompts you to select an input directory.
2. It processes all images in the selected directory (and subdirectories if recursive option is enabled).
3. Detected persons are cropped from the images with the specified margin.
4. Cropped images are saved in a 'cropped' subdirectory within the input directory.
5. Images with no detected persons are saved in a 'no-person' subdirectory.
6. After processing, you have the option to remove small images based on a size threshold.
gameeapi 1.0.2
An unofficial API wrapper for gamee.com.
Requires Python: >=3.11
Keywords: gamee, gamee-api, telegram, telegrambot

# gameeapi

An unofficial API wrapper for gamee.com written in Python.

# Installation

Installing through pip:
```bash
pip install gameeapi
```

Installing through source:
```bash
git clone https://github.com/zrekryu/gameeapi.git
cd gameeapi
pip install .
```

# Gamee API

## Initializing API Client

To initialize the API Client:
```py
from gameeapi import GameeAPIClient

client: GameeAPIClient = GameeAPIClient()
```

## Version Information

To print the version of the `gameeapi` library:
```py
from gameeapi import __version__

print(__version__)
```

## Authorizing user

To authorize the user:
```py
from typing import Any

game_url: str = "<game-url>"
auth_data: dict[str, Any] = await client.auth_user(game_url)

Print the authentication token and save it for later use.
print("Authentication Token:", auth_data["result"]["tokens"]["authenticate"])
```

## Get Web Gameplay Details

To retrieve web gameplay details:
```py
game_url: str = "<game-url>"
gameplay_details: dict[str, Any] = await client.get_web_gameplay_details(game_url)
print(gameplay_details)
```

## Get Geographical Block Status

To retrieve geographical block status:
```py
auth_token: str = "<auth-token>"
geo_block_status: dict[str, Any] = await client.get_geo_block_status(auth_token)
print(geo_block_status)
```

## Get Web Surrounding by Game

To get web surrounding by the game:
```py
game_url: str = "<game-url>"
auth_token: str = "<auth-token>"
game_surrounding: dict[str, Any] = await client.get_web_surrounding_by_game(auth_token, game_url)
print(game_surrounding)
```

## Save Web Gameplay

To save web gameplay score:
```py
auth_token: str = "<auth-token>"
game_url: str = "<game-url>"
score: int = 100
play_time: int = 120

gameplay_data: dict[str, Any] = await client.save_web_gameplay(auth_token, game_url, score, play_time)
print(gameplay_data)
```

# License

© 2024 Zrekryu. Licensed under MIT License. See the LICENSE file for details.