一个基于emoji的风铃进度条库,肥城泰西的风铃
Project description
Fengling Progress
A beautiful progress bar library with various emoji styles including fruits, windchimes, and dynamic animations.
Installation
pip install fengling
Usage
from fengling import WindchimeProgress
# Create a progress bar with default style (windchime)
progress = WindchimeProgress(total=100)
# Update progress
for i in range(100):
progress.update(i + 1)
# Do your work here
time.sleep(0.1)
# Complete the progress bar
progress.finish()
Available Styles
Fruit Styles
- 🍎 Red Apple (ala)
- 🫐 Blueberry
- 🍏 Green Apple
- 🍊 Orange
- 🍇 Grape
- 🍓 Strawberry
- 🍑 Peach
- 🍐 Pear
- 🍌 Banana
- 🍉 Watermelon
Decorative Styles
- 🎐 Windchime (default)
- 🔔 Bell
- 🎋 Chime
- ⛩️ Temple
- 🎀 Ribbon
- ✨ Sparkle
- ⭐ Star
- 💎 Crystal
Dynamic Styles
- 🏃 Running
- 🚶 Walking
- 🚶♂️ Strolling
- 🚀 Rocket
Examples
from fengling import WindchimeProgress
import time
# Show all available styles
WindchimeProgress.show_styles()
# Create a progress bar with specific style
progress = WindchimeProgress(total=100, style='ala') # Red apple style
for i in range(100):
progress.update(i + 1)
time.sleep(0.1)
progress.finish()
# Try different styles
progress = WindchimeProgress(total=100, style='rocket') # Rocket style
for i in range(100):
progress.update(i + 1)
time.sleep(0.1)
progress.finish()
Features
- Beautiful emoji animations
- Multiple style options
- Color-coded progress bars
- Simple and intuitive API
- Customizable progress bar length
- Support for percentage display
- Elapsed time tracking
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fengling-0.1.0.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fengling-0.1.0.tar.gz.
File metadata
- Download URL: fengling-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69dc8ccbfb1a69d3d443de89c477465e7c797978930fec02c838b66be904f274
|
|
| MD5 |
9b376849bb9480710a8da11b41cc2d63
|
|
| BLAKE2b-256 |
3ff04a6f971e135e2b2997f421607bdc9eac4faa1d7738c61fe085d85dadd4b1
|
File details
Details for the file fengling-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fengling-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
376675e09ec60b21650375c7e99fa45df45785560d4e43958f6dcb4a2f50b232
|
|
| MD5 |
b2b748a1ad3aab86fff5bbe3654883a6
|
|
| BLAKE2b-256 |
4b04b57ff4ceb6725745bb572e13a18d4d19b79f1742cbeffbd960852cf5d68c
|