#841986 ITP: pytmx -- Tiled map loader Python/Pygame

Package:
wnpp
Source:
wnpp
Submitter:
shirish शिरीष
Date:
2025-11-08 14:53:03 UTC
Severity:
wishlist
#841986#5
Date:
2016-10-25 00:34:10 UTC
From:
To:
* Package name    : pytmx
  Version         : 3.20
  Upstream Author : bitcraft <leif.theden@gmail.com>
* URL             : https://github.com/bitcraft/PyTMX
* License         : LGPL3
  Programming Lang: Python
  Description     : pytmx is a map loader for python/pygame designed for games

 It provides smart tile loading with a fast and efficient storage
base. Not only does it correctly handle most Tiled object types, it
also will load metadata for them so you can modify your maps and
objects in Tiled instead of modifying your source code.

New support for pysdl2 and pyglet! Check it out!

Because PyTMX was built with games in mind, it differs slightly from
Tiled in a few minor aspects:

    Layers not aligned to the grid are not supported.
    Some object metadata attribute names are not supported (see
"Reserved Names")

PyTMX strives to balance performance and flexibility. Feel free to use
the classes provided in pytmx.py as superclasses for your own maps, or
simply load the data with PyTMX and copy the data into your own
classes with the api.

There is no save feature. Once the map is loaded, it will be up to you
to provide a way to save changes to the map. I've used the pickle
module with good results.

I need to clarify a few things:

    pytmx is not a rendering engine
    pytmx is not the Tiled Map Editor

This is used by a game I wanna play https://github.com/dulsi/Tuxemon .
The library/map loader could either be maintained by the games team
or/and the python-maintainers or python-modules-maintainers team.
Either of the above may be a good fit.

#841986#8
Date:
2019-01-13 10:29:59 UTC
From:
To:
Hi,

I will package pytmx within the DPMT.

#841986#17
Date:
2025-11-08 14:05:03 UTC
From:
To:
Hello

I see that in 2019 you declared you were working on packaging pytmx: are
you still interested in it?

I see that the project itself had a few sparse commits in 2024, but the
latest release was in 2021, so maybe it's not really worth packaging
anymore (unless it's a dependency of something?)