[b]"How to implement a server that allows multiple client connections in Python?"[/b] Alternatively, for a more conve

22 Replies, 1184 Views

Try `aiohttp` if you want HTTP-based stuff. It’s async and handles multiple clients effortlessly.

Example:
```python
from aiohttp import web

async def handle(request):
return web.Response(text="Hello")

app = web.Application()
app.add_routes([web.get('/', handle)])
web.run_app(app)
```
Dead simple.

Messages In This Thread



Users browsing this thread: 1 Guest(s)