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.5.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.5-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for image_utils_spin-0.1.5.tar.gz
Algorithm Hash digest
SHA256 fdd857c7531f8aa17df18fdf7976fc2b0bbade3c5e024264fb7fc04e994afa47
MD5 42e7ebfeac6ea740944b361bb53dce31
BLAKE2b-256 e49597be184c2d304bf346333557bf9aacb917acd918eeaa83db3bea2059b7fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for image_utils_spin-0.1.5.tar.gz:

Publisher: publish.yml on rick-rocks123/image_utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for image_utils_spin-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9bbd0f610d441478e9f70c21e9939e0ce98e7a605d4ff438808f5f1a11233b68
MD5 e2be4f56d14f654f501c0cb9e31479d8
BLAKE2b-256 d0c051e040d2c96ca6aa2a88bbe62d5c744e24d98835f91fd7fae65023d0f69b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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