forked from andreypopp/routr-dsl
-
Notifications
You must be signed in to change notification settings - Fork 0
pombredanne/routr-dsl
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Docstring based DSL for routr. """ My micro web app. It handle the following routes GET /hello?message=str&[format=str] GET /messages?[limit=int]&[offset=int] """ def get_hello(message=None, format=None): return Response(...) def get_messages(id, limit=10, offset=0): return Response(...) if __name__ == '__main__': from routrdsl import parse routes = parse(__doc__, globals())
About
Docstring based DSL for routr
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published