Socket
Book a DemoInstallSign in
Socket

spssimage

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spssimage

A lightweight library for image creation and manipulation.

pipPyPI
Version
0.1.5
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts