A small Python framework meant to easily create programs with unified CLI and API.
Find a file
2021-08-27 20:46:36 +02:00
.github/workflows Add autoblack github action (#283) 2021-08-23 15:01:15 +02:00
debian Merge branch 'dev' into rework-authenticator-system 2021-08-20 10:13:02 +02:00
doc 🎨 Format Python code with Black 2021-08-23 13:25:51 +00:00
locales Unused i18n keys 2021-08-27 19:02:16 +02:00
moulinette Simplify overly complex code about cache management 2021-08-27 20:46:36 +02:00
test Moaaar linter/test fixes zbgrbl 2021-08-27 19:48:04 +02:00
.gitignore Test documentation under Tox 2019-08-04 19:46:20 +02:00
CONTRIBUTORS.md [enh][love] Add CONTRIBUTORS.md 2016-12-22 16:28:23 +01:00
LICENSE Init 2012-10-06 16:22:15 +02:00
pytest.ini [mod] during tests failed to translate string is an error 2019-07-28 21:29:50 +02:00
README.md Remove requirement section in the README, the requirements are in debian/control ... 2021-05-08 14:51:11 +02:00
setup.cfg Configuration tweaks fox tox/travis to use and check Black 2019-11-25 17:20:34 +01:00
setup.py Merge branch 'dev' into rework-authenticator-system 2021-08-27 18:43:57 +02:00
tox.ini tests: Try to fix tox-gh-action? 2021-08-20 13:49:50 +02:00

Build Status GitHub license

Moulinette

The moulinette is a Python package that allows to quickly and easily prototype interfaces for your application.

Translation status

Issues

Overview

Initially, the moulinette was an application made for the YunoHost project in order to regroup all its related operations into a single program called moulinette. Those operations were available from a command-line interface and a Web server providing an API. Moreover, the usage of these operations (e.g. required/optional arguments) was defined into a simple yaml file - called actionsmap. This file was parsed in order to construct an ArgumentParser object and to parse the command arguments to process the proper operation.

During a long refactoring with the goal of unify both interfaces, the idea to separate the core of the YunoHost operations has emerged. The core kept the same name moulinette and try to follow the same initial principle. An Actions Map - which defines available operations and their usage - is parsed and it's used to process an operation from several unified Interfaces. It also supports a configuration mechanism - which allows to restrict an operation on an interface for example (see Authenticators).

Dev Documentation

https://moulinette.readthedocs.org

Testing

$ pip install tox
$ tox