Skip to main content

RoutingFilter

This is a Python module to handle routing filters based on dictionaries.

Usage

Load a rule and check whether an event matches the rule or not.

from routingfilter.routing import Routing
routing = Routing()
routing.load_from_dict([test_rule_1])
routing.match(test_event_1)

See the online documentation for further details.

Release steps

  • (If needed) Update the requirements in requirements.txt and setup.py
  • Add a new entry in CHANGELOG.md with the new version number
  • Update the version number in setup.py
  • Commit and merge the changes into master branch
  • Publish a new release with the version number as a tag: the CI will automatically publish the new version un PyPI

Benchmark tests

In order to launch the benchmark tests, run python routing_benchmark.py

Development

  • Install pip install -r requirements.txt and pip install -r requirements_dev.txt in your local virtual environment
  • Setup pre-commit: pre-commit install -c .github/.pre-commit-config.yaml

License

This project is licensed under the GNU LGPLv3 license.

Download files

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

Source Distribution

routingfilter-2.4.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

routingfilter-2.4.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file routingfilter-2.4.0.tar.gz.

File metadata

  • Download URL: routingfilter-2.4.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for routingfilter-2.4.0.tar.gz
Algorithm Hash digest
SHA256 d278803b1aa9c183c196c34ccdcc75356487a04f1ae5cc0b31ea9fb3f2336b09
MD5 7c32687c0c7c0eca55507ff0feb36c18
BLAKE2b-256 c54f9aa88500332d9594bdb9a79c2b8a7b463229a4a1f5a518ab5a8d33b5295e

See more details on using hashes here.

File details

Details for the file routingfilter-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: routingfilter-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for routingfilter-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35c70ab6814667aa7b02a1fbdb5f16c0d52bc7679658c87fb71726fc1aed94ef
MD5 09225b50360015a2e63781965b529dc6
BLAKE2b-256 74d702ee0a82340c50ae6fa577e7db6dfeac42b9ae679315dd2c74c5b1139fb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page