Skip to content

tuananh/py-event-ruler

Repository files navigation

py-event-ruler

PyPI version

Origin

I love EventBridge and their pattern matching.

The AWS SDK has an API for testing event pattern with EventBridge sandbox. The problem is that you have to initialize AWS SDK client and make an API call for each test.

In my case, I want to do lots of pattern matching test without being afraid of hitting API rate limit from AWS.

AWS also releases an open-source version of this pattern matching library in Java but in my case, I want to use Python because that's what my teammates are familiar with.

Install

pip install event-ruler

Usage

>>> import event_ruler
>>> event_ruler.test_event_pattern('{"foo":true}', '{"foo":[true]}')
True

License

MIT