{ "info": { "author": "Timoth\u00e9e Mazzucotelli", "author_email": "pawamoy@pm.me", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "\n\n# ansito\n[![pipeline status](https://gitlab.com/pawamoy/ansito/badges/master/pipeline.svg)](https://gitlab.com/pawamoy/ansito/pipelines)\n[![coverage report](https://gitlab.com/pawamoy/ansito/badges/master/coverage.svg)](https://gitlab.com/pawamoy/ansito/commits/master)\n[![documentation](https://img.shields.io/readthedocs/ansito.svg?style=flat)](https://ansito.readthedocs.io/en/latest/index.html)\n[![pypi version](https://img.shields.io/pypi/v/ansito.svg)](https://pypi.org/project/ansito/)\n\nTranslate ANSI codes to any other format.\n\nCurrently, only Conky format is supported.\n\n## Requirements\nansito requires Python 3.6 or above.\n\n
\nTo install Python 3.6, I recommend using pyenv.\n\n```bash\n# install pyenv\ngit clone https://github.com/pyenv/pyenv ~/.pyenv\n\n# setup pyenv (you should also put these three lines in .bashrc or similar)\nexport PATH=\"${HOME}/.pyenv/bin:${PATH}\"\nexport PYENV_ROOT=\"${HOME}/.pyenv\"\neval \"$(pyenv init -)\"\n\n# install Python 3.6\npyenv install 3.6.8\n\n# make it available globally\npyenv global system 3.6.8\n```\n
\n\n## Installation\nWith `pip`:\n```bash\npython3.6 -m pip install ansito\n```\n\nWith [`pipx`](https://github.com/cs01/pipx):\n```bash\n# install pipx with the recommended method\ncurl https://raw.githubusercontent.com/cs01/pipx/master/get-pipx.py | python3\n\npipx install --python python3.6 ansito\n```\n\n## Usage (as a library)\nTODO\n\n## Usage (command-line)\n```\nusage: ansito [-h] FILENAME\n\npositional arguments:\n FILENAME File to translate, or - for stdin.\n\noptional arguments:\n -h, --help show this help message and exit\n\n```\n\nExample:\n\n```bash\ncommand-that-output-colors | ansito -\n```\n\nReal-word example with `taskwarrior` in a Conky configuration file:\n\n```lua\n${texecpi 60 flock ~/.task task limit:10 rc.defaultwidth:80 rc._forcecolor:on rc.verbose:affected,blank list | ansito - | sed -r 's/([^ ])#/\\1\\\\#/g'\n```\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/pawamoy/ansito", "keywords": "", "license": "", "maintainer": "Timoth\u00e9e Mazzucotelli", "maintainer_email": "pawamoy@pm.me", "name": "ansito", "package_url": "https://pypi.org/project/ansito/", "platform": "", "project_url": "https://pypi.org/project/ansito/", "project_urls": { "Homepage": "https://github.com/pawamoy/ansito", "Repository": "https://github.com/pawamoy/ansito" }, "release_url": "https://pypi.org/project/ansito/0.1.0/", "requires_dist": null, "requires_python": ">=3.6,<4.0", "summary": "Translate ANSI codes to any other format.", "version": "0.1.0" }, "last_serial": 4926574, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b11c2f25e91fbb7b4b5bd1fed7fc9266", "sha256": "103add704d90c897b8fc6a9de1aa7b0c975a76cf1ec54b8c218771aa188e36ae" }, "downloads": -1, "filename": "ansito-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b11c2f25e91fbb7b4b5bd1fed7fc9266", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 25719, "upload_time": "2019-03-11T19:11:56", "url": "https://files.pythonhosted.org/packages/7f/86/440b2cb4a4a9f826ad6fa68857e3c450561b0b75a17a4c3791e9755e42d6/ansito-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41ebb2fdc8a4a801b9fcd78994d70179", "sha256": "8119a2deee9a69d2a6549784f237a953c594f9712a8dd0b1879facedc35ec406" }, "downloads": -1, "filename": "ansito-0.1.0.tar.gz", "has_sig": false, "md5_digest": "41ebb2fdc8a4a801b9fcd78994d70179", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 8595, "upload_time": "2019-03-11T19:11:58", "url": "https://files.pythonhosted.org/packages/ba/d1/d4f0a1d6f651fbe396b5b61fe2d569c603408c98b347b3774ce66c4761a4/ansito-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b11c2f25e91fbb7b4b5bd1fed7fc9266", "sha256": "103add704d90c897b8fc6a9de1aa7b0c975a76cf1ec54b8c218771aa188e36ae" }, "downloads": -1, "filename": "ansito-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b11c2f25e91fbb7b4b5bd1fed7fc9266", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 25719, "upload_time": "2019-03-11T19:11:56", "url": "https://files.pythonhosted.org/packages/7f/86/440b2cb4a4a9f826ad6fa68857e3c450561b0b75a17a4c3791e9755e42d6/ansito-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41ebb2fdc8a4a801b9fcd78994d70179", "sha256": "8119a2deee9a69d2a6549784f237a953c594f9712a8dd0b1879facedc35ec406" }, "downloads": -1, "filename": "ansito-0.1.0.tar.gz", "has_sig": false, "md5_digest": "41ebb2fdc8a4a801b9fcd78994d70179", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 8595, "upload_time": "2019-03-11T19:11:58", "url": "https://files.pythonhosted.org/packages/ba/d1/d4f0a1d6f651fbe396b5b61fe2d569c603408c98b347b3774ce66c4761a4/ansito-0.1.0.tar.gz" } ] }