Skip to main content

Test EventBridge pattern with Python locally

Project description

py-event-ruler

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.

Usage

>>> from out 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.1.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.1.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

File details

Details for the file event_ruler-0.1.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.1.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4bc0cf1436b63357f27a93c6d5d98802d8d07d00ee62511c3f24053b7482cd3d
MD5 76b7f57a22379551cfa54bfca9b60faf
BLAKE2b-256 267230745b716d543c25117fe42a33a11e73532f6cb2c84b3179d1e1924dd04d

See more details on using hashes here.

File details

Details for the file event_ruler-0.1.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.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2de110a0a705c745e3091eb364182cf0a262158c5159c459ce50629de756e5f8
MD5 cc0986a9532cd9bb391a525d54e3aab7
BLAKE2b-256 44aadebd9d6e8d06c014293cd4a294b9b6d8906b8fca7a2a207e040773decda1

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