Watches for file changes & runs tasks against your Python code.
Project description
Code Spy
Watches for file changes & runs tasks against your Python code.
Install
pip install code-spy
Quickstart
from flask import Flask
from code_spy import (
CodeSpy,
MyPyTask,
DevServerTask,
PylintTask,
)
if __name__ == "__main__":
flask = Flask(__name__)
cs = CodeSpy(
path=".",
tasks=[
MyPyTask(path="routes", mypy_file="mypy.ini"),
DevServerTask(wsgi_app=flask),
PylintTask(path="routes", rcfile=".pylintrc"),
]
)
cs.watch()
Tasks
- Mypy ✅
- SimpleHttpServer ✅
- Pylint ✅
- Pytest TODO
- ISort TODO
- Flake8 TODO
- Bandit TODO
- Sphinx TODO
- Custom Task TODO
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
code_spy-0.3.0.tar.gz
(2.7 kB
view details)
File details
Details for the file code_spy-0.3.0.tar.gz.
File metadata
- Download URL: code_spy-0.3.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fc05a5e71888f98d72d06cfd211db6f0f64a92b515f7af53c65ad68e11d1076
|
|
| MD5 |
4eb90cd270075343043e1ef6c67e3aba
|
|
| BLAKE2b-256 |
e6904141dc0e9fdde1b3fbaf46431bdf30919cef2390f0cf50527ee1e8286e31
|