{ "info": { "author": "DerpyChap", "author_email": "holla@derpychap.co.uk", "bugtrack_url": null, "classifiers": [], "description": "# Tom Scott Banhammer Generator\n_Generates GIFs based on Tom Scott's Banhammer_\n\n![](https://i.imgur.com/l1CdgDm.gif)\n\nWant to use this in any project using Docker? Get the Docker container here: https://gitlab.com/nerd3-servers/banhammer-generator\n\n## Installing\n**Python 3.5+ is required**\n\nTo install the library, simply run the following command:\n\n```\npip install banhammer\n```\n\nIf you would like to use a `pillow` drop-in replacement, such as `pillow-simd`, then install that prior to installing the banhammer. All requirements should automatically install.\n\n## Usage\n`banhammer.Generator()` is the main generator object. To generate an image, use `Generator().image_gen(str)` where `str` is your string of choice. This will return an `io.BytesIO()` object, which you can then manually write to a file or upload somewhere.\n\n### Example\nThe following example generates a GIF and saves it to a file called `output.gif`:\n\n```python\nfrom banhammer import Generator\n\n# Setup the generator\ng = Generator()\n\n# Generate the GIF (returns a BytesIO object)\nim = g.image_gen('Example')\n\n# Write the image to a file called output.gif\nf = open('output.gif', 'wb')\nf.write(im.read())\nf.close()\n```\n\nThe resulting GIF looks something like this:\n\n![](https://i.imgur.com/TUOye1z.gif)\n\n## Font Licensing\nThe font file included is a modified version of the Bungee Regular font. The font has been modified to include missing unicode characters and emoji provided by other fonts. The licensing and source information can be found below.\n\n| Font | Designers | Licenses |\n| ---- | ---------------- | ------- |\n|[Bungee Regular](https://fonts.google.com/specimen/Bungee)|[David Jonathan Ross](http://www.djr.com/)|[SIL Open Font License](https://github.com/DerpyChap/banhammer/blob/master/banhammer/assets/Bungee-LICENSE.txt)\n|[Twitter Color Emoji SVGinOT Font](https://github.com/twitter/twemoji)|[Brad Erickson](https://keybase.io/bde), [Joe Loughry](https://cnadocs.com/), Terence Eden, [Twitter, Inc](https://about.twitter.com/en_us/company.html) and collaborators|[Massachusetts Institute of Technology License](https://github.com/DerpyChap/banhammer/blob/master/banhammer/assets/twitter-color-emoji-LICENSE.txt)
[Creative Commons Attribution 4.0 International](https://github.com/DerpyChap/banhammer/blob/master/banhammer/assets/twitter-color-emoji-LICENSE.txt#L24)\n|[DejaVu Sans Mono](https://dejavu-fonts.github.io/)|[\u0160t\u011bp\u00e1n Roh](http://alivebutsleepy.srnet.cz/) and [authors](https://dejavu-fonts.github.io/Authors.html), [Bitstream, Inc](https://www.monotype.com/), [Tavmjung Bah](https://tavmjong.free.fr/)|[Massachusetts Institute of Technology License](https://github.com/DerpyChap/banhammer/blob/master/banhammer/assets/DejaVu-LICENSE.txt)\n|[Tetsubin Gothic](http://fontna.com/freefont/?p=12)|[\u30d5\u30a9\u30f3\u30c8\u306a\u81ea\u7531](http://fontna.com/)|[Apache License 2.0](https://github.com/DerpyChap/banhammer/blob/master/banhammer/assets/Tetsubin-LICENSE.txt)\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/DerpyChap/banhammer", "keywords": "", "license": "ISC", "maintainer": "", "maintainer_email": "", "name": "banhammer", "package_url": "https://pypi.org/project/banhammer/", "platform": "", "project_url": "https://pypi.org/project/banhammer/", "project_urls": { "Homepage": "https://github.com/DerpyChap/banhammer" }, "release_url": "https://pypi.org/project/banhammer/0.1.2/", "requires_dist": [ "pillow", "imageio", "numpy" ], "requires_python": "", "summary": "Generates GIFs based on Tom Scott's Banhammer", "version": "0.1.2" }, "last_serial": 4960251, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a8bf9357a02624f6d51f597dc37cc9f1", "sha256": "2ffabf9f0c03803c39ec73d23b2081e16c71b955a5702b9cbb028a07b948ab28" }, "downloads": -1, "filename": "banhammer-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a8bf9357a02624f6d51f597dc37cc9f1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14245125, "upload_time": "2019-03-19T18:02:09", "url": "https://files.pythonhosted.org/packages/4d/55/abd1d7644d089eaf93692d28e87c5cab1b36b9e2c8aa1c083254ff81cf59/banhammer-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "27f8841a57efee47eb741beea459a8c5", "sha256": "91bebfdce4ec2cc1057331faa43f526dc18c662ababe1b213688cece907cd7cb" }, "downloads": -1, "filename": "banhammer-0.1.0.tar.gz", "has_sig": false, "md5_digest": "27f8841a57efee47eb741beea459a8c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14236804, "upload_time": "2019-03-19T18:02:22", "url": "https://files.pythonhosted.org/packages/c3/3b/2fb0ab4154425325c7a966a76ed4d73dfd87f21d10df78d96c8393784d9c/banhammer-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "aacff25c10c46d32ef2b0483e5a5dd2f", "sha256": "df8f0d4ca1228e824a0744e592aee2ab9ec64e6072db15f154c1a8a82c78e580" }, "downloads": -1, "filename": "banhammer-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "aacff25c10c46d32ef2b0483e5a5dd2f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14245154, "upload_time": "2019-03-19T18:13:19", "url": "https://files.pythonhosted.org/packages/08/0a/9833725c61aa455e48e0e13ce89be0879384232cdc5899dd7a59a78ec154/banhammer-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41b35810b64b2bb6d281bc4af37b7c80", "sha256": "dce2e00f48a0e9a31b3e44229f5720a7a1a2bd39b6e182d977d8b077d58fad02" }, "downloads": -1, "filename": "banhammer-0.1.1.tar.gz", "has_sig": false, "md5_digest": "41b35810b64b2bb6d281bc4af37b7c80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14236892, "upload_time": "2019-03-19T18:13:23", "url": "https://files.pythonhosted.org/packages/f5/80/6cab5c9c0fc0333f3c04bfa77b44846c041cd7cf3a0659d3bde037b72c0a/banhammer-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "61bf75c273a451e8dcfa4e626da40c26", "sha256": "9668f7c0924d25a0ef8da6eb7f420fbcc90810e518360fcea70ce61e0f9ae0e0" }, "downloads": -1, "filename": "banhammer-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "61bf75c273a451e8dcfa4e626da40c26", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14245235, "upload_time": "2019-03-19T18:36:17", "url": "https://files.pythonhosted.org/packages/5b/45/6700a8112a422d6972793ef2dc01ea1d5c9411c8a60853f5b2cb3ba2a1a7/banhammer-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9f5d075aab79100bd919b992f420062c", "sha256": "2d041f04ee041740e9b344f98bb785aae4654b6cd056463e5884b7b08ca4e097" }, "downloads": -1, "filename": "banhammer-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9f5d075aab79100bd919b992f420062c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14237002, "upload_time": "2019-03-19T18:36:22", "url": "https://files.pythonhosted.org/packages/a1/1e/ba44448fef72e0949dc0dfc58d3426b0f5ea22b28667b7137d763ec35dc4/banhammer-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "61bf75c273a451e8dcfa4e626da40c26", "sha256": "9668f7c0924d25a0ef8da6eb7f420fbcc90810e518360fcea70ce61e0f9ae0e0" }, "downloads": -1, "filename": "banhammer-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "61bf75c273a451e8dcfa4e626da40c26", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14245235, "upload_time": "2019-03-19T18:36:17", "url": "https://files.pythonhosted.org/packages/5b/45/6700a8112a422d6972793ef2dc01ea1d5c9411c8a60853f5b2cb3ba2a1a7/banhammer-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9f5d075aab79100bd919b992f420062c", "sha256": "2d041f04ee041740e9b344f98bb785aae4654b6cd056463e5884b7b08ca4e097" }, "downloads": -1, "filename": "banhammer-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9f5d075aab79100bd919b992f420062c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14237002, "upload_time": "2019-03-19T18:36:22", "url": "https://files.pythonhosted.org/packages/a1/1e/ba44448fef72e0949dc0dfc58d3426b0f5ea22b28667b7137d763ec35dc4/banhammer-0.1.2.tar.gz" } ] }