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
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
Built Distribution
File details
Details for the file xautic-1.0.1.tar.gz
.
File metadata
- Download URL: xautic-1.0.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba3e6085fef5d242cc895da42ba03a09f7a79f5cd238c82e1e59cf3bf38fb590 |
|
MD5 | da34fded8158aac5b9e84d0362f07465 |
|
BLAKE2b-256 | adbb9a8fa7d65bba0b11ebad5ed0db5c0f068541489fab25f597466c4618114b |
File details
Details for the file xautic-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: xautic-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 659efaa13c5899e2dfa9a9baf41ffc96b506ed4c19eb7fd5461b88edc0ea73df |
|
MD5 | c6d9cef759a0bc03aa31919872be8017 |
|
BLAKE2b-256 | 5d99f61375cfc15f663883f0b139ad80c971171e1f312c740e9e52a4d1cbb08e |