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.3.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.5 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARMv7l

event_ruler-0.3.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARMv7l

event_ruler-0.3.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.3.0-cp311-cp311-macosx_12_0_x86_64.whl (923.3 kB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

event_ruler-0.3.0-cp311-cp311-macosx_12_0_arm64.whl (878.4 kB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

event_ruler-0.3.0-cp311-cp311-macosx_11_0_x86_64.whl (923.7 kB view details)

Uploaded CPython 3.11 macOS 11.0+ x86-64

event_ruler-0.3.0-cp311-cp311-macosx_11_0_arm64.whl (878.4 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

event_ruler-0.3.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARMv7l

event_ruler-0.3.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.3.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.3.0-cp310-cp310-macosx_12_0_arm64.whl (876.6 kB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

event_ruler-0.3.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.3.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.3.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for event_ruler-0.3.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 17a3f42207ed1a217963a64cc88ccaa63a1977e49bac846d491bf5cb223678d8
MD5 76b7eeba300a59a7d52617a3fb973007
BLAKE2b-256 6b5e2d6ae8526840bc6565a5b60c10a281a11e0d9410e930b1da4a69c0acda55

See more details on using hashes here.

File details

Details for the file event_ruler-0.3.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for event_ruler-0.3.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 f7b29c256b5f6ba76b09c8a017dedf2b4b149a4b85b7ac9f1f96eacb3880b2a2
MD5 44d2d6921f48ee2da4bd8fd07ac9c989
BLAKE2b-256 ee2b67556b517f6bd37c5e078285bccaebc9337fcfc7e711529a5ef1bcb88b39

See more details on using hashes here.

File details

Details for the file event_ruler-0.3.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.3.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ebad1431f7ef145cdfbedcf2b9e56b28b31cc33d134213e0c7165f287a330ae2
MD5 f9aecf52554365403fc7d3dc303d28b7
BLAKE2b-256 d1181a7cc7f98c457c070178bc940cb695a12db08a7bfa900bcf84a592ea66e3

See more details on using hashes here.

File details

Details for the file event_ruler-0.3.0-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for event_ruler-0.3.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 5286fb20c2517650907e8d984b754e474114435ef992db38fba1580c57fe1463
MD5 d78c53a8dad4599b3e53b309c5b5c021
BLAKE2b-256 81d8ced5eb89a29b610df7900302c4a9b40f06b8bf6e32521bed60c5e9310aaf

See more details on using hashes here.

File details

Details for the file event_ruler-0.3.0-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for event_ruler-0.3.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 23d3079d31a90329a47a9464b1ebbf93cc639f3e5c36c45a2a05b61b770cf0b4
MD5 8ebc681b3abe13bb4756260c0596b5bb
BLAKE2b-256 0f42c4767596a068e4966e64757c3847b92cd144f9aca2ee73d5db18d01b02ac

See more details on using hashes here.

File details

Details for the file event_ruler-0.3.0-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for event_ruler-0.3.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 bdf931a13a3a794598c5298ea9a7c0938d5389fd01da3d7554fbcb5691c2b89c
MD5 b732b864059601edeb7fc2b531969b17
BLAKE2b-256 43d5d8add3b74a260fade2f4bf237f62f5add79ac9fe8c99682b442502c0fbaf

See more details on using hashes here.

File details

Details for the file event_ruler-0.3.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for event_ruler-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0893f819c75c62be25c2f7c9f9c295e73335d9ff4692e7a0d1c92b1a698d8dc
MD5 a6f4f592cace31c2a5a2f4c2fc593382
BLAKE2b-256 21b3356f09c9658b6ba1d218318cebe467462d7a08b90e0c8f253b90d1d8fd2a

See more details on using hashes here.

File details

Details for the file event_ruler-0.3.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for event_ruler-0.3.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 946d0d1685656ced8ee1efc1c2f97d55e1af34b4f8eeaf15fd6592bd318d20d7
MD5 223113023fb588786a51427329c6b668
BLAKE2b-256 32f3fc2ee48c1326f4bf1fb8190da6f3aec420397a40b7109d14d786ad4d9b58

See more details on using hashes here.

File details

Details for the file event_ruler-0.3.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.3.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b09fe83fbaead6092808a3bb284d34cfab14adff18790bd60f3cf268fec577ba
MD5 9b0991746ff3b96ad59a8309d7b529d0
BLAKE2b-256 fe48e1c527069686cd3cdfa2048b844b04296ad2abe2790bd08beb4e53529f66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for event_ruler-0.3.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 8cb07f9da7df20b5c9e6ab19b6d869bacbdac50847bd01892c6ffd148492cad2
MD5 60607eeb9c355ef8fa0e25573ed02573
BLAKE2b-256 9bc3cec572876f4747649cd13fce04881f7935b98985bbadeb7d5dde09b0f0e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for event_ruler-0.3.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 04314c6da5dd07a6864914b39bfd3f11c89b07376186876a15686f758a1ef934
MD5 c26873a673815644c6d02c842acf5ac5
BLAKE2b-256 74f0a5f7052869b52021cc803e8bd8799ac4e6f37caa01e08e91ae37412b8d34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for event_ruler-0.3.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 106d6fae71405f56e7bfe9f6b5b8f07d3032693b44156b2aecef7a8d0943a842
MD5 0914764176215f2b8ca746354bed8bef
BLAKE2b-256 43e3337c9cee2b7fae026ec68058017c652e949f3f02ee65cad328679d11403d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for event_ruler-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aad978c9a463ecdd286f01df86ce28a3e91faee527aa2c34f3e5c4149cba3c34
MD5 3930a25ab67df0788b0eb5d0ce229566
BLAKE2b-256 1fe8d8c094b0b67419573d49151feaf3e16bee04e0d6397b2041c35ac0143f72

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