{ "info": { "author": "Masahiro Wada", "author_email": "argon.argon.argon@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Intended Audience :: Developers", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development" ], "description": "# teimpy\n[![PyPI version](https://badge.fury.io/py/teimpy.svg)](https://badge.fury.io/py/teimpy)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/amplify-education/serverless-domain-manager/master/LICENSE)\n[![Build Status](https://travis-ci.org/ar90n/teimpy.svg?branch=master)](https://travis-ci.org/ar90n/teimpy)\n\nPython library for displaying image on terminal.\n\n## Installation\n\n```bash\n$ pip\n```\n\n## Example\n\n```python\nimport numpy as np\nfrom teimpy import get_drawer, Mode\n\nR = np.array([1.0, 0, 0])\nG = np.array([0, 1.0, 0])\nB = np.array([0, 0, 1.0])\n\ndef _get_color(x, y):\n tmp = (y * (1.0 - x) * R + (1.0 -y ) * x * G + (1.0 - y) * (1.0 - x) * B)\n return (255 * tmp).astype(np.uint8)\n\ntics = np.linspace(0, 1, 128)\nxs, ys = np.meshgrid(tics, tics)\nbuffer = np.vectorize(_get_color, signature='(),()->(3)')(xs, ys)\nprint(get_drawer(Mode.ITERM2_INLINE_IMAGE).draw(buffer))\n```\n![Result of doit.py](https://github.com/ar90n/teimpy/raw/docs/doit.png)\n\n\n## Feature\n\n* Resize images to fit terminal size.\n* Drawing with iterm2 inline image.\n![Drawing with iterm2 inline image](https://github.com/ar90n/teimpy/raw/docs/inline_image.png)\n* Drawing with Braille fonts.\n![Drawing with Braille ofnts](https://github.com/ar90n/teimpy/raw/docs/braille.png)\n* Drawing with half block fonts.\n![Drawing with half block fonts](https://github.com/ar90n/teimpy/raw/docs/half_block.png)\n\n\n## License\nThis software is released under the MIT License, see [LICENSE](LICENSE).\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ar90n/teimpy", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "teimpy", "package_url": "https://pypi.org/project/teimpy/", "platform": "", "project_url": "https://pypi.org/project/teimpy/", "project_urls": { "Homepage": "https://github.com/ar90n/teimpy" }, "release_url": "https://pypi.org/project/teimpy/0.0.2/", "requires_dist": [ "numpy", "pillow", "pysixel", "pytest ; extra == 'develop'", "setuptools ; extra == 'develop'", "autopep8 ; extra == 'develop'" ], "requires_python": "", "summary": "Python libray for displaying images on terminal", "version": "0.0.2" }, "last_serial": 5184341, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "0afd88ffa2262046450a147a957cde1a", "sha256": "e56e0e3ae90eef8b9b26b4011d2991f6859b5296519c56337ebfc8f33d7b578b" }, "downloads": -1, "filename": "teimpy-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0afd88ffa2262046450a147a957cde1a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9012, "upload_time": "2018-11-18T17:45:59", "url": "https://files.pythonhosted.org/packages/1d/69/f8fc9ff066de827ff53e952eb70c8c8401dfa13f5a671ec4284145251bc1/teimpy-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2c92d6c8b7713e02eb0f7b3e98aab253", "sha256": "e80f6b5820049a708e1ec8548cdb4c71c71af4673b848f02ac41c9e53218b75c" }, "downloads": -1, "filename": "teimpy-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2c92d6c8b7713e02eb0f7b3e98aab253", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6020, "upload_time": "2018-11-18T17:46:02", "url": "https://files.pythonhosted.org/packages/e1/0c/48f7cde43e771fc5c3c26b6bc39ba0fd991647b8f0d232e62ce5d0eb8359/teimpy-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "858d110818a24c487c421c2e505fa6db", "sha256": "c20449fff5285483cb6f5160822e985381c98a9d347c08bfec29d45c2bac3b33" }, "downloads": -1, "filename": "teimpy-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "858d110818a24c487c421c2e505fa6db", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9655, "upload_time": "2019-04-24T20:32:02", "url": "https://files.pythonhosted.org/packages/0f/da/4e25eb54b6c927956325ccab3cc388ce9329a8167eec85a2862ad3bcb9f0/teimpy-0.0.2-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "858d110818a24c487c421c2e505fa6db", "sha256": "c20449fff5285483cb6f5160822e985381c98a9d347c08bfec29d45c2bac3b33" }, "downloads": -1, "filename": "teimpy-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "858d110818a24c487c421c2e505fa6db", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9655, "upload_time": "2019-04-24T20:32:02", "url": "https://files.pythonhosted.org/packages/0f/da/4e25eb54b6c927956325ccab3cc388ce9329a8167eec85a2862ad3bcb9f0/teimpy-0.0.2-py3-none-any.whl" } ] }