Metadata-Version: 2.2
Name: notturno
Version: 0.1.0
Summary: ultra-fast HTTP/ASGI Web Framework.
Author-email: AmaseCocoa <cocoa@amase.cc>
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pydantic>=2.10.6
Requires-Dist: anyio>=4.8.0
Requires-Dist: yarl>=1.18.3
Requires-Dist: h2>=4.1.0
Requires-Dist: aiomultiprocess>=0.9.1
Requires-Dist: google-re2>=1.1.20240702
Provides-Extra: speed
Requires-Dist: orjson>=3.10.15; extra == "speed"
Requires-Dist: fast-query-parsers>=1.0.3; extra == "speed"
Provides-Extra: trio
Requires-Dist: trio>=0.28.0; extra == "trio"
Provides-Extra: asgi
Requires-Dist: uvicorn>=0.34.0; extra == "asgi"

# Notturno
ultra-fast HTTP/ASGI Web Framework.

Supports asyncio/trio (Powered by AnyIO).

## Feature
> [!IMPORTANT]
> Notturno implements an early standalone HTTP/1.1, Websocket server, but it is not perfect and should not be used in a production environment.
- Native HTTP Implementation (Non-ASGI/Standalone Mode)
- Fast HTTP Routing 
- Simple, easy-to-use dependency injection
## Todo
- [ ] Implement HTTP
  - [x] HTTP/1
  - [ ] HTTP/2
  - [ ] HTTP/3 (QUIC)
  - [x] TLS Support
  - [ ] Websocket Support
### About NoctServ
TLS-Ready HTTP server used by Notturno in standalone mode, allowing easy use of HTTP/1.1 without awareness.
### About RegExpRouter
Created with reference to the `RegExpRouter` of [Hono](https://hono.dev/), an ultra-fast web application framework for JavaScript
## Benchmark
| Framework        | Reqs/sec | Avg Latency | Max Latency | Throughput |
|------------------|--------------------------|--------------------------|--------------------------|--------------------------|
| Starlette        | 14134.67                 | 6.90ms                   | 16.10ms                  | 2.45MB/s                 |
| Notturno ASGI    | 3576.66                  | 26.55ms                  | 30.84ms                  | 786.95KB/s               |
| Sanic            | 3576.66                  | 26.55ms                  | 30.84ms                  | 786.95KB/s               |
| Litestar (Async) | 3314.20                  | 28.49ms                  | 298.68ms                 | 712.33KB/s               |
| Quart            | 3542.18                  | 26.74ms                  | 278.96ms                 | 760.31KB/s               |
| Notturno HTTP    | 3182.42                  | 29.75ms                  | 312.40ms                 | 740.26KB/s               |
| FastAPI          | 3112.71                  | 30.33ms                  | 317.33ms                 | 669.73KB/s               |
| Litestar (Sync)  | 2746.70                  | 34.71ms                  | 360.87ms                 | 590.19KB/s               |
| Notturno (Sync)  | 1933.26                  | 49.04ms                  | 512.24ms                 | 453.49KB/s               |
| Native ASGI      | 2010.86                  | 48.44ms                  | 500.22ms                 | 429.49KB/s               |
