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')
Metadata
Release files for snbtlib 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| snbtlib-1.0.2.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| snbtlib-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / snbtlib-1.0.2.tar.gz
| Download URL | snbtlib-1.0.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
327e9615adee725fec36792e1f5acfd9caec7b6e0666a1ca9cb68de4b03fde50
|
|
BLAKE2b-256 checksum How to use checksums |
ed8935dffdded34880e1bddc21e4e314f18b47fcf4b5448a8989326d58a8f7e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / snbtlib-1.0.2-py3-none-any.whl
| Download URL | snbtlib-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70502bb03e9f9b7c011dad6f391f47689d26babcdedd3390743e101755fb6ddf
|
|
BLAKE2b-256 checksum How to use checksums |
9e37c09ee97fd96fc0f29d296bbb2da2e6b153b27ab819029e5abdd50fbf9366
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|