Skip to main content

Pack sprites into a texture atlas

Project description

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

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-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

sprak-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sprak-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 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-0.1.0.tar.gz
Algorithm Hash digest
SHA256 04c70fcf00cce3fb03faf086f880079562993d456456ec748f7a99a6b3ab6a86
MD5 2380409857e656f481421bdee7f3af22
BLAKE2b-256 7638d86cf4d29c5e7ec997683ec0d98cde38a8328764275ca5f25f2738af2f46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sprak-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4356cf06046d2cbe0de56d3d1b753e71e5ecfb2ae82babb1b2bac5e70c417e24
MD5 cbc09405175a3dc17336895df672872b
BLAKE2b-256 b63d5b3f96e08f100c02d44126c11f1d228b68c55106c5f397382cd8523fac59

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