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.3.tar.gz
(2.7 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.3.tar.gz.
File metadata
- Download URL: ehorizon-0.2.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffedab15c1f0ae21ac694a462c9922336ec137485f17e588225178e9caa0e9ad
|
|
| MD5 |
cba3e262ad1cc589c936e3201eade24b
|
|
| BLAKE2b-256 |
aabf8620be33c60436448f9468df52afdd4ea71cad54f79e80337a81b693d4b4
|
File details
Details for the file ehorizon-0.2.3-py3-none-any.whl.
File metadata
- Download URL: ehorizon-0.2.3-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 |
dbfa83900bbc6aded611d856b6b5c8f3725f2364223ace1e954b9b766c69520d
|
|
| MD5 |
16608e048bd153bb79b6582ed9e7bea9
|
|
| BLAKE2b-256 |
fc9a22a9a06b34fd206ef33a28b85d482d1344f3bbed3e6f4b082afabfec96b9
|