ev-manager-0.0.6
توضیحات
Bind functions to events that can be called from any other script at any time.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ev-manager-0.0.6 |
| نام | ev-manager |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nils Soderman |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/nils-soderman/ev-manager |
| آدرس اینترنتی | https://pypi.org/project/ev-manager/ |
| مجوز | - |
# ev-manager (Event Manager)
Useful when working with DCCs like Maya, MotionBuilder, Unreal Engine, etc. and you want different tools/scripts to communicate with each other.
## Installation:
```batch
pip install ev-manager
```
## Examples:
```python
import ev_manager
def hello_world():
print("Hello World")
ev_manager.bind("MyEvent", hello_world)
```
```python
>>> import ev_manager
>>> ev_manager.emit("MyEvent")
>>> "Hello World"
```
## Available functions:
| Function | Description |
| --- | --- |
| `bind(event, function)` | Bind a function to an event. |
| `unbind(event, function)` | Unbind a function from an event. |
| `unbind_all(*, event, function)` | Either unbind all functions from an event or unbind a function from all events. |
| `is_bound(event, function)` | Check if a function is bound to an event. |
| `emit(event, *args, **kwargs)` | Call all functions bound to an event. |
## Limitations:
Events are per Python instance. So they will for example not be communicating between different applications.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl ev-manager-0.0.6:
pip install ev-manager-0.0.6.whl
نصب پکیج tar.gz ev-manager-0.0.6:
pip install ev-manager-0.0.6.tar.gz