Razor is a lightweight web solution that implements a high-performance asynchronous server based on ASGI. It brings deadly speed, just like a razor.
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.
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()
To learn more about the Razor framework, see Official documentation.
If you find a bug, or have suggestions for improvement, please feel free to contribute code.
The Razor Framework is licensed under the MIT license. For details, see License File.
Thanks :
Razor has learned a lot from you.