Skip to content
/ razor Public

Razor is a lightweight web solution that implements a high-performance asynchronous server based on ASGI. It brings deadly speed, just like a razor.

License

Notifications You must be signed in to change notification settings

askfiy/razor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Razor - A lightweight ASGI framework

introduction

Razor is a lightweight ASGI (Asynchronous Server Gateway Interface) framework designed to simplify the construction and processing of web applications.

It provides a simple and flexible way to handle HTTP requests and build web applications while maintaining extensibility and customization.

attribute

  • Simple route management: Easily define and manage routes, map URLs to handlers.
  • Middleware support: Extend and customize the request processing flow through middleware.
  • ASGI compatible: Full support for the ASGI specification and can be used with ASGI servers such as uvicorn, Hypercorn, etc.
  • Lightweight: Streamlined code base, reducing unnecessary complexity.
  • Flexibility: Allows extensions to be customized according to project needs.

use

Using Razor is fairly simple, and here's a short example:

from razor import Application
from razor import TextResponse

app = Application()

@app.route("/index/")
async def index():
    return TextResponse("Hello Razor")

if __name__ == "__main__":
    app.run()

document

To learn more about the Razor framework, see Official documentation.

contribution

If you find a bug, or have suggestions for improvement, please feel free to contribute code.

license

The Razor Framework is licensed under the MIT license. For details, see License File.

Acknowledgements

Thanks :

Razor has learned a lot from you.

About

Razor is a lightweight web solution that implements a high-performance asynchronous server based on ASGI. It brings deadly speed, just like a razor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages