semvec/pypi-packages huggingface dataset:
aioreloader 0.4.0
Port of tornado reloader to asyncio
License: MIT
Keywords: aiohttp asyncio

aioreloader
===========

.. image:: https://img.shields.io/pypi/v/aioreloader.svg
  :target: https://pypi.org/project/aioreloader/

Tool that reloads your `asyncio <https://docs.python.org/3/library/asyncio.html>`_-based application automatically when you
modify the source code.

Most of code has been borrowed from
`Tornado <https://github.com/tornadoweb/tornado/blob/master/tornado/autoreload.py>`_
reloader built mostly by `@finiteloop <https://github.com/finiteloop>`_
and `@bdarnell <https://github.com/bdarnell>`_. Thanks!

From 0.3.x version aioreloader natively supports `-X` python arguments. Which is recommended way for development debug mode in aiohttp. 

Usage
-----

Here's an example of usage with
`aiohttp <https://github.com/aio-libs/aiohttp>`_ framework:

.. code-block:: python

    app = aiohttp.web.Application()
    aioreloader.start()
    aiohttp.web.run_app(app)

To add any file to watching list (which is not loaded as a python module):

.. code-block:: python

    aioreloader.watch('/etc/app_config.yml')

Requirements
------------

Python - at least 3.5

Installation
------------
.. code-block:: bash

    $ pip install aioreloader