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:
pip install ev-manager
Examples:
Using classes:
""" my_module.py """
from typing import Callable
from ev_manager import Event
class ExampleEvent(Event[Callable[[int], None]]):
pass
def my_callback(value: int):
print(f"Number: {value}")
ExampleEvent.bind(my_callback)
>>> from my_module import ExampleEvent
>>> ExampleEvent.emit(5)
>>> "Number: 5"
Using functions:
import ev_manager
def hello_world():
print("Hello World!")
ev_manager.bind("MyEvent", hello_world)
>>> 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.
Metadata
Release files for ev-manager 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ev-manager-0.1.0.tar.gz | 4.1 kB | Without provenance | Details for ev-manager-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ev_manager-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ev_manager-0.1.0-py3-none-any.whl |
Total release size: 8.9 kB
Release files / ev-manager-0.1.0.tar.gz
| Download URL | ev-manager-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b96367ac0a36dffafa047ad25bf951d06df845dbd2d6e01eb46ba89dbad7c4a
|
|
BLAKE2b-256 checksum How to use checksums |
f43a0813d86883d05efb19e2fbaf8514ec1d9c4a4170ad0fdd5a1c33920c073b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / ev_manager-0.1.0-py3-none-any.whl
| Download URL | ev_manager-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
994bd3b822b0b7d0e80ed2c75b95a2ed44c9067b73ea58e94d9a5bfab16cc6ea
|
|
BLAKE2b-256 checksum How to use checksums |
c77a1d518ad227c6d30b475d4fd737839a59f7e9ff4aa6f4acc52681001a8c30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Security for ev-manager 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.