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.2.tar.gz
(2.6 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.2.tar.gz.
File metadata
- Download URL: ehorizon-0.2.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aa9be5d92fd8599d0259398eee5b3aa2825ff3ab1f8246ac958e9dd2529089c
|
|
| MD5 |
78c711a14f8eb3d294c4a27c900b3f4a
|
|
| BLAKE2b-256 |
268cab0540a169828a62fac96e1215572732aaad4561258fc1141df33d2fcc17
|
File details
Details for the file ehorizon-0.2.2-py3-none-any.whl.
File metadata
- Download URL: ehorizon-0.2.2-py3-none-any.whl
- Upload date:
- Size: 3.4 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 |
96f1dcee30d038dfe3ab7e5d2f6c47957358a15bc87af9fc8b471a26496d3924
|
|
| MD5 |
31885b3492effc4babec08b264c5d4a2
|
|
| BLAKE2b-256 |
ce3a78c5c94dbd4da594328cd7395f51fa5dba1df2abb92bef989a0d540a7a58
|