A small Python framework meant to easily create programs with unified CLI and API.
Find a file
2015-10-01 21:55:38 +02:00
data Update gitignore and test actionsmap 2014-12-29 18:27:22 +01:00
debian [fix] Remove unneeded debian/install file 2015-10-01 21:55:38 +02:00
doc Add json spec generator 2013-07-02 22:02:26 +02:00
lib/test [clean] Remove YunoHost files 2014-05-16 16:19:40 +02:00
locales [enh] Add a new callback action and start to normalize parsing 2015-07-13 17:44:13 +02:00
moulinette [enh] Allow to print output in a script-usable way for the cli 2015-09-29 14:20:08 +02:00
.gitignore [fix] Properly disconnect from LDAP 2015-07-18 16:28:48 +02:00
generate_api_doc.py [fix] nargs + option should allows to set several args 2014-12-14 17:15:50 +01:00
generate_function_doc.py [enh] Adapt yunohost_tools + backport update/upgrade function from prerefactoring branch 2014-04-26 12:51:35 +00:00
LICENSE Init 2012-10-06 16:22:15 +02:00
README.md [doc] Update description and requirements 2014-05-16 16:09:05 +02:00
setup.py [fix] Do not create directories from setup.py 2015-02-02 15:49:03 +01:00

Moulinette

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

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).

Actions Map

...

Interfaces

...

Authenticators

...

Requirements

  • Python 2.7
  • python-bottle (>= 0.10)
  • python-gnupg (>= 0.3)
  • python-ldap (>= 2.4)
  • PyYAML