https://github.com/levelz-file/py-bindings
Python Parser & API for the LevelZ File Format
https://github.com/levelz-file/py-bindings
levelz python python3 sphinx-python
Last synced: 3 months ago
JSON representation
Python Parser & API for the LevelZ File Format
- Host: GitHub
- URL: https://github.com/levelz-file/py-bindings
- Owner: LevelZ-File
- License: mit
- Created: 2024-04-25T19:32:11.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-10-07T15:11:54.000Z (9 months ago)
- Last Synced: 2025-10-07T17:29:20.874Z (9 months ago)
- Topics: levelz, python, python3, sphinx-python
- Language: Python
- Homepage: https://levelz-file.github.io/py-bindings/
- Size: 426 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# levelz-py
> Python bindings & API for the LevelZ File Format

## Overview
Provides Python Parsing/Support for the LevelZ File Format.
## Download
```bash
pip install levelz
```
## Usage
```py
from levelz import Coordiante2D
coord = Coordiante2D(1, 2)
print(coord)
```
```py
from levelz import parse_lines, Level2D
lines = [
"@type 2",
"@spawn default",
"---",
"grass: [0, 0]*[0, 1]"
]
level: Level2D = parse_lines(lines)
```
```py
from levelz import parse_file
level = parse_file("level.lvlz")
print(level)
```