{ "info": { "author": "Szero", "author_email": "singleton@tfwno.gf", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Natural Language :: English", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "===========\ntweetmagick\n===========\nGenerate images with tweet-like appearance\n\nInstallation\n------------\n::\n\n pip3 install tweetmagick\n\nExamples\n--------\n\nDisplaying the image and quitting without saving it can be done like so:\n\n.. code-block:: python\n\n from tweetmagick import TweetGenerator\n\n name = \"harold\"\n longname = \"stockmaster\"\n avatar = \"harold.jpg\"\n text = \"feeling pompous today, might delete later\"\n with TweetGenerator(name, longname, avatar, text) as tg:\n tg.tweetgen(debug=True)\n\n\n``tweetgen`` method returns BytesIO object with png binary blob.\nBelow is the code that will save your image to a file:\n\n.. code-block:: python\n\n from shutil import copyfileobj\n\n with TweetGenerator(name, longname, avatar, text, theme=\"light\") as tg:\n with open(\"haroldtweets.png\", \"wb\") as tweet:\n copyfileobj(tg.tweetgen(), tweet)\n\nResults in :\n\n.. image:: haroldtweets.png\n :align: left\n\n\nWith ``dark`` theme option:\n\n.. image:: haroldtweetsduringnight.png\n :align: left\n\n\nTODO\n~~~~\nImplement some streamlined method for embedding images in tweets.\n\nAlso some method for reply/quote images", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Szero/tweetmagick", "keywords": "", "license": "ISC", "maintainer": "", "maintainer_email": "", "name": "tweetmagick", "package_url": "https://pypi.org/project/tweetmagick/", "platform": "", "project_url": "https://pypi.org/project/tweetmagick/", "project_urls": { "Homepage": "https://github.com/Szero/tweetmagick" }, "release_url": "https://pypi.org/project/tweetmagick/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "Create images that look like tweets", "version": "0.2.1" }, "last_serial": 5468655, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "643ac2e8794feb08fcb80aae16b0e76d", "sha256": "34c29b07f81e278e90e066f1c93fd593014ae18bb3007a69c04caabb19a47a14" }, "downloads": -1, "filename": "tweetmagick-0.1.tar.gz", "has_sig": false, "md5_digest": "643ac2e8794feb08fcb80aae16b0e76d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3885, "upload_time": "2019-05-10T15:32:58", "url": "https://files.pythonhosted.org/packages/89/4c/af2c8cb69aba06f256501dc137d99e327447d23cee01bf4a4e09ef223361/tweetmagick-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "451ab384190b2fe3b36054b6d2967b71", "sha256": "c373dec5ef5cb3e70d69bccf3b0d820572319badf7618ae7363b014ee25223dd" }, "downloads": -1, "filename": "tweetmagick-0.2.tar.gz", "has_sig": false, "md5_digest": "451ab384190b2fe3b36054b6d2967b71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4379, "upload_time": "2019-05-13T04:28:52", "url": "https://files.pythonhosted.org/packages/e9/cb/5c0fc1c3e073f725044017f0514524e3503808227f5075754ba297ccc8ed/tweetmagick-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "506ca978b6c61f5488f903e42708fcc1", "sha256": "d61633457b533132ab3addd76d563a152404a55a832ba47d082fa4f140c3f77c" }, "downloads": -1, "filename": "tweetmagick-0.2.1.tar.gz", "has_sig": false, "md5_digest": "506ca978b6c61f5488f903e42708fcc1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4384, "upload_time": "2019-06-30T19:51:42", "url": "https://files.pythonhosted.org/packages/50/5f/2189babd7ef8d9d64f2ec42089f6fb904a82abb079a269e8a84c66ace9d2/tweetmagick-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "506ca978b6c61f5488f903e42708fcc1", "sha256": "d61633457b533132ab3addd76d563a152404a55a832ba47d082fa4f140c3f77c" }, "downloads": -1, "filename": "tweetmagick-0.2.1.tar.gz", "has_sig": false, "md5_digest": "506ca978b6c61f5488f903e42708fcc1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4384, "upload_time": "2019-06-30T19:51:42", "url": "https://files.pythonhosted.org/packages/50/5f/2189babd7ef8d9d64f2ec42089f6fb904a82abb079a269e8a84c66ace9d2/tweetmagick-0.2.1.tar.gz" } ] }