Skip to main content

A Terraria world parser in Python

Project description


A Terraria world parser in Python.

You can use this package to get programmer-friendly data from a Terraria world!

Install with:

pip install lihzahrd


You can open a world file and get a World object by calling:

import lihzahrd
world = lihzahrd.World.create_from_file("filename.wld")

It will take a while to process: a small Terraria world contains more than 5 million tiles!

Once you have a World object, you can use all data present in the save file by accessing its attributes.


The documentation is available here.

It's a bit messy and incomplete, as I still have not figured out the meaning of some data, and the code is in need of some refactoring.

If you know something that isn't present in the documentation, please let me know with an issue!

References used


lihzahrd is licensed under the AGPL 3.0. That means you have to publish under the same license the source code of any program you create that uses lihzahrd.

See also

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 lihzahrd, version 1.0b3
Filename, size File type Python version Upload date Hashes
Filename, size lihzahrd-1.0b3-py3-none-any.whl (90.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size lihzahrd-1.0b3.tar.gz (62.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page