Makes aiohttp server autoreload on source code change
Project description
Makes aiohttp server autoreload on source code change.
It’s very first, heavily untested version that should be used only in development.
Code is taken from tornado.autoreload module.
call_periodic module is taken from akaIDIOT’s gist https://gist.github.com/akaIDIOT/48c2474bd606cd2422ca
Instalation
pip install aiohttp_autoreload
Proposed usage
import asyncio
import aiohttp_autoreload
debug = True # Or false
loop = asyncio.get_event_loop()
handler = app.make_handler(
debug=debug,
)
if debug:
aiohttp_autoreload.start()
f = loop.create_server(handler, '0.0.0.0', 8080)
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file aiohttp_autoreload-0.0.1.tar.gz
.
File metadata
- Download URL: aiohttp_autoreload-0.0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac4153d42c05324cbfb8790762afe73edc87cdb9205b5e9e14127dcad9c8df4c |
|
MD5 | c6f5085922c5c3b53033e336b5a53527 |
|
BLAKE2b-256 | 6e9d76cd889fe5650a952b538012d305e1dc7eddf06e36642f93a5a93d203dcd |