Nebula - 3.1.0
Release notes for Nebula 3.1.0
Whats new?
- Overall optimization of Nebula
- Added Nebula.get , Nebula.post, Nebula.put, Nebula.delete
- Added return_class to Nebula.route and methods above
- Added Nebula.run (uses run_dev)
- Added render_template (sync) and render_template_async
- Added render_template_string (sync) and render_template_async
Example Code
from nebula import Nebula
from nebula.response import HTMLResponse
app = Nebula(__file__, "localhost", 8000)
@app.get("/", return_class=HTMLResponse)
async def root(request) -> None:
return "<h1>Welcome to Nebula!</h1>"
if __name__ == "__main__":
app.run()Summary
This update introduces optimizations and some new functions, while keeping the old code compatible.