# MineBannerLib
Python library for drawing banners.
## How it works?
Draws a banner image from the received nbts. The flag will be saved to the _**buildbanner**_ root folder.
## Installation
```
pip install minebannerlib
```
or
```
python -m pip install minebannerlib
```
## Create a banner
To do this, call the `create_banner()` function, to which you need to pass the _**NBTS**_, _**name of the flag**_ and the _**base color**_
## Example create banner from nbts
```python
from MineBannerLib import *
nbts = '{BlockEntityTag:{Patterns:[{Color:14,Pattern:"cre"},{Color:4,Pattern:"sku"}]}}'
color_base = 15
name = 'test'
def main():
create_banner(name, nbts, color_base)
if __name__ == '__main__':
main()
```
## You can create banner from list
You must pass the second argument to `create_banner()` a list containing elements of type `Layer`, as in the example below
```python
from MineBannerLib import *
parts = [Layer('mc', 2), Layer('hh', 1)]
color_base = 15
name = 'test'
def main():
create_banner(name, parts, color_base)
if __name__ == '__main__':
main()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/saddydead1/minebannerlib",
"name": "minebannerlib",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "minecraft banner python pil",
"author": "saddydead1",
"author_email": "saddydead1@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e4/f6/fc71ef745b374dc064dc1e7039e913b18429e3ffee2bdc06c235b8fad034/minebannerlib-0.1.0.tar.gz",
"platform": null,
"description": "# MineBannerLib\n\nPython library for drawing banners.\n\n## How it works?\n\nDraws a banner image from the received nbts. The flag will be saved to the _**buildbanner**_ root folder.\n\n## Installation\n\n```\npip install minebannerlib\n```\n\nor\n\n```\npython -m pip install minebannerlib\n```\n\n## Create a banner\n\nTo do this, call the `create_banner()` function, to which you need to pass the _**NBTS**_, _**name of the flag**_ and the _**base color**_\n\n## Example create banner from nbts\n\n```python\nfrom MineBannerLib import *\n\n\nnbts = '{BlockEntityTag:{Patterns:[{Color:14,Pattern:\"cre\"},{Color:4,Pattern:\"sku\"}]}}'\ncolor_base = 15\nname = 'test'\n\n\ndef main():\n create_banner(name, nbts, color_base)\n\n\nif __name__ == '__main__':\n main()\n```\n\n## You can create banner from list \nYou must pass the second argument to `create_banner()` a list containing elements of type `Layer`, as in the example below\n\n```python\nfrom MineBannerLib import *\n\nparts = [Layer('mc', 2), Layer('hh', 1)]\ncolor_base = 15\nname = 'test'\n\n\ndef main():\n create_banner(name, parts, color_base)\n\n\nif __name__ == '__main__':\n main()\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Lib for create minecraft banner image",
"version": "0.1.0",
"project_urls": {
"GitHub": "https://github.com/saddydead1/minebannerlib",
"Homepage": "https://github.com/saddydead1/minebannerlib"
},
"split_keywords": [
"minecraft",
"banner",
"python",
"pil"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f3faef62b2220cb2a0fd741be91fc3cf5d2ca54d050bf05daf61c53efad2a66a",
"md5": "9b647d01c18f226601660afb3fa846b5",
"sha256": "a46c1e57f40b362fd3eee3ab820fdd992c32650bd4af2e2dbce60c34c8e1e53b"
},
"downloads": -1,
"filename": "minebannerlib-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9b647d01c18f226601660afb3fa846b5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 55065,
"upload_time": "2024-06-05T20:58:14",
"upload_time_iso_8601": "2024-06-05T20:58:14.579535Z",
"url": "https://files.pythonhosted.org/packages/f3/fa/ef62b2220cb2a0fd741be91fc3cf5d2ca54d050bf05daf61c53efad2a66a/minebannerlib-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e4f6fc71ef745b374dc064dc1e7039e913b18429e3ffee2bdc06c235b8fad034",
"md5": "ab52ff8fc1ca85836de7407f96fbce78",
"sha256": "b0a85ec67f0a11a542a4a8025e5b721e6a0894ffdea7ae7dbf708ee57da13b96"
},
"downloads": -1,
"filename": "minebannerlib-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "ab52ff8fc1ca85836de7407f96fbce78",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 42162,
"upload_time": "2024-06-05T20:58:15",
"upload_time_iso_8601": "2024-06-05T20:58:15.660308Z",
"url": "https://files.pythonhosted.org/packages/e4/f6/fc71ef745b374dc064dc1e7039e913b18429e3ffee2bdc06c235b8fad034/minebannerlib-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-05 20:58:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "saddydead1",
"github_project": "minebannerlib",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "nbtlib",
"specs": []
},
{
"name": "multipledispatch",
"specs": []
},
{
"name": "pillow",
"specs": []
}
],
"lcname": "minebannerlib"
}