Skip to main content

A DSL to define matching rules

Project description

Mucho DSL

Mucho is a Python library that provides a domain specific language (DSL) to define rules with the form:

rule_name: description
=> match|mismatch|unknown

For example:

like_a_duck: it must be a duck
walks.like_a_duck and
quacks.like_a_duck and
=> match

It comes with:

  • a compiler that transforms the rules into a Python object representation
  • a virtual machine that evaluates the compiled rules and returns the first satisfied one

Documentation Status

Configure Python environment

pipenv install --dev

Run tests

make test-coverage

Generate docs

cd docs
pipenv run make html


See .

Project details

Download files

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

Files for mucho, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size mucho-0.1.3-py3-none-any.whl (29.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mucho-0.1.3.tar.gz (16.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page