{ "info": { "author": "Colin S.", "author_email": "3526918+cbs228@users.noreply.github.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# nbtschematic\n\n> A simple [nbtlib](https://github.com/vberlier/nbtlib) Schema for reading or\n> writing Schematic files for\n> [MCEdit](https://github.com/Podshot/MCEdit-Unified) and other world editors.\n\n## Installation\n\nPython 3.6 or higher is required.\n\n```bash\npip3 install nbtschematic\n```\n\n## Examples\n\nTo load an existing MCEdit or other schematic file from disk, run:\n\n```python\nfrom nbtschematic import SchematicFile\nsf = SchematicFile.load('tests/test_schematic/simple.schematic')\nprint(\"The block at Y=%d, Z=%d, X=%d has block ID %d\" %\n(2, 3, 0, sf.blocks[2, 3, 0]))\n```\n\nTo generate a schematic file in python, run:\n\n```python\nfrom nbtschematic import SchematicFile\nsf = SchematicFile(shape=(10, 8, 4))\nassert sf.blocks.shape == (10, 8, 4)\nsf.blocks[2, 3, 0] = 42\nsf.save('example.schematic')\n```\n\nThe size of the schematic should be defined at construction time. Resizing it\nwill clear the blocks and block data.\n\nOther fields of interest include:\n\n* `data`: Block data for each and every block\n* `entities`: Everything that is not a block\n* `blockentities`: Extended metadata for blocks\n\n## Further Reading\n\nFor more information about the underlying objects, see `nbtlib`'s excellent\n[examples](https://github.com/vberlier/nbtlib/blob/master/docs/Usage.ipynb)\npage.\n\n----\n\nLicense - [MIT](https://github.com/cbs228/nbtschematic/blob/master/LICENSE)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cbs228/nbtschematic", "keywords": "nbt schema minecraft mcschematic schematic package library", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nbtschematic", "package_url": "https://pypi.org/project/nbtschematic/", "platform": "any", "project_url": "https://pypi.org/project/nbtschematic/", "project_urls": { "Homepage": "https://github.com/cbs228/nbtschematic" }, "release_url": "https://pypi.org/project/nbtschematic/0.1.1.post1/", "requires_dist": [ "nbtlib (~=1.2.1)", "numpy (~=1.14.5)" ], "requires_python": ">=3.6", "summary": "A simple schematic file reader for nbtlib", "version": "0.1.1.post1" }, "last_serial": 4400617, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "20a1fbbb43e0bb3dc99c423608ddd26c", "sha256": "5b517f7c05cd79a1e754a8315a12e91a074fb94b9a19875ea04a1dc90fff708e" }, "downloads": -1, "filename": "nbtschematic-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "20a1fbbb43e0bb3dc99c423608ddd26c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6120, "upload_time": "2018-10-14T21:53:02", "url": "https://files.pythonhosted.org/packages/0f/08/51e15d0b9a1b9530d81ff8ca9bc2d7c49465d9bb774df29c66f4f0ef9e2f/nbtschematic-0.1.0-py3-none-any.whl" } ], "0.1.1.post1": [ { "comment_text": "", "digests": { "md5": "20946c590877da90c57e02a2b2e0ffeb", "sha256": "f0e344b1aa4e3d339146f1607a7468ac0f89dc3ac2f1c262196fec09443c58ce" }, "downloads": -1, "filename": "nbtschematic-0.1.1.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "20946c590877da90c57e02a2b2e0ffeb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6249, "upload_time": "2018-10-21T22:08:10", "url": "https://files.pythonhosted.org/packages/eb/71/7b19376b98340943471ffd913e81985009a95723880f45f95236cd9cde2d/nbtschematic-0.1.1.post1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "da06d704471156afd45700a6087cbe21", "sha256": "b81b763b3127cfa1308ee671d2fd84ab4bc5736bee3f66b6baa4bb6d3543204b" }, "downloads": -1, "filename": "nbtschematic-0.1.1.post1.tar.gz", "has_sig": false, "md5_digest": "da06d704471156afd45700a6087cbe21", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5730, "upload_time": "2018-10-21T22:08:11", "url": "https://files.pythonhosted.org/packages/89/77/334c4d84c9d40c727c3bf4d75c1e3ecd241750f62542fa60f75bcd474522/nbtschematic-0.1.1.post1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "20946c590877da90c57e02a2b2e0ffeb", "sha256": "f0e344b1aa4e3d339146f1607a7468ac0f89dc3ac2f1c262196fec09443c58ce" }, "downloads": -1, "filename": "nbtschematic-0.1.1.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "20946c590877da90c57e02a2b2e0ffeb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6249, "upload_time": "2018-10-21T22:08:10", "url": "https://files.pythonhosted.org/packages/eb/71/7b19376b98340943471ffd913e81985009a95723880f45f95236cd9cde2d/nbtschematic-0.1.1.post1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "da06d704471156afd45700a6087cbe21", "sha256": "b81b763b3127cfa1308ee671d2fd84ab4bc5736bee3f66b6baa4bb6d3543204b" }, "downloads": -1, "filename": "nbtschematic-0.1.1.post1.tar.gz", "has_sig": false, "md5_digest": "da06d704471156afd45700a6087cbe21", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5730, "upload_time": "2018-10-21T22:08:11", "url": "https://files.pythonhosted.org/packages/89/77/334c4d84c9d40c727c3bf4d75c1e3ecd241750f62542fa60f75bcd474522/nbtschematic-0.1.1.post1.tar.gz" } ] }