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.1.tar.gz
(19.8 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
File details
Details for the file levelz-0.1.1.tar.gz.
File metadata
- Download URL: levelz-0.1.1.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01973462e634dea7b68e6a0a34b0fa9041103253674266db88e9152d2688c92c
|
|
| MD5 |
ef408e58e58620977c9f7cd0e0bf6440
|
|
| BLAKE2b-256 |
ade7d0c2379c485aa733780ddedc934ee6698bc3c9e1070121ce5f53846f34eb
|
File details
Details for the file levelz-0.1.1-py3-none-any.whl.
File metadata
- Download URL: levelz-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90077d8934c0c7c1907008789057caae882115f467af62be9e39cecd674e63cf
|
|
| MD5 |
08417e914a42a64d6920220fa196bd45
|
|
| BLAKE2b-256 |
f1fa4554957f4388890f4378ae1e2ed2b4c32b4ceaa43141b14e51c96363c306
|