a formatter for snbt from minecraft
Project description
Snbtlib
Installation
pip install snbtlib
Usage
import snbtlib
from pathlib import Path
# Reading Text to JSON
json = snbtlib.loads(Path('quest.snbt').read_text(encoding='utf-8'))
# Dumping JSON to Text
text = snbtlib.dumps(json, compact=False) # When compact is True, the output will be compatible with Version 1.12 and below
Path('quest.snbt').write_text(text, encoding='utf-8')
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
snbtlib-1.0.2.tar.gz
(4.4 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 snbtlib-1.0.2.tar.gz.
File metadata
- Download URL: snbtlib-1.0.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
327e9615adee725fec36792e1f5acfd9caec7b6e0666a1ca9cb68de4b03fde50
|
|
| MD5 |
cad24151c1dc5c01aeb00b67a94b9acf
|
|
| BLAKE2b-256 |
ed8935dffdded34880e1bddc21e4e314f18b47fcf4b5448a8989326d58a8f7e0
|
File details
Details for the file snbtlib-1.0.2-py3-none-any.whl.
File metadata
- Download URL: snbtlib-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70502bb03e9f9b7c011dad6f391f47689d26babcdedd3390743e101755fb6ddf
|
|
| MD5 |
1653da18897d353e40573e8811eac4c3
|
|
| BLAKE2b-256 |
9e37c09ee97fd96fc0f29d296bbb2da2e6b153b27ab819029e5abdd50fbf9366
|