encadre

Encadre, petit framework web Python (Flask) : contrôleurs en greffons, validation, tests
git clone https://git.schurger.org/encadre.git
Log | Files | Refs

README.org (921B)


      1 #+TITLE: encadre
      2 
      3 A small Python web framework: controllers are classes, their methods are the
      4 HTTP routes (=Books.show(self, book_id)= answers on =/books/show/<book_id>=),
      5 the HTTP verb is a suffix of the method name (=save_POST=), and a new API
      6 version is a subclass (=Books_1(Books)=), chosen by the client with an
      7 =X-<application>-Version= header. Controllers are discovered through entry
      8 points; their tests are their =test_*= methods. The web engine is a plugin;
      9 Flask is the one implemented.
     10 
     11 - Documentation: https://schurger.org/pages/encadre-en.html (English),
     12   https://schurger.org/pages/encadre.html (French)
     13 - Code: https://git.schurger.org/encadre/ (=git clone https://git.schurger.org/encadre.git=)
     14 - Package: https://pypi.org/project/encadre/ (=pip install encadre=)
     15 - License: GPLv3, Python >= 3.13
     16 
     17 * Running encadre's own tests
     18 
     19 #+begin_example shell
     20 pip install -e '.[test]'
     21 make tests
     22 #+end_example