{"id":13501978,"url":"https://github.com/lord63/py-spin","last_synced_at":"2025-12-30T16:24:13.599Z","repository":{"id":31408713,"uuid":"34972013","full_name":"lord63/py-spin","owner":"lord63","description":"Terminal spinner package for Python. (This library is not the one from FLIR)","archived":false,"fork":false,"pushed_at":"2022-11-09T20:07:32.000Z","size":27,"stargazers_count":184,"open_issues_count":3,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-14T15:05:20.657Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lord63.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-03T03:11:23.000Z","updated_at":"2025-02-21T05:05:13.000Z","dependencies_parsed_at":"2023-01-14T18:58:59.352Z","dependency_job_id":null,"html_url":"https://github.com/lord63/py-spin","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lord63%2Fpy-spin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lord63%2Fpy-spin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lord63%2Fpy-spin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lord63%2Fpy-spin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lord63","download_url":"https://codeload.github.com/lord63/py-spin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174179,"owners_count":20735406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T22:01:57.271Z","updated_at":"2025-12-30T16:24:13.569Z","avatar_url":"https://github.com/lord63.png","language":"Python","readme":"Py-Spin\n=======\n\n| |Latest Version|\n| |Build Status|\n| |Python Versions|\n\nA little terminal spinner lib. Heavily inspired by `go-spin`_. (This library is not the one from FLIR).\n\nDemo\n----\n\n|pyspin_demo|\n\nInstall\n-------\n\n::\n\n    $ pip install pyspin\n\nUsage\n-----\n\nmake a spinner by hand:\n\n.. code:: python\n\n    from __future__ import print_function\n\n    import sys\n    import time\n\n    from pyspin.spin import Default, Spinner\n\n    # Choose a spin style.\n    spin = Spinner(Default)\n    # Spin it now.\n    for i in range(50):\n        print(u\"\\r{0}\".format(spin.next()), end=\"\")\n        sys.stdout.flush()\n        time.sleep(0.1)\n\nor you can use the decorator pyspin provide:\n\n.. code:: python\n\n    from __future__ import print_function\n\n    import time\n\n    from pyspin.spin import make_spin, Default\n\n    # Choose a spin style and the words when showing the spin.\n    @make_spin(Default, \"Downloading...\")\n    def download_video():\n        time.sleep(10)\n\n    if __name__ == '__main__':\n        print(\"I'm going to download a video, and it'll cost much time.\")\n        download_video()\n        print(\"Done!\")\n\nYou can have a look at the example code in the example folder. Run it\nvia:\n\n::\n\n    $ python example/example_spin.py\n    $ python example/usage_example.py\n\nContribute\n----------\n\n-  If you find an interesting spinner, send me a pull request \u003c3\n-  If you find a bug or have any suggestions, open an issue.\n\nContributions are always welcome at any time! ✨ 🍰 ✨\n\nLicense\n-------\n\nMIT.\n\n.. _go-spin: https://github.com/tj/go-spin\n\n.. |Latest Version| image:: http://img.shields.io/pypi/v/pyspin.svg\n   :target: https://pypi.python.org/pypi/pyspin\n.. |Build Status| image:: https://travis-ci.org/lord63/py-spin.svg\n   :target: https://travis-ci.org/lord63/py-spin\n.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/pyspin.svg\n   :target: https://pypi.python.org/pypi/pyspin\n.. |pyspin_demo| image:: https://cloud.githubusercontent.com/assets/5268051/7448038/ba152a8c-f241-11e4-86e0-50bc3b33bce5.gif\n","funding_links":[],"categories":["Python","Python decorator in the wild"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flord63%2Fpy-spin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flord63%2Fpy-spin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flord63%2Fpy-spin/lists"}