PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli du 23/07/2013

⇐ retour index

Create good skeletons of Python applications

jeudi 29 août 2013 à 12:33
Famille Michon, le 28/08/2013 à 13:08
Un script qui génère un squelette minimal pour un projet en Python
(Permalink)

CAFAI, le 29/08/2013 à 12:33
StarterPyth

Generate good skeletons of Python applications.

Creating a new Python program require a lot of work: preparing the setup.py file, initial translation files, ...

StarterPyth aims at doing this for you. Just choose your type of application, and you get a functionnal starting point. You only have to write original code, not starting by copying the same code again and again.

You can decide to create different kinds of Python applications:

   plain-Python package
   command-line application
   Cython-based extension
   Django-based website with custom commands and optional modules
       create basic configurations for nginx and Apache
       examples of tastypie REST APIs
       example of basic views and forms
       use global configuration file (/etc/myproject/project.conf) [TODO]
       basic use of dajax and dajaxice [TODO]

The goal is also to provide many useful extra commands for distribute. Here is a list of commands I want to write:

   generate API index file for Sphinx
   generate doc through Sphinx
   generate Pylint report
   compute dependencies thanks to snake food
   make i18n messages
   compile i18n messages
   generate pseudo-l10n files
   test documentation

I also want to provide templates for other classical Python programs:

   Django application
   Curse application
   PyQt applications
   daemon

You can install it with pip::

$ pip install starterpyth

...or from the source::

$ cd StarterPyth $ sudo python setup.py install

Then you can call it through starterpyth-bin::

$ starterpyth-bin
(Permalink)