Metadata-Version: 2.1
Name: cosmo
Version: 0.2.1
Summary: A web server implementation that uses raw sockets.
Home-page: https://github.com/kronifer/cosmo
License: Apache-2.0
Author: Kronifer
Author-email: 44979306+Kronifer@users.noreply.github.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: loguru (>=0.5.3,<0.6.0)
Description-Content-Type: text/markdown

# Cosmo

Cosmo is a multithreaded python webserver that I'm developing in my spare time. This README will be updated at a later date.

## Example Server

```py
from cosmo import App, Request

app = App("0.0.0.0", 8080)

@app.route("/", "text/html")
def index(request: Request):
    return f"<h1>{request.address}</h1>"

app.serve()
```
