A simple CLI and Python tool to rotate images
Project description
Image Utils
A small Python package to rotate images from Python or the command line.
Installation
✅ pip (recommended)
pip install image-utils-spin
✅ pipx (best for CLI usage)
If you mainly want the CLI command:
pipx install image-utils-spin
✅ uv
uv pip install image-utils-spin
Or inside a project:
uv add image-utils-spin
✅ Development (editable install)
For testing or contributing:
git clone https://github.com/rick-rocks123/image_spinner.git
cd <repo-folder>
pip install -e .
Usage
✅ Command-line usage
After installing, you can use the CLI command rotate-image instead of py main.py:
rotate-image input.png 90 output.png
Overwrite existing file:
rotate-image input.png 90 output.png --force
✅ Python usage
Example 1: direct usage
from image_utils_spin import rotate_image
rotate_image(
"input.png",
90,
"output.png",
force=True
)
Example 2: usage with CLI-style arguments
from image_utils_spin import rotate_image, argparse_arguments
image_path, rotate_angle, save_path, force = argparse_arguments()
rotate_image(
image_path,
rotate_angle,
save_path,
force
)
✅ Bash commands
Disclaimer: you can use -h or --help
rotate-image --help
or
py script.py --help
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file image_utils_spin-0.1.5.tar.gz.
File metadata
- Download URL: image_utils_spin-0.1.5.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdd857c7531f8aa17df18fdf7976fc2b0bbade3c5e024264fb7fc04e994afa47
|
|
| MD5 |
42e7ebfeac6ea740944b361bb53dce31
|
|
| BLAKE2b-256 |
e49597be184c2d304bf346333557bf9aacb917acd918eeaa83db3bea2059b7fc
|
Provenance
The following attestation bundles were made for image_utils_spin-0.1.5.tar.gz:
Publisher:
publish.yml on rick-rocks123/image_utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
image_utils_spin-0.1.5.tar.gz -
Subject digest:
fdd857c7531f8aa17df18fdf7976fc2b0bbade3c5e024264fb7fc04e994afa47 - Sigstore transparency entry: 1008344405
- Sigstore integration time:
-
Permalink:
rick-rocks123/image_utils@11317ba94273b83b9bd42592fffe8ced78c74206 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/rick-rocks123
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@11317ba94273b83b9bd42592fffe8ced78c74206 -
Trigger Event:
push
-
Statement type:
File details
Details for the file image_utils_spin-0.1.5-py3-none-any.whl.
File metadata
- Download URL: image_utils_spin-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bbd0f610d441478e9f70c21e9939e0ce98e7a605d4ff438808f5f1a11233b68
|
|
| MD5 |
e2be4f56d14f654f501c0cb9e31479d8
|
|
| BLAKE2b-256 |
d0c051e040d2c96ca6aa2a88bbe62d5c744e24d98835f91fd7fae65023d0f69b
|
Provenance
The following attestation bundles were made for image_utils_spin-0.1.5-py3-none-any.whl:
Publisher:
publish.yml on rick-rocks123/image_utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
image_utils_spin-0.1.5-py3-none-any.whl -
Subject digest:
9bbd0f610d441478e9f70c21e9939e0ce98e7a605d4ff438808f5f1a11233b68 - Sigstore transparency entry: 1008344407
- Sigstore integration time:
-
Permalink:
rick-rocks123/image_utils@11317ba94273b83b9bd42592fffe8ced78c74206 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/rick-rocks123
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@11317ba94273b83b9bd42592fffe8ced78c74206 -
Trigger Event:
push
-
Statement type: