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.3.tar.gz (2.9 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.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for image_utils_spin-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f528181025a15a6da82209562a2323841ec4544c8bd8fa8aedf2c6084842c1fe
MD5 c513748e1a09d425f099a8125431fb72
BLAKE2b-256 662205ba7a69bce78d81733b5791c1ee077002d4a4782bbcf117d9f760f2818a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for image_utils_spin-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b2dfd61ff4ecceb597299aae4c336f32da946e85024173ad0e4db49ff78b0d4f
MD5 cb9fb0059dd84d0fd265b7bf8874cf98
BLAKE2b-256 0f5337120df504bd7472986aec4ab9b6aa4ed1b938064913f82922e4786050fb

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