This pre-release adds performance improvements in async, ASGI, WSGI, bug fixes, and an CLI tool :tada: :zap: :fire: :rocket:
- Up to 56% faster async
- Up to 38% faster ASGI
- Up to 10% faster WSGI
- General bug fixes and improvements
- [`CLI Tool`](https://docs.socketify.dev/cli.html)
Work in progress:
- ASGI lifespan
- Hot reloading
- Plugins / Extensions
- on_start, on_shutdown hooks
- fs and fs.sync
- fetch
- SSGI
New contributors:
kianmeng with fix typos
AmirHmZz refactoring some code and is helping further refactors
💡 Features
- WebSocket with pub/sub support
- Fast and reliable Http/Https
- Support for Windows, Linux, and macOS Silicon & x64
- Support for [`PyPy3`](https://www.pypy.org/) and [`CPython`](https://github.com/python/cpython)
- Dynamic URL Routing with Wildcard & Parameter support
- Sync and Async Function Support
- Really Simple API
- Fast and Encrypted TLS 1.3 is quicker than most alternative servers can do even unencrypted, cleartext messaging
- Per-SNI HttpRouter Support
- Proxy Protocol v2
- Shared or Dedicated Compression Support
- Max Backpressure, Max Timeout, Max Payload, and Idle Timeout Support
- Automatic Ping / Pong Support
- Per Socket Data
- Middlewares
- Templates Support (examples with [`Mako`](https://github.com/cirospaciari/socketify.py/tree/main/examples/template_mako.py) and [`Jinja2`](https://github.com/cirospaciari/socketify.py/tree/main/examples/template_jinja2.py))
- ASGI Server with pub/sub extension for Falcon
- WSGI Server
:mag_right: Upcoming Features
- In-Memory Cache Tools
- Fetch-like API powered by libuv
- Async file IO powered by libuv
- Full asyncio integration with libuv
- SSGI Server spec and support
- RSGI Server support
- Full Http3 support
- [`HPy`](https://hpyproject.org/) integration to better support [`CPython`](https://github.com/python/cpython), [`PyPy`](https://www.pypy.org/) and [`GraalPython`](https://github.com/oracle/graalpython)
- Hot Reloading
v0.0.1-beta-3.2
Fixed some Bugs with ASGI and WSGI, now compatible with Flask, Django and Emmett
Everybody got faster with socketify.py :heart: :rocket: :zap:
| Framework/lib | Config | Requests/second
| ------------- | :-------------: | -------------: |