RED DWARF
The smallest Python server
uv add red-dwarf
- ⚒️ No dependencies
- ⚒️ Easy to learn
- ⚒️ Auto-reload
- ⚒️ Powerful
Time will appear here
-
Step 1: Declare routes
import reddwarf as rd @rd.get("/hello") async def hello(request): return rd.html("Hello World!") -
Step 2: Send HTML
@rd.get("/refresh") async def refresh(request): return rd.patch("<p id='notifications'>New message!</p>") -
Step 3: ???
That's it! Red Dwarf is made of 1 class and 3 functions. You'll learn it in no time! -
Step 4: Profit!
Despite being small, Red Dwarf is very capable. You can develop almost any website with it!
Red Dwarf is the ideal tool to develop capable websites in no time.
However, it is strongly opinionated.
- No JSON response
- No WebSockets
- No compression
- No templates
- No error handlers
- No typed parameters
- No telemetry
- No TLS
- No CORS
- No ...
Interested? Read about Red Dwarf's philosophy here.
Want to see it in action? Go check Red Dwarf's examples page.