A DSL to define matching rules
Project description
.zip
Description: # Mucho DSL
Mucho is a Python library that provides a domain specific language (DSL) to define
rules with the form:
```
rule_name: description
conditions
=> match|mismatch|unknown
```
For example:
```
like_a_duck: it must be a duck
walks.like_a_duck and
quacks.like_a_duck and
looks.like_a_duck
=> 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
See https://mucho.readthedocs.io .
[![Documentation Status](https://readthedocs.org/projects/mucho/badge/?version=latest)](https://mucho.readthedocs.io/en/latest/?badge=latest)
## Install
```
pip install mucho
```
## Contribute
### Checkout the project and configure Python environment
```
git clone git@bitbucket.org:sancorva/mucho.git
cd mucho
pipenv install --dev
```
### Run tests
```
make test-coverage
```
### Generate docs
```
cd docs
pipenv run make html
```
Platform: UNKNOWN
Description-Content-Type: text/markdown
Description: # Mucho DSL
Mucho is a Python library that provides a domain specific language (DSL) to define
rules with the form:
```
rule_name: description
conditions
=> match|mismatch|unknown
```
For example:
```
like_a_duck: it must be a duck
walks.like_a_duck and
quacks.like_a_duck and
looks.like_a_duck
=> 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
See https://mucho.readthedocs.io .
[![Documentation Status](https://readthedocs.org/projects/mucho/badge/?version=latest)](https://mucho.readthedocs.io/en/latest/?badge=latest)
## Install
```
pip install mucho
```
## Contribute
### Checkout the project and configure Python environment
```
git clone git@bitbucket.org:sancorva/mucho.git
cd mucho
pipenv install --dev
```
### Run tests
```
make test-coverage
```
### Generate docs
```
cd docs
pipenv run make html
```
Platform: UNKNOWN
Description-Content-Type: text/markdown
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mucho-0.2.tar.gz
(16.3 kB
view hashes)
Built Distribution
mucho-0.2-py3-none-any.whl
(29.7 kB
view hashes)