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
if __name__ == "__main__":
flask = Flask(__name__)
cs = CodeSpy(
path=".",
tasks=[
MyPyTask(path="routes", mypy_file="mypy.ini"),
DevServerTask(wsgi_app=flask),
]
)
cs.watch()
Tasks
- Mypy ✅
- SimpleHttpServer ✅
- Pylint TODO
- 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.2.0.tar.gz
(2.7 kB
view details)
File details
Details for the file code_spy-0.2.0.tar.gz.
File metadata
- Download URL: code_spy-0.2.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 |
d17fe5bf374483916261bf278774c2c55b9262d927364827344b4256f3df8b76
|
|
| MD5 |
2360850625632c627ba7c974f073d2f2
|
|
| BLAKE2b-256 |
b8d219935e8bc0f024efc8a64858dbb891290a97d6c63fa4fd8d889050ea4c68
|