Skip to main content

In-memory python event library

Project description

Coverage Status Test eventipy GitHub issues GitHub pull requests GitHub closed pull requests GitHub tag (latest by date) PyPI - Python Version PyPI

Eventipy

eventipy is an in-memory event library for python 3.6 and greater.

Getting Started

To install:

pip install eventipy

For full documentation please visit: https://eventipy.readthedocs.io/en/stable/

Usage

Publishing events:

from eventipy import events, Event

event = Event("my-topic")
events.publish(event)

Subscribing to topics:

from eventipy import events, Event

@events.subscribe("my-topic")
def event_handler(event: Event):
    # Do something with event
    print(event.id)

now every time an event with topic my-topic is published, event_handler will be called.

Tests

Use the package manager pip to install eventipy

pytest tests/unit

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

We use the MIT license, see LICENSE.md for details

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

eventipy-1.0.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

eventipy-1.0.0-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

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