Name | snbtlib JSON |
Version |
1.0.2
JSON |
| download |
home_page | |
Summary | a formatter for snbt from minecraft |
upload_time | 2023-09-12 02:55:39 |
maintainer | |
docs_url | None |
author | Tryanks |
requires_python | |
license | MIT License |
keywords |
minecraft
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Snbtlib
[![PyPI version](https://badge.fury.io/py/snbtlib.svg)](https://badge.fury.io/py/snbtlib)
## Installation
```
pip install snbtlib
```
## Usage
```python
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')
```
Raw data
{
"_id": null,
"home_page": "",
"name": "snbtlib",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "minecraft",
"author": "Tryanks",
"author_email": "tryanks@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/ed/89/35dffdded34880e1bddc21e4e314f18b47fcf4b5448a8989326d58a8f7e0/snbtlib-1.0.2.tar.gz",
"platform": "any",
"description": "# Snbtlib\n[![PyPI version](https://badge.fury.io/py/snbtlib.svg)](https://badge.fury.io/py/snbtlib)\n\n## Installation\n```\npip install snbtlib\n```\n\n## Usage\n```python\nimport snbtlib\nfrom pathlib import Path\n\n# Reading Text to JSON\njson = snbtlib.loads(Path('quest.snbt').read_text(encoding='utf-8'))\n\n# Dumping JSON to Text\ntext = snbtlib.dumps(json, compact=False) # When compact is True, the output will be compatible with Version 1.12 and below\nPath('quest.snbt').write_text(text, encoding='utf-8')\n```\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "a formatter for snbt from minecraft",
"version": "1.0.2",
"project_urls": null,
"split_keywords": [
"minecraft"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9e37c09ee97fd96fc0f29d296bbb2da2e6b153b27ab819029e5abdd50fbf9366",
"md5": "1653da18897d353e40573e8811eac4c3",
"sha256": "70502bb03e9f9b7c011dad6f391f47689d26babcdedd3390743e101755fb6ddf"
},
"downloads": -1,
"filename": "snbtlib-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1653da18897d353e40573e8811eac4c3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4600,
"upload_time": "2023-09-12T02:55:37",
"upload_time_iso_8601": "2023-09-12T02:55:37.540323Z",
"url": "https://files.pythonhosted.org/packages/9e/37/c09ee97fd96fc0f29d296bbb2da2e6b153b27ab819029e5abdd50fbf9366/snbtlib-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ed8935dffdded34880e1bddc21e4e314f18b47fcf4b5448a8989326d58a8f7e0",
"md5": "cad24151c1dc5c01aeb00b67a94b9acf",
"sha256": "327e9615adee725fec36792e1f5acfd9caec7b6e0666a1ca9cb68de4b03fde50"
},
"downloads": -1,
"filename": "snbtlib-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "cad24151c1dc5c01aeb00b67a94b9acf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4390,
"upload_time": "2023-09-12T02:55:39",
"upload_time_iso_8601": "2023-09-12T02:55:39.449079Z",
"url": "https://files.pythonhosted.org/packages/ed/89/35dffdded34880e1bddc21e4e314f18b47fcf4b5448a8989326d58a8f7e0/snbtlib-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-12 02:55:39",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "snbtlib"
}