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
Metadata
Release files for xautic 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xautic-1.0.1.tar.gz | 10.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xautic-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.6 kB
Release files / xautic-1.0.1.tar.gz
| Download URL | xautic-1.0.1.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba3e6085fef5d242cc895da42ba03a09f7a79f5cd238c82e1e59cf3bf38fb590
|
|
BLAKE2b-256 checksum How to use checksums |
adbb9a8fa7d65bba0b11ebad5ed0db5c0f068541489fab25f597466c4618114b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / xautic-1.0.1-py3-none-any.whl
| Download URL | xautic-1.0.1-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
659efaa13c5899e2dfa9a9baf41ffc96b506ed4c19eb7fd5461b88edc0ea73df
|
|
BLAKE2b-256 checksum How to use checksums |
5d99f61375cfc15f663883f0b139ad80c971171e1f312c740e9e52a4d1cbb08e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|