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 | Provenance | Actions |
|---|---|---|---|---|
| snbtlib-1.0.2.tar.gz | 4.4 kB | Without provenance | Details for snbtlib-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snbtlib-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for snbtlib-1.0.2-py3-none-any.whl |
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
|
Security for snbtlib 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.