A Python library for reading and writing TMX files.
Project description
TMXpy
A Python library for reading and writing TMX files.
This library is fairly computer intensive, especially when rendering large maps. It is recommended to use a computer with decent specs when using this library.
Features
- Rendering of TMX files to images (CSV encoding only)
Installation
pip install tmxpy
Usage
from tmxpy import TMXpy
from pathlib import Path
tmx = TMXpy(sheets=[Path("path/to/tilesheet/directory")], path=Path("path/to/tmx/file"))
tmx.generateGIDDict()
tmx.renderAllLayers().save("path/to/output/image.png")
Development/Testing
- Install dependencies with
pip install -r requirements.txt - Tests can be added to tests/name_of_test.py and run with
py -m tests.name_of_test - It can be built with
py -m build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tmxpy-0.1.1.tar.gz
(15.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tmxpy-0.1.1-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file tmxpy-0.1.1.tar.gz.
File metadata
- Download URL: tmxpy-0.1.1.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6106fc0aae17f56c0ff207940e014aae44f178b629a8cce0a177bb9f2c1099b2
|
|
| MD5 |
88d8ee4649de16af847855d0a7da05e8
|
|
| BLAKE2b-256 |
dc297de7e71c4fa16d6c6475ef48adcdd4da74f2bf22ce435532de704f270a16
|
File details
Details for the file tmxpy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tmxpy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
201f9d6ecc86c71c85c65945682ae4371e32dfaf2ca5b28f50a25ceda2c5e2eb
|
|
| MD5 |
4b8ab13dd2f8143d6e5bb2704e781430
|
|
| BLAKE2b-256 |
0cbacbcdcbae296b43f7893d2ba0b13798d885660ab4ee862c840082c1104f82
|