Update README.md

pull/39/head
Ciro Spaciari 2022-05-24 16:37:16 -03:00 zatwierdzone przez GitHub
rodzic 4bf11c563e
commit d00e75030d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 24 dodań i 1 usunięć

Wyświetl plik

@ -1,2 +1,25 @@
# uWebSockets.py
Fast WebSocket and Http/Https server using CFFI with C API from uNetworking/uWebSockets
Fast WebSocket and Http/Https server using CFFI with C API from [uNetworking/uWebSockets](https://github.com/uNetworking/uWebSockets)
> This project will adapt the full capi from uNetworking/uWebSockets but for now it's just this.
### Overly simple hello world app
```python
from "uws" import UWSApp
app = UWSApp()
app.get("/", lambda res, req: res.end("Hello World uWS from Python!"))
app.listen(3000, lambda socket, config: print("Listening on port http://localhost:%s now\n" % str(config.port)))
app.run()
```
### pip (working progress)
```bash
pip install git+https://github.com/cirospaciari/uWebSockets.py.git
```
### Run
```bash
pypy3 ./hello_world.py
```