Skip to main content

A library for parsing JSON formatted Tiled Map Editor maps and tilesets.

Project description

# PyTiled Parser

PyTiled Parser is a Python Library for parsing JSON formatted [Tiled Map Editor](https://www.mapeditor.org/) maps and tilesets to be used as maps and levels for 2D top-down (orthogonal, hexogonal, or isometric) or side-scrolling games in a strictly typed fashion.

PyTiled Parser is not tied to any particular graphics library, and can be used with [Arcade](http://arcade.academy), [Pyglet](https://pyglet.readthedocs.io/en/pyglet-1.3-maintenance/), [Pygame](https://www.pygame.org/news), etc.

The [Arcade](http://arcade.academy) library has [supporting code](http://arcade.academy/arcade.html#module-arcade.tilemap) to integrate PyTiled with that 2D libary, and [example code](http://arcade.academy/examples/index.html#tmx-files-tiled-map-editor) showing its use.

Original module by [Beefy-Swain](https://github.com/Beefy-Swain). Significant contributions from [pvcraven](https://github.com/pvcraven) and [Cleptomania](https://github.com/Cleptomania).

## Developement To develop pytiled parser, clone the repo, create a venv using a supported Python version, and activate it. Then install the package as well as all testing dependencies with the command python -m pip install -e “.[tests]”.

### Testing Run pytest –cov=pytiled_parser to run the test harness and report coverage.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytiled-parser, version 1.2.0
Filename, size File type Python version Upload date Hashes
Filename, size pytiled_parser-1.2.0-py3-none-any.whl (18.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pytiled_parser-1.2.0.tar.gz (15.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page