pico.readthedocs.io - Pico: Simple Python HTTP APIs — Pico 2.0.4 documentation

Example domain paragraphs

Release v2.0.4. ( Installation )

Pico is a very small HTTP API framework for Python. It enables you to write HTTP APIs with minimal fuss, overhead and boilerplate code.

import pico from pico import PicoApp @pico.expose () def hello ( who = "world" ): s = "hello %s !" % who return s @pico.expose () def goodbye ( who ): s = "goodbye %s !" % who return s app = PicoApp () app . register_module ( __name__ ) Start the development server: