Skip to content

Instantly share code, notes, and snippets.

View GuillaumeVerdon's full-sized avatar

GuillaumeVerdon

View GitHub Profile
@GuillaumeVerdon
GuillaumeVerdon / rest.py
Created May 12, 2017 16:32 — forked from tliron/rest.py
Simple and functional REST server for Python (2.7) using no dependencies beyond the Python standard library.
#!/usr/bin/env python
'''
Simple and functional REST server for Python (2.7) using no dependencies beyond the Python standard library.
Features:
* Map URI patterns using regular expressions
* Map any/all the HTTP VERBS (GET, PUT, DELETE, POST)
* All responses and payloads are converted to/from JSON for you