Features Reference

Features are the base building blocks of Medikit. In each project, you can “require” a bunch of features, it will tell medikit what to handle.

Each feature works the same, giving you a “configuration” object when you require it. You can use this configuration object to change the default behaviour of Medikit.

For example, to add a requirement to the python feature, write in your Projectfile:

from medikit import require

python = require('python')

python.add_requirements('requests >=2,<3')

For custom behaviors that goes further than just changing feature configurations, you can listen to a number of events exposed by the features.

Here is an example:

from medikit import require, listen

make = require('make')

def on_make_generate(event):
        'echo "Hello world"',