Generic Business Logic Implementation for Routing objects as python dictionaries
Project description
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
andsetup.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
andpip 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.
Project details
Release history Release notifications | RSS feed
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.2.1.tar.gz
(12.9 kB
view hashes)
Built Distribution
Close
Hashes for routingfilter-2.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f4b3fca2e8f6b3b4534658cc3adc85e7adb8843aa4b7c8eb59c1baa4451892e |
|
MD5 | 0c047ce8b3f826e464848a2e77f48715 |
|
BLAKE2b-256 | 74c900fa25ede3197d1dcd1108905bcfa64c6a3714f0a1030a8d993098c470e4 |