{"id":46371278,"url":"https://github.com/joegasewicz/code-spy","last_synced_at":"2026-03-05T04:01:50.626Z","repository":{"id":324576240,"uuid":"1097625442","full_name":"joegasewicz/code-spy","owner":"joegasewicz","description":"Watches for file changes \u0026 runs tasks against your Python code.","archived":false,"fork":false,"pushed_at":"2025-11-25T20:35:27.000Z","size":1551,"stargazers_count":12,"open_issues_count":18,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-05T22:23:26.094Z","etag":null,"topics":["developer-tools","mypy","pylint","pytest","simple-server","task-runner","wsgi"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/code-spy","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joegasewicz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-16T14:38:53.000Z","updated_at":"2025-12-10T21:41:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/joegasewicz/code-spy","commit_stats":null,"previous_names":["joegasewicz/dev-runner","joegasewicz/code-spy"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/joegasewicz/code-spy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joegasewicz%2Fcode-spy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joegasewicz%2Fcode-spy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joegasewicz%2Fcode-spy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joegasewicz%2Fcode-spy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joegasewicz","download_url":"https://codeload.github.com/joegasewicz/code-spy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joegasewicz%2Fcode-spy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30109075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-tools","mypy","pylint","pytest","simple-server","task-runner","wsgi"],"created_at":"2026-03-05T04:01:49.008Z","updated_at":"2026-03-05T04:01:50.602Z","avatar_url":"https://github.com/joegasewicz.png","language":"Python","readme":"# Code Spy\n\nPython developer tool that watches for file changes \u0026 runs tasks against your Python code.\n\n![Terminal Example](examples/codyspy2.png)\n\n### Install\n```bash\n pip install code-spy\n```\n\n### Quickstart\n\n```python\nfrom flask import Flask  # Or any WSGI application framework\nfrom code_spy.core import CodeSpy\nfrom code_spy.tasks import (\n    MyPyTask,\n    DevServerTask,\n    PylintTask,\n    PytestTask,\n    BlackTask,\n)\n\nif __name__ == \"__main__\":\n    # Create an instance of a WSGI application\n    flask = Flask(__name__)\n\n    # Pass the code spy shipped tasks to the `tasks` kwarg:\n    cs = CodeSpy(\n        watch_path=\".\",  # Optional: The path that codespy will run tasks against on file system change.\n        interval=1,  # Optional (Default is 1 second) Restrict how often codespy can rerun tasks.\n        ignore_dirs=[\"some_file\"],  # Optional: Ignore files \u0026 directories from this directory path.\n        log_length=100, # Optional: Restrict the character length of logs.\n        tasks=[\n            MyPyTask(path=\"routes\", mypy_file=\"mypy.ini\"),\n            PylintTask(path=\"routes\", rcfile=\".pylintrc\"),\n            PytestTask(path=\"tests\"),\n            BlackTask(path=\"routes\"),\n            DevServerTask(wsgi_app=flask),\n        ]\n    )\n\n    # Now call `watch`, that's it!\n    cs.watch()\n```\n\n### Tasks\n- **Mypy** ✅\n- **SimpleHttpServer** ✅\n- **Pylint** ✅\n- **Pytest** ✅\n- **Black** ✅\n \n### Tasks Requiring Library Installs\nTo restrict the amount of third party libraries that ship with code-spy, the rest of the tasks\nrequire library installs:\n\n- **ISort** *TODO*\n- **Flake8** *TODO*\n- **Bandit** *TODO*\n- **Sphinx** *TODO*\n- **Custom Task** *TODO*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoegasewicz%2Fcode-spy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoegasewicz%2Fcode-spy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoegasewicz%2Fcode-spy/lists"}