Ported version of starlette to run on Python 3.5
python3 -m pip install git+https://github.com/em92/starlette
Comparing to original starlette it doesn't give you:
- 100% type annotated codebase
- Zero hard dependencies.
Reasons of above is Python 3.5:
- Till 3.5.4 exclusively does not have type annotation
typing.AsyncGenerator
. See commitf691b60784abee7d4aa0fad3ef2da64783cb8c30
async_generator
package is required to port functions, that are used as async generators (yield inside async function is supported in 3.6+).