A small Python framework meant to easily create programs with unified CLI and API.
Find a file
Radek S aee0224572 Translated using Weblate (Czech)
Currently translated at 100.0% (56 of 56 strings)

Translation: YunoHost/moulinette
Translate-URL: https://translate.yunohost.org/projects/yunohost/moulinette/cs/
2021-03-22 23:33:52 +00:00
debian Placeholder / bump version to 4.2 for unstable deb builds / CI stuff 2021-01-20 05:21:05 +01:00
doc fix tests, I mean, really fixed this time 2021-03-01 10:52:24 +01:00
locales Translated using Weblate (Czech) 2021-03-22 23:33:52 +00:00
moulinette Black 2021-03-23 00:24:33 +01:00
test Remove copy pasta 2021-01-26 21:38:09 +01:00
.gitignore Test documentation under Tox 2019-08-04 19:46:20 +02:00
.travis.yml fix travis 2021-01-26 11:37:25 +01: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 Merge branch 'stretch-unstable' into simplify-auth-mechanism 2019-11-19 16:55:06 +01:00
setup.cfg Configuration tweaks fox tox/travis to use and check Black 2019-11-25 17:20:34 +01:00
setup.py Update setup.py, tox.ini to python3 only 2020-12-31 19:42:12 +01:00
tox.ini fix doc 2021-01-26 10:40:38 +01: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

Requirements

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

Testing

$ pip install tox
$ tox