{ "info": { "author": "AdrieanKhisbe", "author_email": "adriean.khisbe@live.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: System :: Logging" ], "description": "# spinlog.py\n\n[![PyPI](https://img.shields.io/pypi/v/spinlog.svg)](https://pypi.org/project/spinlog/)\n[![Supported Python Versions](https://img.shields.io/pypi/pyversions/spinlog.svg)](https://pypi.python.org/pypi/spinlog)\n[![Build Status](https://travis-ci.org/AdrieanKhisbe/spinlog.py.svg?branch=master)](https://travis-ci.org/AdrieanKhisbe/spinlog.py)\n[![codecov](https://codecov.io/gh/AdrieanKhisbe/spinlog.py/branch/master/graph/badge.svg)](https://codecov.io/gh/AdrieanKhisbe/spinlog.py)\n\n> Spinner Logger for Python\n\n## Installation\n\nJust `pip install spinlog` and you can use it.\n\n## Usage\n\nSpinlog is build on top of [halo](https://github.com/manrajgrover/halo) providing a different API\nto interact with the spinner.\n\n### Basic Usage\n```python\nfrom spinlog import Spinner\nfrom time import sleep\n\nprint(\"About to launch Spinner\")\nwith Spinner.get(\"I'm spinning around\") as s:\n sleep(2)\n s.info(\"Here is an info message while spinning around\")\n # you can use s.warn, s.error, or s.debug\n sleep(2)\nprint(\"Spinning Over\")\n```\n\n### Advanced usage\nSpinlog is build in such a manner that you can disable the spinning animation\nand replace it with proper logging without having to change the codebase.\n\nThis is done by creating a spinner instance, potentialy configured with two logger,\nthe `concommitant_logger` to be run alongside the spinner (for logging to file for instance),\nand the `alternative_logger` to replace spinner animation and logging.\n\nA complete example can be found in [the examples folder](./examples/with_logger.py)\nHere is an except:\n```python\n# imports and logger definitions\nshould_spin = \"--no-spin\" not in sys.argv\n# Configure spinner\nspinner = Spinner(spinner=\"triangle\", is_spinning=should_spin,\n alternative_logger=stream_logger, concommitant_logger=file_logger)\n# Use spinner\nwith spinner(\"Operation in progress\") as s:\n sleep(2)\n s.info(\"Checkpoint reached\")\n sleep(2)\n```\n\n## Licence\nMIT \u00a9 [AdrieanKhisbe](https://github.com/AdrieanKhisbe)\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": "http://github.com/AdrieanKhisbe/spinlog.py", "keywords": "cli terminal log logger logging shell update animation progress", "license": "", "maintainer": "", "maintainer_email": "", "name": "spinlog", "package_url": "https://pypi.org/project/spinlog/", "platform": "", "project_url": "https://pypi.org/project/spinlog/", "project_urls": { "Homepage": "http://github.com/AdrieanKhisbe/spinlog.py" }, "release_url": "https://pypi.org/project/spinlog/0.3.0/", "requires_dist": [ "halo" ], "requires_python": "", "summary": "Spinner Logger for Python", "version": "0.3.0" }, "last_serial": 4319000, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "40d13b1c79c3abe390cffff8352d752b", "sha256": "ac7015b64d6622929a402f80cfab962e1b7bbd37299c3eadd9c42b8e3dcee09c" }, "downloads": -1, "filename": "spinlog-0.1.0-py3.7.egg", "has_sig": false, "md5_digest": "40d13b1c79c3abe390cffff8352d752b", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 1910, "upload_time": "2018-09-24T13:11:09", "url": "https://files.pythonhosted.org/packages/89/85/33b8b2c8ea3ae193b3f6fc9ee1fcbf1bef107cbb9d661eecff8f5761fe63/spinlog-0.1.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "3c3792b7f5b329424b96924c66b79803", "sha256": "46593517217033d2bbffe85f43603728113b7eb5989ba839deeae32423515e2a" }, "downloads": -1, "filename": "spinlog-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3c3792b7f5b329424b96924c66b79803", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1587, "upload_time": "2018-09-24T13:11:10", "url": "https://files.pythonhosted.org/packages/61/ed/87726b4d2d6455933f2478111cb23bdbdf0f4d99f15e32c88f72be361fb9/spinlog-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e13c47cf1c1ef10c7b56584e9433ddab", "sha256": "a09dcb8e2d4be10096d77e56ab745992f78d5dca7706318709df137719fdb799" }, "downloads": -1, "filename": "spinlog-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e13c47cf1c1ef10c7b56584e9433ddab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1645, "upload_time": "2018-09-24T13:11:11", "url": "https://files.pythonhosted.org/packages/29/7d/04a3f8f80696631c52b7895face5907e01fc8be84eaf046d74fa39c06bbc/spinlog-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "fbd8689c0e1f505730496f3b3403928e", "sha256": "298f039b557b0a5628bcfdeb29b928becdca5347b8909812c70ca74f54bfdc3d" }, "downloads": -1, "filename": "spinlog-0.1.2-py3.7.egg", "has_sig": false, "md5_digest": "fbd8689c0e1f505730496f3b3403928e", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 2080, "upload_time": "2018-09-24T13:11:13", "url": "https://files.pythonhosted.org/packages/68/12/dc9c7d3f8ea3312170a7fc6ef3d488f1354bfde04d78fe640493cf9aabbf/spinlog-0.1.2-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "4a206b22d596ec8401ebf06ffbcbecb3", "sha256": "f9090b226f29c8e9604798459e96edbc68a5c20722fe4d4772a0bdc74279bc45" }, "downloads": -1, "filename": "spinlog-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4a206b22d596ec8401ebf06ffbcbecb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1676, "upload_time": "2018-09-24T13:11:14", "url": "https://files.pythonhosted.org/packages/c8/e6/12e51ffc3fa43d60f849a5823f6a7b499bcc9a146b86b630413ae3b91b19/spinlog-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f0ab3437926d157d958ccedf5590137a", "sha256": "259209d51ffa9561773b7076e77a65108d3e80e57a6c4e2e2259c0095c33817c" }, "downloads": -1, "filename": "spinlog-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "f0ab3437926d157d958ccedf5590137a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2232, "upload_time": "2018-09-24T13:11:41", "url": "https://files.pythonhosted.org/packages/9c/46/c7925dcd84d9590c748187a0c5b423d6d568e63df2babceef11b365f7648/spinlog-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c4735051f3365f0e7fbe009e2278a2b1", "sha256": "e66291add3ca328ac86b8464bd8ac21fba61f7e055807c658089bd30620a2fdd" }, "downloads": -1, "filename": "spinlog-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c4735051f3365f0e7fbe009e2278a2b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1674, "upload_time": "2018-09-24T13:11:15", "url": "https://files.pythonhosted.org/packages/c6/81/69372cc5222f012ccc29810ab410988588fbee176145e9febf4bf9ff51c2/spinlog-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "860a2fe933da59e706a8c26ac24d1214", "sha256": "a8b1496dba26ae50d90d9dc24e78832fabc852c85c8c39b784b7414e30ec5541" }, "downloads": -1, "filename": "spinlog-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "860a2fe933da59e706a8c26ac24d1214", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2692, "upload_time": "2018-09-25T06:56:43", "url": "https://files.pythonhosted.org/packages/54/9d/66481d42c5e36db7415099bd6b64b5026147ebdf39508faec4feed11ac69/spinlog-0.2.0-py3-none-any.whl" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "7a69308f8af9a5a2c6a73a19e1e547ce", "sha256": "b65d6c0b5b42743fed55504c16066794e41d33d20195573293e8b1730c5ca0d1" }, "downloads": -1, "filename": "spinlog-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7a69308f8af9a5a2c6a73a19e1e547ce", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2817, "upload_time": "2018-09-25T07:17:03", "url": "https://files.pythonhosted.org/packages/07/23/ae574bee450148d8ae942af45c4e816a3632f4a6c450711fbd751efe6a06/spinlog-0.2.1-py3-none-any.whl" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "32a4469c66d487ccc5ec1095eaf61dfc", "sha256": "50334fbefdc9fca2e7cec65df689ecbd9baeee7d88faaee8a80447e812381ba4" }, "downloads": -1, "filename": "spinlog-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "32a4469c66d487ccc5ec1095eaf61dfc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3629, "upload_time": "2018-09-28T07:49:13", "url": "https://files.pythonhosted.org/packages/a1/16/0cafe5876611a5a02a12e82196661602587047221ea50f9205d5c6f30f9d/spinlog-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3765a7b2a54d3aeb654988a00dc09a5f", "sha256": "a260cac732f3dd381bcf24e765bc0cb387ce16cc2d41f8313b0350c5e5417355" }, "downloads": -1, "filename": "spinlog-0.3.0.tar.gz", "has_sig": false, "md5_digest": "3765a7b2a54d3aeb654988a00dc09a5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3321, "upload_time": "2018-09-28T07:49:15", "url": "https://files.pythonhosted.org/packages/b4/f6/3e6c2119cc69a99179cfdd0e3304e9cbeceb1a807724c9c3a2de157279db/spinlog-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "32a4469c66d487ccc5ec1095eaf61dfc", "sha256": "50334fbefdc9fca2e7cec65df689ecbd9baeee7d88faaee8a80447e812381ba4" }, "downloads": -1, "filename": "spinlog-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "32a4469c66d487ccc5ec1095eaf61dfc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3629, "upload_time": "2018-09-28T07:49:13", "url": "https://files.pythonhosted.org/packages/a1/16/0cafe5876611a5a02a12e82196661602587047221ea50f9205d5c6f30f9d/spinlog-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3765a7b2a54d3aeb654988a00dc09a5f", "sha256": "a260cac732f3dd381bcf24e765bc0cb387ce16cc2d41f8313b0350c5e5417355" }, "downloads": -1, "filename": "spinlog-0.3.0.tar.gz", "has_sig": false, "md5_digest": "3765a7b2a54d3aeb654988a00dc09a5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3321, "upload_time": "2018-09-28T07:49:15", "url": "https://files.pythonhosted.org/packages/b4/f6/3e6c2119cc69a99179cfdd0e3304e9cbeceb1a807724c9c3a2de157279db/spinlog-0.3.0.tar.gz" } ] }