Skip to content

try to create the most lightweight web-framework

Notifications You must be signed in to change notification settings

Xaspy/webserver

Repository files navigation

Xaspy's webserver Xio version 0.2

Try to create the most lightweight web-framework


This is a simple web-framework, which realised routes, but without arguing. This program can handle requests.

For using web-framework you should:

from webserver import Xio

Further create object of webserver with his name by first argument:

app = Xio(__name__)

Create routes to your project, firstly choose path to thing, secondly choose methods available for this (default: methods= ('GET', 'POST', 'DELETE', 'PUT')):

@app.route('/some-path', ['GET'])
def some_throw():
    return 'Hello, my friend!'

Nextly runs server! You can choose one optional argument is_debug, host, port which provides you some info while server works (default: is_debug= False, host='localhost', port=80):

app.run(is_debug=True, host='127.0.0.1')

Contacts:

Voice: +79527326662

VK: vk.com/xaspy

E-mail: 20kolpakov01@gmail.com

About

try to create the most lightweight web-framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published