Skip to main content

Pack sprites into a texture atlas

Project description

sprak is a Python module for packing sprites into a texture atlas.

Installation

pip install sprak

Usage

from pathlib import Path

from sprak import SpritePacker


src = Path("path/to/src_folder")
dst = Path("path/to/dst_folder")

packer = SpritePacker()
packer.add_source_folder(src)
packer.pack(dst)

Development

Create a virtual environment:

uv venv

Install requirements:

uv sync

A note from Andrew

This is a module that I created and maintain for my own personal projects. Please keep the following in mind:

  • Features are added as I need them.
  • Issues are fixed as my time and interest allow.
  • Version updates may introduce breaking changes.

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

sprak-1.7.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

sprak-1.7.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file sprak-1.7.0.tar.gz.

File metadata

  • Download URL: sprak-1.7.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sprak-1.7.0.tar.gz
Algorithm Hash digest
SHA256 8f73c4d84188c760abb0a3400d8b8a6fd87c3e0d32f157ac43f3a74d26313e4f
MD5 96911ab3c82b8c3c8f1c58316f4261e2
BLAKE2b-256 20dd58c2112e9aeecc6daae45143a0b88a0c5073cd9abd3c9e862cc2f2c55268

See more details on using hashes here.

File details

Details for the file sprak-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: sprak-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sprak-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07e1b96c2d257bd0a316fe0c090887ffc10d4b1fd9d9a305dc9d44fe0b684f02
MD5 dc078048631bd52f4dc1759062a9e3d4
BLAKE2b-256 33444c3731d60b64a03c1165e3dd7e14665ffe164b01132de10cd6def93c066a

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