Wire the web
Project description
Wire
Easy, fast, stable
Wire is designed to provide the user with the greatest possible comfort when creating Rest APIs or entire websites. Everything is simple and, above all, intuitively designed. No focus on superfluous configurations. Everything works, simply.
🔑 Key features
- intuitive, due to the clear design
- simple, due to the fast learning curve
- practical, through the great editor support
- minimalistic, no superfluous functions
What is Wire and what is not
Wire is not a HighSpeed framework. Wire is probably not ready for production. Wire is a spare time project of mine. Wire is self-contained. It doesn't need anything, except for an ASGI server. So it's like Starlette. I would appreciate if you use Wire, try it and give me your feedback.
Participate in Wire
You are welcome to collaborate on Wire. However, you should maintain the codestyle, and also follow PEP 8 (the Python style guide).
Wire disadvantages
Wire is still deep in development, which is why some features are still missing. So are still missing:
- Setting headers
- Reading and setting cookies
Examples
Here is the most basic example of wire
from wire_web import Wire, Request
app = Wire()
@app.get("/home")
async def home(req: Request):
return "Welcome home"
You want to build a RestAPI? No problem
from wire_web import Wire, Request
app = Wire()
@app.get("/api")
def api(req: Request):
return {"name": "Leo", "age": 16}
You want to send HTML files? Wire got your back
from wire_web import Wire, Request
from wire_web.responses import HTMLResponse
app = Wire()
@app.get("/html")
async def home(req: Request):
with open("home.html", "r") as f:
data = f.read()
return HTMLResponse(data)
Changes incoming
Join our discord !
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wire_web-0.1.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f80f8bd7a3d4403f1740a31f4d21e2939bad743dabafd7293f398908e5ea59a3 |
|
MD5 | e7d5229b8e12802c21d46e5a663c9c51 |
|
BLAKE2b-256 | fdf4540d31f845e736b96216ccfb7cda99a945cf4acfb307d4b39f9e421c5f7f |