{ "info": { "author": "Mehmet Ozan Unal", "author_email": "mehmetozanunal@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation", "Topic :: Software Development :: Libraries" ], "description": "# Img2sh\n\nImg2sh is a tool to show images directly on terminal.\nFor color images 256 xterm color support is required. This script basically resize the image with antialliasing and quantized its colors to xterm color pallette.\n\n\n### Demo\n\nTesting the package is super easy. Install and run.\n\n```\npip install img2sh --user\nimg2sh demo.jpeg\n```\n\nResult:\n\n![](https://user-images.githubusercontent.com/13440502/52919655-aa89d400-3315-11e9-8c4a-7a7e057b8fa4.png) \n\n\n\n### Demo with interactive mode\n\n```\nimg2sh demo.jpeg -w 80 -i\n\nq: quit z: zoom+ x: zoom- c: reset \narrow keys for navigation \ncmd: q\n```\n\n![](https://user-images.githubusercontent.com/13440502/59120360-e34dc780-895d-11e9-8b2a-1d7ea5b25fe4.gif)\n\n\n\nFor detailed usage arguments:\n\n```\n$ python img2sh/cli.py --help\n\nusage: cli.py [-h] [-w WIDTH] [-i] Image\n\nShow images directly on terminal.\n\npositional arguments:\n Image the directory of the image which will be opened\n\noptional arguments:\n -h, --help show this help message and exit\n -w WIDTH, --width WIDTH\n image width on the terminal\n -i, --interactive open image in interactive mode\n ```\n\n### Installing\n\nIt can be easily install using pip.\n\n```\npip install img2sh --user\n```\n\nInstalling from source:\n\n```\ngit clone https://github.com/mozanunal/img2sh\ncd img2sh\npip install -r requirements.txt\npython setup.py install\n```\n\n\n### Development\n\n#### Setup development environment\n\nPipenv is using for environment management. \n\n```\npipenv install --dev\n```\n\nFollowing command should be executed to create interactive shell in this pipenv.\n```\npipenv shell\n```\n\n#### Development\n\nIn this repo issue based development is active. For any problems or new enhancements please open a issue.\n\nAutopep8 is used for formatting.\nPylint is used for linting.\n\n#### Deployment\n\nThe following 2 commands are required to deploy over pypi.\n```\npython setup.py sdist bdist_wheel\ntwine upload --repository-url https://upload.pypi.org/legacy/ dist/*\n```\n\n### Licence\n\nMIT\n\n### Acknowledges\nThis package is developed using:\n- [Pillow](https://pillow.readthedocs.io/en/stable/installation.html)\n- [colored](https://gitlab.com/dslackw/colored)\n\n\n### Contributors\n- [mozanunal](https://github.com/mozanunal)\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/mozanunal/img2sh", "keywords": "", "license": "MIT", "maintainer": "Mehmet Ozan Unal", "maintainer_email": "mehmetozanunal@gmail.com", "name": "img2sh", "package_url": "https://pypi.org/project/img2sh/", "platform": "all", "project_url": "https://pypi.org/project/img2sh/", "project_urls": { "Homepage": "https://github.com/mozanunal/img2sh" }, "release_url": "https://pypi.org/project/img2sh/0.1.8/", "requires_dist": [ "colored (==1.3.93)", "Pillow (==5.1.0)", "six (==1.12.0)", "numpy (==1.16.4)" ], "requires_python": "", "summary": "Show images directly on terminal using Xterm colors.", "version": "0.1.8" }, "last_serial": 5660355, "releases": { "0.1.4": [ { "comment_text": "", "digests": { "md5": "e78aa55b1239126a3ab39a41f7a020d6", "sha256": "357d5c8eea9db45730aed638a6ec2baccec2ca359dd145310eb29038941e0a73" }, "downloads": -1, "filename": "img2sh-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "e78aa55b1239126a3ab39a41f7a020d6", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5801, "upload_time": "2019-02-17T22:03:23", "url": "https://files.pythonhosted.org/packages/99/c4/cdb927f3146efe930f19731d90f27047ce7b817b8e44964a72034d98b486/img2sh-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7cd8ab760b4a90d83b3dc5247d1495f1", "sha256": "fd19f16e8358ea9bd120ef0619d6cbe6033ff32ce1e8245f0f11451dfa05b1d2" }, "downloads": -1, "filename": "img2sh-0.1.4.tar.gz", "has_sig": false, "md5_digest": "7cd8ab760b4a90d83b3dc5247d1495f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4467, "upload_time": "2019-02-17T22:03:24", "url": "https://files.pythonhosted.org/packages/7d/bf/758d5d791efc496da527285b25b6ae5472d65acdc86ce04c88c2680fa2ac/img2sh-0.1.4.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "b5af36391082e03587a82266c0cd1f62", "sha256": "8acfe15346c61e36e245a4c222ead174f4567cc4490b3381ab60ac0e2c51ee76" }, "downloads": -1, "filename": "img2sh-0.1.8-py2-none-any.whl", "has_sig": false, "md5_digest": "b5af36391082e03587a82266c0cd1f62", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7112, "upload_time": "2019-08-10T21:40:19", "url": "https://files.pythonhosted.org/packages/4f/3b/7310c896a8be9938c48f186c2ddbff7b6eddeae4ea8c0f70f7c3c3585296/img2sh-0.1.8-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "10d01ac5dd9e9af2a69ce0b8f12af4ce", "sha256": "5e57e91effc5397cba81656eec56b050e4c1201ec70b3b0f664c73a23e643cc7" }, "downloads": -1, "filename": "img2sh-0.1.8.tar.gz", "has_sig": false, "md5_digest": "10d01ac5dd9e9af2a69ce0b8f12af4ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5661, "upload_time": "2019-08-10T21:40:21", "url": "https://files.pythonhosted.org/packages/b7/f3/47007878dacc8128eee010877983cb502d7df218e8c6941abce1d9b74235/img2sh-0.1.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b5af36391082e03587a82266c0cd1f62", "sha256": "8acfe15346c61e36e245a4c222ead174f4567cc4490b3381ab60ac0e2c51ee76" }, "downloads": -1, "filename": "img2sh-0.1.8-py2-none-any.whl", "has_sig": false, "md5_digest": "b5af36391082e03587a82266c0cd1f62", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7112, "upload_time": "2019-08-10T21:40:19", "url": "https://files.pythonhosted.org/packages/4f/3b/7310c896a8be9938c48f186c2ddbff7b6eddeae4ea8c0f70f7c3c3585296/img2sh-0.1.8-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "10d01ac5dd9e9af2a69ce0b8f12af4ce", "sha256": "5e57e91effc5397cba81656eec56b050e4c1201ec70b3b0f664c73a23e643cc7" }, "downloads": -1, "filename": "img2sh-0.1.8.tar.gz", "has_sig": false, "md5_digest": "10d01ac5dd9e9af2a69ce0b8f12af4ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5661, "upload_time": "2019-08-10T21:40:21", "url": "https://files.pythonhosted.org/packages/b7/f3/47007878dacc8128eee010877983cb502d7df218e8c6941abce1d9b74235/img2sh-0.1.8.tar.gz" } ] }