aiohttp_autoreload-0.0.1
توضیحات
Makes aiohttp server autoreload on source code change
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aiohttp_autoreload-0.0.1 |
| نام | aiohttp_autoreload |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dmitry Litvinenko |
| ایمیل نویسنده | anti1869@gmail.com |
| آدرس صفحه اصلی | https://github.com/anti1869/aiohttp_autoreload |
| آدرس اینترنتی | https://pypi.org/project/aiohttp_autoreload/ |
| مجوز | Apache 2 |
aiohttp_autoreload
==================
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
-----------
.. code::
pip install aiohttp_autoreload
Proposed usage
--------------
.. code:: python
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)
...
نحوه نصب
نصب پکیج whl aiohttp_autoreload-0.0.1:
pip install aiohttp_autoreload-0.0.1.whl
نصب پکیج tar.gz aiohttp_autoreload-0.0.1:
pip install aiohttp_autoreload-0.0.1.tar.gz