Skip to main content

spssimage

A lightweight Python library for creating and manipulating images, including generating star maps with dynamic effects like twinkling stars and gradients.

Features

  • Create static images with shapes, gradients, and colors.
  • Generate animations (e.g., twinkling stars) and export them as GIFs.
  • Apply radial gradients to simulate gas clouds.
  • Lightweight and independent of external libraries like OpenCV or Pillow.

Installation

Install the library using pip:

pip install spssimage

USAGE: from spssimage.core import Canvas

Create a canvas

canvas = Canvas(100, 100, background=(0, 0, 0))

Define pixel positions for twinkling

pixel_positions = [(20, 20), (50, 50), (80, 80)]

Define the base color of the twinkling pixels

base_color = (255, 255, 255)

Save the twinkling pixels as a GIF

canvas.save_gif(pixel_positions, base_color, "twinkling_pixels.gif", frames=30, duration=100, loop=0)


2. Prepare for Deployment

Build the Package

Run the following commands to build the package:

# Ensure your virtual environment is active
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install build tools
pip install --upgrade build twine

# Build the package
python -m build

Metadata

Release files for spssimage 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spssimage 0.1.5
File Size Uploaded
spssimage-0.1.5.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spssimage 0.1.5
File Interpreter ABI Platform
spssimage-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / spssimage-0.1.5.tar.gz

Download URL spssimage-0.1.5.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
db06f8e0a2bc5f00e54f5ab079733a64d1abdacb638e443d94c866d52bb701e5
BLAKE2b-256 checksum
How to use checksums
a8799359dce7fb48c0ad162ae5ffe5bd7a7966a9833a1c63d0e7d68ea73c44cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.12

Release files / spssimage-0.1.5-py3-none-any.whl

Download URL spssimage-0.1.5-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94db95f9ce9782da393a55b542fe91b7cc974bd2b98a4c656f4f847f0c57918b
BLAKE2b-256 checksum
How to use checksums
1923089014ce27e750e6e9316063c0505073c6958e52550988fc071712184df2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page