Skip to main content

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.

  • Websockets

Examples

Here is the most basic example of wire

from wire 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 import Wire, Request


app = Wire()
templates = FoxTemplates("templates")

@app.get("/api")
def api(req: Request):
	return {"name": "Leo", "age": 16}

You want to send HTML files? Wire got your back

from wire import Wire, Request
from wire.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)

You want to use some templates ? You want to load templates? No problem with Fuchs

from wire import Wire, Request
from wire.templating import FoxTemplates

app = Wire()
templates = FoxTemplates("templates")

@app.get("/home")
async def home(req: Request):
	return templates.render("home.html", name="Leo")

Changes incoming

Join our discord !

Metadata

Release files for wire-web 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wire-web 0.3.2
File Size Uploaded Provenance
wire_web-0.3.2.tar.gz 11.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wire-web 0.3.2
File Interpreter ABI Platform
wire_web-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 25.0 kB

Release files / wire_web-0.3.2.tar.gz

Download URL wire_web-0.3.2.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f1622fc98163fec0ddfc9c4979f352489bc33449e1c35e602c028bc0322d4222
BLAKE2b-256 checksum
How to use checksums
f5149305526fad56d1b23bf1884265bd80bdc027bf32d4dab54f0cfa9d9540a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Linux/5.16.5-arch1-1

Release files / wire_web-0.3.2-py3-none-any.whl

Download URL wire_web-0.3.2-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a41412320f38834ad6e6d16fc514f3fdbd58c2dc41b66794d4760ac83182fb0
BLAKE2b-256 checksum
How to use checksums
b605e6dab4b3f70e75bde2056ace4d033b3020067ab17d207f77caf3f328d31d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Linux/5.16.5-arch1-1

Security for wire-web 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page