stackthread 0.1.0.dev2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of stackthread might be problematic. Click here for more details.

Files changed (53) hide show
  1. stackthread-0.1.0.dev2/.gitignore +53 -0
  2. stackthread-0.1.0.dev2/LICENSE +21 -0
  3. stackthread-0.1.0.dev2/PKG-INFO +51 -0
  4. stackthread-0.1.0.dev2/README.md +22 -0
  5. stackthread-0.1.0.dev2/pyproject.toml +78 -0
  6. stackthread-0.1.0.dev2/src/stackthread/__init__.py +6 -0
  7. stackthread-0.1.0.dev2/src/stackthread/__main__.py +3 -0
  8. stackthread-0.1.0.dev2/src/stackthread/_vendor/THIRD_PARTY_NOTICES.txt +23 -0
  9. stackthread-0.1.0.dev2/src/stackthread/_vendor/extract.mjs +15 -0
  10. stackthread-0.1.0.dev2/src/stackthread/adapters.py +130 -0
  11. stackthread-0.1.0.dev2/src/stackthread/cli.py +342 -0
  12. stackthread-0.1.0.dev2/src/stackthread/config.py +409 -0
  13. stackthread-0.1.0.dev2/src/stackthread/detect.py +150 -0
  14. stackthread-0.1.0.dev2/src/stackthread/lang/__init__.py +1 -0
  15. stackthread-0.1.0.dev2/src/stackthread/lang/js/__init__.py +1 -0
  16. stackthread-0.1.0.dev2/src/stackthread/lang/js/aliases.py +133 -0
  17. stackthread-0.1.0.dev2/src/stackthread/lang/js/build.py +455 -0
  18. stackthread-0.1.0.dev2/src/stackthread/lang/js/worker.py +186 -0
  19. stackthread-0.1.0.dev2/src/stackthread/lang/python/__init__.py +1 -0
  20. stackthread-0.1.0.dev2/src/stackthread/lang/python/build.py +249 -0
  21. stackthread-0.1.0.dev2/src/stackthread/lang/python/extract.py +494 -0
  22. stackthread-0.1.0.dev2/src/stackthread/lang/python/frameworks.py +700 -0
  23. stackthread-0.1.0.dev2/src/stackthread/lang/python/orm.py +300 -0
  24. stackthread-0.1.0.dev2/src/stackthread/lang/python/resolve.py +448 -0
  25. stackthread-0.1.0.dev2/src/stackthread/lineage.py +965 -0
  26. stackthread-0.1.0.dev2/src/stackthread/link.py +130 -0
  27. stackthread-0.1.0.dev2/src/stackthread/logs.py +314 -0
  28. stackthread-0.1.0.dev2/src/stackthread/model.py +161 -0
  29. stackthread-0.1.0.dev2/src/stackthread/paths.py +173 -0
  30. stackthread-0.1.0.dev2/src/stackthread/project.py +414 -0
  31. stackthread-0.1.0.dev2/src/stackthread/report.py +203 -0
  32. stackthread-0.1.0.dev2/src/stackthread/rules.py +48 -0
  33. stackthread-0.1.0.dev2/src/stackthread/server/__init__.py +5 -0
  34. stackthread-0.1.0.dev2/src/stackthread/server/app.py +696 -0
  35. stackthread-0.1.0.dev2/src/stackthread/server/edit.py +108 -0
  36. stackthread-0.1.0.dev2/src/stackthread/server/security.py +73 -0
  37. stackthread-0.1.0.dev2/src/stackthread/static/THIRD_PARTY_NOTICES.txt +379 -0
  38. stackthread-0.1.0.dev2/src/stackthread/static/app.css +1 -0
  39. stackthread-0.1.0.dev2/src/stackthread/static/app.js +29 -0
  40. stackthread-0.1.0.dev2/src/stackthread/static/index.html +16 -0
  41. stackthread-0.1.0.dev2/tests/conftest.py +117 -0
  42. stackthread-0.1.0.dev2/tests/test_cli.py +59 -0
  43. stackthread-0.1.0.dev2/tests/test_config.py +55 -0
  44. stackthread-0.1.0.dev2/tests/test_edit.py +80 -0
  45. stackthread-0.1.0.dev2/tests/test_extend.py +105 -0
  46. stackthread-0.1.0.dev2/tests/test_frameworks.py +216 -0
  47. stackthread-0.1.0.dev2/tests/test_lineage.py +107 -0
  48. stackthread-0.1.0.dev2/tests/test_link.py +31 -0
  49. stackthread-0.1.0.dev2/tests/test_logs.py +279 -0
  50. stackthread-0.1.0.dev2/tests/test_orm.py +97 -0
  51. stackthread-0.1.0.dev2/tests/test_paths.py +37 -0
  52. stackthread-0.1.0.dev2/tests/test_security.py +51 -0
  53. stackthread-0.1.0.dev2/tests/test_server.py +134 -0
@@ -0,0 +1,53 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ .venv/
5
+ venv/
6
+ *.egg-info/
7
+ .pytest_cache/
8
+ .ruff_cache/
9
+ .mypy_cache/
10
+ .coverage
11
+ htmlcov/
12
+ python/dist/
13
+ python/build/
14
+
15
+ # Built assets shipped inside the wheel (built by `npm run build` in js/)
16
+ python/src/stackthread/static/
17
+ python/src/stackthread/_vendor/
18
+
19
+ # Node
20
+ node_modules/
21
+ js/packages/*/dist/
22
+ *.tsbuildinfo
23
+
24
+ # stackthread's own runtime folder in any project
25
+ .stackthread/
26
+
27
+ # Editors and OS
28
+ .idea/
29
+ .vscode/*
30
+ !.vscode/extensions.json
31
+ .DS_Store
32
+ Thumbs.db
33
+
34
+ # Example databases and local package output
35
+ examples/**/*.db
36
+ examples/**/*.sqlite3
37
+ dist-npm/
38
+ /dist/
39
+
40
+ # Kept from the repository's first commit
41
+ *.log
42
+ TEST*.xml
43
+ *.class
44
+ *.jar
45
+ *.war
46
+ *.exe
47
+ *.app
48
+
49
+ # Large media: keep videos and recordings out of the repository
50
+ *.mp4
51
+ *.mov
52
+ *.avi
53
+ *.webm
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 The stackthread authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,51 @@
1
+ Metadata-Version: 2.5
2
+ Name: stackthread
3
+ Version: 0.1.0.dev2
4
+ Summary: Click any element in your running web app and follow it through your code: component, handler, request, endpoint, database.
5
+ Project-URL: Homepage, https://bitbucket.org/ziel-fintech/ide_tool_stackthread
6
+ Project-URL: Documentation, https://bitbucket.org/ziel-fintech/ide_tool_stackthread/src/production/docs/
7
+ Project-URL: Issues, https://bitbucket.org/ziel-fintech/ide_tool_stackthread/issues
8
+ Project-URL: Changelog, https://bitbucket.org/ziel-fintech/ide_tool_stackthread/src/production/CHANGELOG.md
9
+ Author: The stackthread authors
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Keywords: code-navigation,developer-tools,django,fastapi,react,static-analysis,vite
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Environment :: Web Environment
15
+ Classifier: Framework :: Django
16
+ Classifier: Framework :: FastAPI
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3 :: Only
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Programming Language :: Python :: 3.14
25
+ Classifier: Topic :: Software Development
26
+ Classifier: Topic :: Software Development :: Debuggers
27
+ Requires-Python: >=3.11
28
+ Description-Content-Type: text/markdown
29
+
30
+ # stackthread
31
+
32
+ Click any element in your running web app and follow it through your code: the component that drew it, the
33
+ handler it runs, the request it sends, the endpoint that answers, the functions behind it and the tables they
34
+ touch. Open any of them at the right line, edit, save.
35
+
36
+ Works with **FastAPI**, **Django**, **Django REST framework** and **django-ninja** backends, the **Django ORM**,
37
+ **SQLAlchemy** and **SQLModel**, and **React** frontends on **Vite** with React Router or TanStack Router.
38
+
39
+ ```sh
40
+ pip install stackthread
41
+ npm install --save-dev @stackthread/vite # add stackthread() to vite.config.ts, before react()
42
+
43
+ stackthread init # detect the project, write stackthread.toml
44
+ stackthread serve # index, watch, serve the inspector on 127.0.0.1
45
+ ```
46
+
47
+ Then open `http://localhost:5173/__stackthread/` and press **Inspect**.
48
+
49
+ Runs entirely on your machine; no telemetry. No Python dependencies; Node.js 22.18+ reads the frontend.
50
+
51
+ Documentation, examples and source: <https://bitbucket.org/ziel-fintech/ide_tool_stackthread>. MIT licence.
@@ -0,0 +1,22 @@
1
+ # stackthread
2
+
3
+ Click any element in your running web app and follow it through your code: the component that drew it, the
4
+ handler it runs, the request it sends, the endpoint that answers, the functions behind it and the tables they
5
+ touch. Open any of them at the right line, edit, save.
6
+
7
+ Works with **FastAPI**, **Django**, **Django REST framework** and **django-ninja** backends, the **Django ORM**,
8
+ **SQLAlchemy** and **SQLModel**, and **React** frontends on **Vite** with React Router or TanStack Router.
9
+
10
+ ```sh
11
+ pip install stackthread
12
+ npm install --save-dev @stackthread/vite # add stackthread() to vite.config.ts, before react()
13
+
14
+ stackthread init # detect the project, write stackthread.toml
15
+ stackthread serve # index, watch, serve the inspector on 127.0.0.1
16
+ ```
17
+
18
+ Then open `http://localhost:5173/__stackthread/` and press **Inspect**.
19
+
20
+ Runs entirely on your machine; no telemetry. No Python dependencies; Node.js 22.18+ reads the frontend.
21
+
22
+ Documentation, examples and source: <https://bitbucket.org/ziel-fintech/ide_tool_stackthread>. MIT licence.
@@ -0,0 +1,78 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.33"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "stackthread"
7
+ description = "Click any element in your running web app and follow it through your code: component, handler, request, endpoint, database."
8
+ readme = "README.md"
9
+ license = "MIT"
10
+ license-files = ["LICENSE"]
11
+ requires-python = ">=3.11"
12
+ authors = [{ name = "The stackthread authors" }]
13
+ keywords = ["developer-tools", "code-navigation", "static-analysis", "react", "django", "fastapi", "vite"]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Environment :: Web Environment",
17
+ "Framework :: Django",
18
+ "Framework :: FastAPI",
19
+ "Intended Audience :: Developers",
20
+ "Operating System :: OS Independent",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3 :: Only",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Programming Language :: Python :: 3.14",
27
+ "Topic :: Software Development",
28
+ "Topic :: Software Development :: Debuggers",
29
+ ]
30
+ dependencies = []
31
+ dynamic = ["version"]
32
+
33
+ [project.urls]
34
+ Homepage = "https://bitbucket.org/ziel-fintech/ide_tool_stackthread"
35
+ Documentation = "https://bitbucket.org/ziel-fintech/ide_tool_stackthread/src/production/docs/"
36
+ Issues = "https://bitbucket.org/ziel-fintech/ide_tool_stackthread/issues"
37
+ Changelog = "https://bitbucket.org/ziel-fintech/ide_tool_stackthread/src/production/CHANGELOG.md"
38
+
39
+ [project.scripts]
40
+ stackthread = "stackthread.cli:main"
41
+
42
+ [dependency-groups]
43
+ dev = ["pytest>=9.2", "ruff>=0.17.4", "mypy>=2.4"]
44
+
45
+ [tool.hatch.version]
46
+ path = "src/stackthread/__init__.py"
47
+
48
+ [tool.hatch.build.targets.wheel]
49
+ packages = ["src/stackthread"]
50
+ artifacts = ["src/stackthread/static/**", "src/stackthread/_vendor/**"]
51
+
52
+ [tool.hatch.build.targets.sdist]
53
+ include = ["src/stackthread", "tests", "README.md", "LICENSE"]
54
+ artifacts = ["src/stackthread/static/**", "src/stackthread/_vendor/**"]
55
+
56
+ [tool.pytest.ini_options]
57
+ testpaths = ["tests"]
58
+ addopts = "-ra --strict-markers"
59
+ markers = ["node: needs node on PATH and the built JS extractor"]
60
+
61
+ [tool.ruff]
62
+ line-length = 120
63
+ target-version = "py311"
64
+ src = ["src", "tests"]
65
+
66
+ [tool.ruff.lint]
67
+ select = ["E", "F", "W", "I", "B", "UP", "SIM", "RUF", "S", "PTH", "C4"]
68
+ ignore = ["S101", "S603", "S607", "RUF012"]
69
+
70
+ [tool.ruff.lint.per-file-ignores]
71
+ "tests/**" = ["S", "PTH"]
72
+
73
+ [tool.mypy]
74
+ python_version = "3.11"
75
+ strict = true
76
+ warn_unreachable = true
77
+ packages = ["stackthread"]
78
+ mypy_path = "src"
@@ -0,0 +1,6 @@
1
+ """stackthread: click any element in your running web app and follow it through your code."""
2
+
3
+ __version__ = "0.1.0.dev2"
4
+
5
+ #: Version of the graph and facts JSON formats. Bump on any breaking change to their shape.
6
+ SCHEMA_VERSION = 1
@@ -0,0 +1,3 @@
1
+ from stackthread.cli import main
2
+
3
+ raise SystemExit(main())
@@ -0,0 +1,23 @@
1
+ Third-party software bundled in this file. Each package keeps its own licence.
2
+
3
+ ---- @babel/parser@8.1.0 (MIT)
4
+
5
+ Copyright (C) 2012-2014 by various contributors (see AUTHORS)
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ THE SOFTWARE.