The following gist is to help you getting started using this library
--8<-- "tests/examples/block.py"
- Create a
BlockDatabase
holding the patterns to match against - Annotate patterns with flags and
tag
object to be able to distinguish, which pattern matched - Create a match handler function that will be run when a match is found
- You can stop or continue searching with the callback's return value
- Define a context object to store state in your match handler callback
- Build a scanner object to connect the database with your callback and context
- Feed data to execute the scanner