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.4.tar.gz
(16.6 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.4-py3-none-any.whl
(16.7 kB
view details)
File details
Details for the file tmxpy-0.1.4.tar.gz.
File metadata
- Download URL: tmxpy-0.1.4.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1428a14a2f991ac46f3f510c2b50c8412bc49f0d1b95ed7c200ca49c4be70d22
|
|
| MD5 |
e780d8d6285cecee8e6aa0b3dd167593
|
|
| BLAKE2b-256 |
ed8ea60e1b71a15125005c07352f9f4d6638f9e94d2c3de5938b7fc74af95eb2
|
File details
Details for the file tmxpy-0.1.4-py3-none-any.whl.
File metadata
- Download URL: tmxpy-0.1.4-py3-none-any.whl
- Upload date:
- Size: 16.7 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 |
8fe23f0c3fb489fbf12c756ac9baab2b5966518eb823019aed4e642a7ce0c410
|
|
| MD5 |
05eff3776c58ec0220ce6836f189c9cf
|
|
| BLAKE2b-256 |
a41b33e1f8435cd33141bdc685620358b482296f7bdc4f5e6b4b3402ec91a633
|