Skip to main content

xautic: live reloading with Python.

Project description

Live reloading with Python!

According to this widely accepted StackOverflow answer, Live reloading reloads or refreshes the entire app when a file changes. For example, if you were four links deep into your navigation and saved a change, live reloading would restart the app and load the app back to the initial route. And that’s what this module does!

The inspiration behind writing this module comes the python based web frameworks, Flask and Django. These beast of a packages provide not only the best and easiest public APIs for creating and deploying websites but also provide one nifty feature of live reloading. The feature is subtle but effective and mostly productive. Ability to quickly reload and execute the code comes handy when you are trying to meet the deadlines. One just needs to write, modify and save files as they wish and voila! You have the latest execution.

The usage of this module is as simple and intuitive as it gets. Just slap a decorator on your target function and let xautic do its work.

Installation

Install and update using pip:

$ pip install -U xautic

Example

# Save this file as example.py
from xautic import debug

@debug
def func():
    return "Hello World"
$ python3 example.py
Starting xautic v1.0.1 live reloading (/home/example.py) on Thu May 04, 2021 - 13:23:00, press CTRL+C to quit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xautic-1.0.1.tar.gz (10.7 kB view hashes)

Uploaded Source

Built Distribution

xautic-1.0.1-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page