A python library that adds events to communicate through other files.
Project description
Event Horizon
A python library that adds events to communicate through other files.
Installation
pip install ehorizon
Example Code Snippet
- Events:
test.py:
from EventHorizon import Event
import callback
myEvent = Event("MyEvent")
myEvent.Fire("Hello World!")
callback.py:
from EventHorizon import Event
@Event("MyEvent").OnEvent
def callback(message):
print(message)
- Functions:
test.py:
from EventHorizon import Function
import function
myFunc = Function("MyFunc")
favourite_number = myFunc.run()
print(favourite_number)
function.py:
from EventHorizon import Function
@Function("MyFunc").AttachFunction
def callback():
return 5
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ehorizon-0.2.1.tar.gz
(2.5 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 ehorizon-0.2.1.tar.gz.
File metadata
- Download URL: ehorizon-0.2.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8c06a6e854a514fb679aa86f624115ae08be058f5935f419e3463d948e0af97
|
|
| MD5 |
452d98249021eaba7cd63a86a4e38a7c
|
|
| BLAKE2b-256 |
f17e89cb952c3f63b33877ab19f4ee207239d129a5a40885b4245903b77b9498
|
File details
Details for the file ehorizon-0.2.1-py3-none-any.whl.
File metadata
- Download URL: ehorizon-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18bb3bac91c44d8f27242067e61065be51d9205dcdd19900e5cd517943246864
|
|
| MD5 |
c76b6cabc7fffce47c46bcd5194ae333
|
|
| BLAKE2b-256 |
49a8ec5e8d2ba815c32e9652f51e35a677000f71c27f94862e74ed92a4f21a46
|