Bumps [starlette](https://github.com/encode/starlette) from 0.25.0 to 0.40.0. - [Release notes](https://github.com/encode/starlette/releases) - [Changelog](https://github.com/encode/starlette/blob/master/docs/release-notes.md) - [Commits](https://github.com/encode/starlette/compare/0.25.0...0.40.0) --- updated-dependencies: - dependency-name: starlette dependency-version: 0.40.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Mojifinder: Unicode character search examples
Examples from Fluent Python, Second Edition—Chapter 22, Asynchronous Programming.
How to run
web_mojifinder.py
web_mojifinder.py is a Web application built with FastAPI. To run it, first
install FastAPI and an ASGI server. The application was tested
with Uvicorn.
$ pip install fastapi uvicorn
Now you can use uvicorn to run the app.
$ uvicorn web_mojifinder:app
Finally, visit http://127.0.0.1:8000/ with your browser to see the search form.
Directory contents
These files can be run as scripts directly from the command line:
charindex.py: libray used by the Mojifinder examples. Also works as CLI search script.tcp_mojifinder.py: TCP/IP Unicode search server. Depends only on the Python 3.9 standard library. Use a telnet application as client.web_mojifinder_bottle.py: Unicode Web service. Depends onbottle.pyandstatic/form.html. Use an HTTP browser as client.
This program requires an ASGI server to run it:
web_mojifinder.py: Unicode Web service. Depends on FastAPI andstatic/form.html.
Support files:
bottle.py: local copy of the single-file Bottle Web framework.requirements.txt: list of dependencies forweb_mojifinder.py.static/form.html: HTML form used by theweb_*examples.README.md: this file 🤓