Skip to main content

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

Project description

Event Horizon

PyPI Version Python Version GitHub 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.3.tar.gz (2.7 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.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for ehorizon-0.2.3.tar.gz
Algorithm Hash digest
SHA256 ffedab15c1f0ae21ac694a462c9922336ec137485f17e588225178e9caa0e9ad
MD5 cba3e262ad1cc589c936e3201eade24b
BLAKE2b-256 aabf8620be33c60436448f9468df52afdd4ea71cad54f79e80337a81b693d4b4

See more details on using hashes here.

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

Hashes for ehorizon-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dbfa83900bbc6aded611d856b6b5c8f3725f2364223ace1e954b9b766c69520d
MD5 16608e048bd153bb79b6582ed9e7bea9
BLAKE2b-256 fc9a22a9a06b34fd206ef33a28b85d482d1344f3bbed3e6f4b082afabfec96b9

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