https://github.com/benjaminurquhart/loading-spinner
A simple loading spinner for Python projects
https://github.com/benjaminurquhart/loading-spinner
loading loading-animation loading-animations loading-indicator loading-spinner python python-library python3 python3-library
Last synced: 9 months ago
JSON representation
A simple loading spinner for Python projects
- Host: GitHub
- URL: https://github.com/benjaminurquhart/loading-spinner
- Owner: BenjaminUrquhart
- Created: 2017-10-20T22:28:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-26T00:54:49.000Z (about 8 years ago)
- Last Synced: 2025-03-10T00:55:09.291Z (10 months ago)
- Topics: loading, loading-animation, loading-animations, loading-indicator, loading-spinner, python, python-library, python3, python3-library
- Language: Python
- Homepage: https://benjaminurquhart.dynu.net/python/loadingspinner.html
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# loading-spinner
An incredibly simple "loading spinner" for python projects
# Installing
`pip install loadingspinner`
# Usage
NOTE: Please do NOT import spinner. You MUST use loadingspinner.
`import loadingspinner
loadingspinner.setText("Loading...")
loadingspinner.setTextColor("yellow")
loadingspinner.start()
loadingspinner.stop()`
# Customizing the spinner
Changing the spinner animation:
`loadingspinner.setFrames()`
Ex. `loadingspinner.setFrames(["|","/","-","\\"])`
Changing the text color:
`
loadingspinner.setTextColor()`
Ex. `loadingspinner.setTextColor("red")`
Changing the spinner color:
NOTE: This feature is not fully implemented and any changes to the spinner color will change the text color as well
`loadingspinner.setSpinnerColor()`
Ex. `loadingspinner.setSpinnerColor("yellow")`