Skip to main content

A python library that adds events to communicate through other files.

Project description

Event Horizon

PyPI Version Python Version GitHub stars GitHub license

PyPI Downloads

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ehorizon-0.2.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for ehorizon-0.2.2.tar.gz
Algorithm Hash digest
SHA256 6aa9be5d92fd8599d0259398eee5b3aa2825ff3ab1f8246ac958e9dd2529089c
MD5 78c711a14f8eb3d294c4a27c900b3f4a
BLAKE2b-256 268cab0540a169828a62fac96e1215572732aaad4561258fc1141df33d2fcc17

See more details on using hashes here.

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

Hashes for ehorizon-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 96f1dcee30d038dfe3ab7e5d2f6c47957358a15bc87af9fc8b471a26496d3924
MD5 31885b3492effc4babec08b264c5d4a2
BLAKE2b-256 ce3a78c5c94dbd4da594328cd7395f51fa5dba1df2abb92bef989a0d540a7a58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page