Skip to content
/ dendy Public

Dendy is a micro python web framework for creating REST API.

License

Notifications You must be signed in to change notification settings

cnds/dendy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dendy

Micro python web framework for creating REST API.

Hello World

from dendy import request, response, API
from gevent.pywsgi import WSGIServer


class HelloWorld(object):

    def get(self, name):
        return 'Hello %s!' % nam``e

    def post(self, name):
        result = response.set_status(
            400,
            reason='body content is {0}, name is {1}'.format(request.body,
                                                             name))
        return result

app = API()
app.add_route('/{name}', HelloWorld())


if __name__ == '__main__':
    WSGIServer(('', 8000), app).serve_forever()

Features

  • easy to create REST API
  • support middleware and hooks
  • CPython3.6+ support

Installation

$ pip install dendy

About

Dendy is a micro python web framework for creating REST API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages