Skip to main content

Test EventBridge pattern with Python locally

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

event_ruler-0.2.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

event_ruler-0.2.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

event_ruler-0.2.0-cp310-cp310-macosx_12_0_x86_64.whl (921.6 kB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

event_ruler-0.2.0-cp310-cp310-macosx_12_0_arm64.whl (876.6 kB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

event_ruler-0.2.0-cp310-cp310-macosx_11_0_x86_64.whl (922.1 kB view details)

Uploaded CPython 3.10 macOS 11.0+ x86-64

event_ruler-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (876.7 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

File details

Details for the file event_ruler-0.2.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for event_ruler-0.2.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 71535bae277a013cd991984fe10b6681eb948a011ee196b509cd14b872e0bfc2
MD5 52b90846ca9c30a59b44060cc39a6ac1
BLAKE2b-256 e7f32ca7bdcc33b55627d8c73cf6a673f67a2b2fb0e8a95c96de8c61d6162f72

See more details on using hashes here.

File details

Details for the file event_ruler-0.2.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for event_ruler-0.2.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e40e15298bcbf0c04d1318d6b04c6c04c08099f17bc03b4a74163ce21ca66c7
MD5 02cee859a06f86e9208988b954ed39c6
BLAKE2b-256 af7ca3607c7738db8baab0d25d820867fd533c1b5974c90a667e32592896c56f

See more details on using hashes here.

File details

Details for the file event_ruler-0.2.0-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for event_ruler-0.2.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 9640a9992a53466cd7cbf94dcfa22634c6de0d11893d928958b46ffcb639fd43
MD5 1ebb3e20de953672493c85f5c09759d3
BLAKE2b-256 1dfe051f05e800a0d24ff006e46cda4c7f6847ca4913b4e8de208aab0e9aff5c

See more details on using hashes here.

File details

Details for the file event_ruler-0.2.0-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for event_ruler-0.2.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 e6224f7e50c8cf878d9beed52c1fc7de2f7fd3f66826c10571323e594a19824f
MD5 e3b422cf1082a3133c37181ce5cd3e38
BLAKE2b-256 ad842f5f174ff2f0375e405b12d92f50ba6bfab98370ffa8fdbb84895ba208b5

See more details on using hashes here.

File details

Details for the file event_ruler-0.2.0-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for event_ruler-0.2.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 8425a035766e8bb641854435d27e1ed0aa44ff9ab8b5fff5e8a779a681b07397
MD5 0575362705dba7b9429c1d6a828deb28
BLAKE2b-256 ea5cf6df03d2215e8b7218f20ee0efba6ee81a74c67eb65f54a9387637df34a8

See more details on using hashes here.

File details

Details for the file event_ruler-0.2.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for event_ruler-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b0adb9125c5158ec6df6999944cc110a5a863778dfde8c8b07bb84084e7e707
MD5 c9712ef3368775845132d5421388644a
BLAKE2b-256 5710ff880b68d74414c2546abd4f05ce3239d9804ed1c174573c6c9a056ea9e4

See more details on using hashes here.

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