Metadata-Version: 2.4
Name: pyhttplib
Version: 2.2.0
Summary: pyhttplib release 2C
Home-page: https://github.com/Omena0/http
Author: Omena0
License: PolyForm Noncommercial 1.0.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: COPYING.md
Dynamic: description
Dynamic: description-content-type
Dynamic: license-file
Dynamic: summary


# httplib

[![pytest](https://github.com/Omena0/http/actions/workflows/pytest.yml/badge.svg)](https://github.com/Omena0/http/actions/workflows/pytest.yml)
[![codecov](https://codecov.io/gh/Omena0/http/branch/master/graph/badge.svg?token=)](https://codecov.io/gh/Omena0/http)

Simple, asynchronous, dependency-free, strictly-typed, fully docstringed HTTP server framework.

## Example

```py
from typing import Any
import httplib as app

@app.route('/')
async def index() -> Any:
    return app.template('static/index.html')

@app.route('/hello/<name>')
async def hello(name: str) -> Any:
    return f'<h1>Hello, {name}!'

@app.error(404)
async def not_found() -> Any:
    return await app.template('static/404.html')

app.serve('localhost')

```
