Skip to content

munirsafi/Glacier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Glacier: A Lightweight Python Web Framework

Glacier is a lightweight web framework being worked on purely for educational purposes and to better understand the development of web architecture in the Python language. Glacier utilizes the asyncio module to run all requests through an event loop powered by uvloop.

Example:

from glacier.server import Glacier

app = Glacier()

@app.route("/", "GET")
def index(request, response):
        response.write('HTTP/1.1 200 OK\r\nContent-Type:text/plain\r\nConnection:close\r\n\r\nTest, World!'.encode())
        response.close()

if __name__ == "__main__":
    app.listen("localhost", 4000)

About

Lightweight Python web framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages