semvec/pypi-packages huggingface dataset:
pi-clock 1.0.8
Set alarms, stopwatches and timers from the terminal.
Requires Python: >=3

# pi-clock
Set alarms, create timers or stopwatches right from your terminal.

![Piclock Demo](demo/demo.gif)

## Installation
```bash
pip3 install pi-clock
```

## Usage
**Setting an alarm**
```bash
 piclock -a
```

**Creating a timer**
```bash
piclock -t
```

**Creating a new stopwatch**
```bash
piclock -s
```

**Interactive mode**
```bash
 piclock -i
```

**Command Line Arguments**
```text
usage: piclock [-h] [-i] [-t] [-a] [-s]

optional arguments:
-h, --help          shows this help message and exit
-i, --interactive   Interactive mode
-t, --timer         Set a new timer
-a, --alarm         Set a new alarm
-s. --stopwatch     Start a new stopwatch
```

Todo:
- [ ] Allow alarms to run in the background while in intercative mode.
pil-resize-aspect-ratio 0.0.8
pil_resize
Requires Python: >=3.4

# pil_resize

![PyPI - package version](https://img.shields.io/pypi/v/pil_resize?logo=pypi&style=flat-square)
![PyPI - license](https://img.shields.io/pypi/l/pil_resize?label=package%20license&style=flat-square)
![PyPI - python version](https://img.shields.io/pypi/pyversions/pil_resize?logo=pypi&style=flat-square)
![PyPI - downloads](https://img.shields.io/pypi/dm/pil_resize?logo=pypi&style=flat-square)

![GitHub - last commit](https://img.shields.io/github/last-commit/kkristof200/py_resize_image?style=flat-square)
![GitHub - commit activity](https://img.shields.io/github/commit-activity/m/kkristof200/py_resize_image?style=flat-square)

![GitHub - code size in bytes](https://img.shields.io/github/languages/code-size/kkristof200/py_resize_image?style=flat-square)
![GitHub - repo size](https://img.shields.io/github/repo-size/kkristof200/py_resize_image?style=flat-square)
![GitHub - lines of code](https://img.shields.io/tokei/lines/github/kkristof200/py_resize_image?style=flat-square)

![GitHub - license](https://img.shields.io/github/license/kkristof200/py_resize_image?label=repo%20license&style=flat-square)

## Description

Resize/paste images easily keeping their aspect ratio

## Install

~~~~bash
pip install pil_resize_aspect_ratio
# or
pip3 install pil_resize_aspect_ratio
~~~~

## Usage

~~~~python
from pil_resize_aspect_ratio import Resizer, FillType

p_org_img_bg  = 'bg.png'
p_overlay_img = 'fg.png'
path_out = 'final.png'

resized_bg_image = Resizer.resize_keep_aspect_ratio(
    image=p_org_img_bg,
    fill_type=FillType.Fill,
    target_size=(1920, 1080),
    return_image_instead_of_success=False
)

print(
    Resizer.paste_and_fit(
        background_image=resized_bg_image,
        foreground_image=p_overlay_img,
        path_out=path_out
    )
)
~~~~

## Dependencies

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