Skip to main content

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

image_utils_spin-0.1.4.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

image_utils_spin-0.1.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file image_utils_spin-0.1.4.tar.gz.

File metadata

  • Download URL: image_utils_spin-0.1.4.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for image_utils_spin-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5981cc99b5016384f8dc97155294c4762976e9ae876f88ec781af8b7a81c4b82
MD5 34c43da94375a3977f735034efeea8ba
BLAKE2b-256 03f9c731164a9d0ed8e1acc4fecab43f2e257d247430c3fefa1d73a92085e3e4

See more details on using hashes here.

File details

Details for the file image_utils_spin-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for image_utils_spin-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7b3525fd5f4b146c7a64ae88115daccc0ee9eff32ea7e693aebbd11f8056d901
MD5 c23521f23c325e9aa65ad0c129449a34
BLAKE2b-256 a21b35a07051f8f9f5bfa2a4237892d1fd1de6be2a52c231a564188bdf2c6b69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page