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.1.1.tar.gz
(2.4 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.1.1.tar.gz.
File metadata
- Download URL: ehorizon-0.1.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2a7efe57a4d2f23aa7e7978d702e2b4f7cdf1288b12801d4895f95a7663338a
|
|
| MD5 |
635bc2999a47b3d31755010ae2803cc7
|
|
| BLAKE2b-256 |
d8b0a7ce3c955ccfe35877594362079ae84755da10bb459bdf6c7b6c2211b20a
|
File details
Details for the file ehorizon-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ehorizon-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.1 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 |
57e84007a657f6284a9a2b7b7fcc4040d6f3498ea9675abd8b29c22f8f5c13e6
|
|
| MD5 |
debc602377060ac454c1b5167e6b3998
|
|
| BLAKE2b-256 |
1a48600767bd4efa65ab27ea71402c58ee8f108456c6b62d7e5de8528e68bc0e
|