conanim-0.1.0
توضیحات
A Python library for creating animation in console.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | conanim-0.1.0 |
| نام | conanim |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | breadlol64 |
| ایمیل نویسنده | breadlol64@gmail.com |
| آدرس صفحه اصلی | https://github.com/yourusername/mypackage |
| آدرس اینترنتی | https://pypi.org/project/conanim/ |
| مجوز | - |
# conanim Library
**This python library is used for creating simple animations in console.**
## How to use
To create an animation you need use `frame_animattion()`function. Example:
```Python
import conanim as ca
# define frames for animation
frames = [
"|",
"/",
"-",
"\\",
]
while True:
ca.frame_animation(frames, 0.1) # create an animation
```
In this example `frame_animation()` needs 2 arguments: frames and delay in seconds between frames
```Python
frame_animation(frames, delay)
```
This is cool, but if we create program like this:
```Python
import conanim as ca
# define frames for animation
frames = [
"|",
"/",
"-",
"\\",
]
while True:
print("loading ", end="")
ca.frame_animation(frames, 0.1) # create an animation
```
it wil doesn't work, so this library have `print_with_animation()` function:
```Python
import conanim as ca
# define frames for animation
frames = [
"|",
"/",
"-",
"\\",
]
while True:
ca.print_with_animation("Loading ", frames, 0.1) # create an animation
```
نحوه نصب
نصب پکیج whl conanim-0.1.0:
pip install conanim-0.1.0.whl
نصب پکیج tar.gz conanim-0.1.0:
pip install conanim-0.1.0.tar.gz