Skip to main content

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 event-horizon

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.0.tar.gz (2.4 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.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file ehorizon-0.1.0.tar.gz.

File metadata

  • Download URL: ehorizon-0.1.0.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

Hashes for ehorizon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0ca03b7930d5fe2a4638b6d9e314ebfa6e18de57a3f44a7064da7ac87829078f
MD5 addf6cf47993534d4cfc9f073bed1f30
BLAKE2b-256 8e0f89c58151ddcb6ced797f63cfcf9040b4d4d2005396dcf5377a313c4e5496

See more details on using hashes here.

File details

Details for the file ehorizon-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ehorizon-0.1.0-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

Hashes for ehorizon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b799d812d3929af39ed6ce46c4ba4d3afe49cc97e38d21ef2615e47ee447ab7
MD5 d9dacd9301178194287d1e591c4f2a5e
BLAKE2b-256 b5a0894327e497cfc63a9596d789c7bcdb5e6db46b0b88a82cb56e9eec8fd4ed

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