Python bindings for the LevelZ File Format
Project description
levelz-py
Python bindings & API for the LevelZ File Format
Overview
Provides Python Parsing/Support for the LevelZ File Format.
Download
pip install levelz
Usage
from levelz import Coordiante2D
coord = Coordiante2D(1, 2)
print(coord)
from levelz import parse_lines, Level2D
lines = [
"@type 2",
"@spawn default",
"---",
"grass: [0, 0]*[0, 1]"
]
level: Level2D = parse_lines(lines)
from levelz import parse_file
level = parse_file("level.lvlz")
print(level)
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
levelz-0.1.0.tar.gz
(21.0 kB
view details)
Built Distribution
File details
Details for the file levelz-0.1.0.tar.gz
.
File metadata
- Download URL: levelz-0.1.0.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaf015bf3266f8f9f27de53a3859ea92990376c8921af356e87d14d977aed60d |
|
MD5 | cbc102deefaef8d21165214c5a88107c |
|
BLAKE2b-256 | 6c68120887ee52927bb0ed62c4d7a8a82210770ca4aa6fb3f8f26858fa1f0c92 |
File details
Details for the file levelz-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: levelz-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f0a983fcb44dc019dc10bf0ba8b67e1ce36bb63af6d38d2697f13c4c64bf067 |
|
MD5 | 2583267887e396184b28fad21f5679e7 |
|
BLAKE2b-256 | 978abb80d81edd19b49c0c93be86ee1455d46dc492838a6f25dcc26495b5400a |