Light-weight Python framework for building REST APIs.
Project description
cleaREST
Light-weight Python framework for building REST APIs
Examples:
GET Hello world:
from wsgiref.simple_server import make_server from clearest import application, GET @GET("/") def hello(): return "hello world!" httpd = make_server("", 8000, application) httpd.serve_forever()
Output:
curl localhost:8000
hello world!
POST var:
from wsgiref.simple_server import make_server from clearest import application, POST @POST("/") def hello(what): return "hello {what}!".format(what=what) httpd = make_server("", 8000, application) httpd.serve_forever()
Output:
curl –data “what=world” localhost:8000
hello world!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cleaREST-0.1.0.zip
(11.2 kB
view hashes)
Built Distribution
Close
Hashes for cleaREST-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6faf0920dbd1c658f3670a8f32e4de81baaf8b814d2c6b60f46bf98a24f16c37 |
|
MD5 | 95ad16587cb1b039881fa3dc32f06508 |
|
BLAKE2b-256 | c63c8aea2097a8deada9c44f5cb7e61626e85e2f7648d1e079b5e95987258132 |