easy-events-2.9.0
2.9.0
2.8.2
2.8.1
2.8.0
2.7.2
2.7.1
2.7.0
2.6.2
2.6.1
2.6.0
2.5.3
2.5.2
2.5.1
2.3.1
2.3.0
2.2.1
2.2.0
2.1.1
2.1.0
2.0.1
2.0.0
1.9.6
1.9.5
1.9.4
1.9.3
1.9.1
1.8.4
1.8.3
1.8.2
1.8.0
1.7.8
1.7.7
1.7.6
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.1
1.4.0
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.0
1.0.1
1.0.0
2.9.0
2.8.2
2.8.1
2.8.0
2.7.2
2.7.1
2.7.0
2.6.2
2.6.1
2.6.0
2.5.3
2.5.2
2.5.1
2.3.1
2.3.0
2.2.1
2.2.0
2.1.1
2.1.0
2.0.1
2.0.0
1.9.6
1.9.5
1.9.4
1.9.3
1.9.1
1.8.4
1.8.3
1.8.2
1.8.0
1.7.8
1.7.7
1.7.6
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.1
1.4.0
1.3.1
1.2.2
1.2.1
1.1.0
1.0.1
1.0.0
توضیحات
An universal wrapper (and useful tool) to make event / commands in python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | easy-events-2.9.0 |
| نام | easy-events |
| نسخه کتابخانه | 2.9.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ThePhoenix78 |
| ایمیل نویسنده | thephoenix788@gmail.com |
| آدرس صفحه اصلی | https://github.com/ThePhoenix78/easy-events |
| آدرس اینترنتی | https://pypi.org/project/easy-events/ |
| مجوز | MIT |
# easy-events
**A library that help you to manage events**
## Getting started
1. [**Installation**](#installation)
2. [**Usages**](#usages)
3. [**Code example**](#code-example)
4. [**Documentation**](#documentation)
## Installation
`pip install easy-events`
GitHub : [Github](https://github.com/ThePhoenix78/Commands)
## Usages
text
## Code example
```py
from easy_events import EasyEvents
# create an event or use it in a class
client = EasyEvents()
# create another event (can be sync or async)
# you can put as much parameters as you want
@client.add_event("test1")
def test(data, arg1, arg2, *, arg3):
# data is the default parameter, it contain some basic informations that you can format as you want
print(data, arg1, arg2, arg3)
# trigger the event
# dict way
client.trigger({"event": "test1", "parameters": {"arg1": "arg1", "arg2": "arg2", "arg3": ["arg3", "arg4"]}})
# dict way v2
client.trigger({"event": "test", "parameters": ["arg1", "arg2", "arg3", "arg4"]})
# dict way v3
client.trigger({"event": "test1", "parameters": "arg1 arg2 arg3 arg4"})
# list way
client.trigger(["test", "arg1", "arg2", "arg3", "arg4"])
# str way
client.trigger("test arg1 arg2 arg3 arg4")
# the result will be (for all cases):
# arg1 = arg1
# arg2 = arg2
# arg3 = [arg3, arg4]
```
نحوه نصب
نصب پکیج whl easy-events-2.9.0:
pip install easy-events-2.9.0.whl
نصب پکیج tar.gz easy-events-2.9.0:
pip install easy-events-2.9.0.tar.gz