debug-dojo 0.1.0__tar.gz → 0.2.0__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.
- debug_dojo-0.2.0/.gitignore +207 -0
- debug_dojo-0.2.0/.python-version +1 -0
- debug_dojo-0.2.0/HISTORY.md +25 -0
- debug_dojo-0.2.0/LICENCE +21 -0
- {debug_dojo-0.1.0 → debug_dojo-0.2.0}/PKG-INFO +50 -12
- {debug_dojo-0.1.0 → debug_dojo-0.2.0}/README.md +5 -11
- debug_dojo-0.2.0/examples/test_target.py +24 -0
- debug_dojo-0.2.0/pyproject.toml +74 -0
- debug_dojo-0.2.0/ruff.toml +20 -0
- {debug_dojo-0.1.0 → debug_dojo-0.2.0}/src/debug_dojo/__init__.py +2 -1
- debug_dojo-0.2.0/src/debug_dojo/__main__.py +6 -0
- debug_dojo-0.2.0/src/debug_dojo/all.py +5 -0
- debug_dojo-0.2.0/src/debug_dojo/cli.py +49 -0
- {debug_dojo-0.1.0 → debug_dojo-0.2.0}/src/debug_dojo/installers.py +20 -0
- debug_dojo-0.2.0/src/debug_dojo/version.py +3 -0
- debug_dojo-0.2.0/uv.lock +199 -0
- debug_dojo-0.1.0/pyproject.toml +0 -25
- debug_dojo-0.1.0/src/debug_dojo/all.py +0 -22
- {debug_dojo-0.1.0 → debug_dojo-0.2.0}/src/debug_dojo/compareres.py +0 -0
- {debug_dojo-0.1.0 → debug_dojo-0.2.0}/src/debug_dojo/py.typed +0 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
#poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
#pdm.lock
|
|
116
|
+
#pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
#pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# SageMath parsed files
|
|
135
|
+
*.sage.py
|
|
136
|
+
|
|
137
|
+
# Environments
|
|
138
|
+
.env
|
|
139
|
+
.envrc
|
|
140
|
+
.venv
|
|
141
|
+
env/
|
|
142
|
+
venv/
|
|
143
|
+
ENV/
|
|
144
|
+
env.bak/
|
|
145
|
+
venv.bak/
|
|
146
|
+
|
|
147
|
+
# Spyder project settings
|
|
148
|
+
.spyderproject
|
|
149
|
+
.spyproject
|
|
150
|
+
|
|
151
|
+
# Rope project settings
|
|
152
|
+
.ropeproject
|
|
153
|
+
|
|
154
|
+
# mkdocs documentation
|
|
155
|
+
/site
|
|
156
|
+
|
|
157
|
+
# mypy
|
|
158
|
+
.mypy_cache/
|
|
159
|
+
.dmypy.json
|
|
160
|
+
dmypy.json
|
|
161
|
+
|
|
162
|
+
# Pyre type checker
|
|
163
|
+
.pyre/
|
|
164
|
+
|
|
165
|
+
# pytype static type analyzer
|
|
166
|
+
.pytype/
|
|
167
|
+
|
|
168
|
+
# Cython debug symbols
|
|
169
|
+
cython_debug/
|
|
170
|
+
|
|
171
|
+
# PyCharm
|
|
172
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
173
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
174
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
175
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
176
|
+
#.idea/
|
|
177
|
+
|
|
178
|
+
# Abstra
|
|
179
|
+
# Abstra is an AI-powered process automation framework.
|
|
180
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
181
|
+
# Learn more at https://abstra.io/docs
|
|
182
|
+
.abstra/
|
|
183
|
+
|
|
184
|
+
# Visual Studio Code
|
|
185
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
186
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
188
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
189
|
+
# .vscode/
|
|
190
|
+
|
|
191
|
+
# Ruff stuff:
|
|
192
|
+
.ruff_cache/
|
|
193
|
+
|
|
194
|
+
# PyPI configuration file
|
|
195
|
+
.pypirc
|
|
196
|
+
|
|
197
|
+
# Marimo
|
|
198
|
+
marimo/_static/
|
|
199
|
+
marimo/_lsp/
|
|
200
|
+
__marimo__/
|
|
201
|
+
|
|
202
|
+
# Streamlit
|
|
203
|
+
.streamlit/secrets.toml
|
|
204
|
+
|
|
205
|
+
# IDE specific files
|
|
206
|
+
.idea/
|
|
207
|
+
.vscode/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
## v0.2.0 (2025-07-20)
|
|
2
|
+
|
|
3
|
+
*release tag*: [v0.2.0](https://github.com/pydantic/pydantic/releases/tag/v2.11.6)
|
|
4
|
+
|
|
5
|
+
### What's Changed
|
|
6
|
+
|
|
7
|
+
- Added `dojo` command for easy debugging setup.
|
|
8
|
+
- Added `p()` function for rich printing.
|
|
9
|
+
- Added history file for tracking changes.
|
|
10
|
+
- Moved to `hatch` for building and packaging.
|
|
11
|
+
|
|
12
|
+
#### Fixes
|
|
13
|
+
|
|
14
|
+
- Fixed `pyproject.toml` to point to GitHub repository as the homepage.
|
|
15
|
+
|
|
16
|
+
## v0.1.0 (2025-07-20)
|
|
17
|
+
|
|
18
|
+
*release tag*: [v0.1.0](https://github.com/pydantic/pydantic/releases/tag/v2.11.6)
|
|
19
|
+
|
|
20
|
+
### What's Changed
|
|
21
|
+
|
|
22
|
+
- Initial module to install debugging tools.
|
|
23
|
+
- Debug mode utilities for PuDB, rich tracebacks, and object inspection.
|
|
24
|
+
|
|
25
|
+
#### Fixes
|
debug_dojo-0.2.0/LICENCE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 to bwrob.
|
|
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.
|
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: debug-dojo
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Debbugging dojo for Python developers
|
|
5
|
-
|
|
5
|
+
Project-URL: Homepage, https://github.com/bwrob/debug-dojo
|
|
6
|
+
Project-URL: Documentation, https://github.com/bwrob/debug-dojo/blob/main/README.md
|
|
7
|
+
Project-URL: Source, https://github.com/bwrob/debug-dojo/tree/main/src/debug_dojo
|
|
8
|
+
Project-URL: Changelog, https://github.com/bwrob/debug-dojo/blob/main/HISTORY.md
|
|
6
9
|
Author-email: bwrob <bartosz.marcin.wroblewski@gmail.com>
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
Keywords: debugging,inspection,pudb,rich,tools,traceback
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Software Development :: Debuggers
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
9
22
|
Requires-Python: >=3.10
|
|
23
|
+
Requires-Dist: pudb>=2020.1
|
|
24
|
+
Requires-Dist: rich>=11.0.0
|
|
10
25
|
Description-Content-Type: text/markdown
|
|
11
26
|
|
|
12
27
|
# debug-dojo
|
|
@@ -34,15 +49,17 @@ In the `PuDB` style, you can install all debugging tools and enter the debugging
|
|
|
34
49
|
|
|
35
50
|
```python
|
|
36
51
|
import debug_dojo.all; b()
|
|
52
|
+
|
|
53
|
+
i(object_1) # Inspect an object
|
|
54
|
+
c(object_1, object_2) # Compare two objects side-by-side
|
|
37
55
|
```
|
|
38
56
|
|
|
39
|
-
Where
|
|
40
|
-
In the PuDB interface, you can use the following functions:
|
|
57
|
+
Where:
|
|
41
58
|
|
|
59
|
+
- `b()` is a builtin-injected function that sets a breakpoint using PuDB's `set_trace()`.
|
|
42
60
|
- `i(object_1)` to inspect an object.
|
|
43
61
|
- `c(object_1, object_2)` to compare two objects side-by-side.
|
|
44
62
|
|
|
45
|
-
|
|
46
63
|
### Use individual tools
|
|
47
64
|
|
|
48
65
|
```python
|
|
@@ -78,10 +95,31 @@ ruff check src/debug_dojo --fix
|
|
|
78
95
|
basedpyright src/debug_dojo
|
|
79
96
|
```
|
|
80
97
|
|
|
81
|
-
## License
|
|
82
98
|
|
|
83
|
-
|
|
99
|
+
## Changelog
|
|
100
|
+
|
|
101
|
+
## v0.2.0 (2025-07-20)
|
|
102
|
+
|
|
103
|
+
*release tag*: [v0.2.0](https://github.com/pydantic/pydantic/releases/tag/v2.11.6)
|
|
104
|
+
|
|
105
|
+
### What's Changed
|
|
106
|
+
|
|
107
|
+
- Added `dojo` command for easy debugging setup.
|
|
108
|
+
- Added `p()` function for rich printing.
|
|
109
|
+
- Added history file for tracking changes.
|
|
110
|
+
- Moved to `hatch` for building and packaging.
|
|
111
|
+
|
|
112
|
+
#### Fixes
|
|
113
|
+
|
|
114
|
+
- Fixed `pyproject.toml` to point to GitHub repository as the homepage.
|
|
115
|
+
|
|
116
|
+
## v0.1.0 (2025-07-20)
|
|
117
|
+
|
|
118
|
+
*release tag*: [v0.1.0](https://github.com/pydantic/pydantic/releases/tag/v2.11.6)
|
|
119
|
+
|
|
120
|
+
### What's Changed
|
|
84
121
|
|
|
85
|
-
|
|
122
|
+
- Initial module to install debugging tools.
|
|
123
|
+
- Debug mode utilities for PuDB, rich tracebacks, and object inspection.
|
|
86
124
|
|
|
87
|
-
|
|
125
|
+
#### Fixes
|
|
@@ -23,15 +23,17 @@ In the `PuDB` style, you can install all debugging tools and enter the debugging
|
|
|
23
23
|
|
|
24
24
|
```python
|
|
25
25
|
import debug_dojo.all; b()
|
|
26
|
+
|
|
27
|
+
i(object_1) # Inspect an object
|
|
28
|
+
c(object_1, object_2) # Compare two objects side-by-side
|
|
26
29
|
```
|
|
27
30
|
|
|
28
|
-
Where
|
|
29
|
-
In the PuDB interface, you can use the following functions:
|
|
31
|
+
Where:
|
|
30
32
|
|
|
33
|
+
- `b()` is a builtin-injected function that sets a breakpoint using PuDB's `set_trace()`.
|
|
31
34
|
- `i(object_1)` to inspect an object.
|
|
32
35
|
- `c(object_1, object_2)` to compare two objects side-by-side.
|
|
33
36
|
|
|
34
|
-
|
|
35
37
|
### Use individual tools
|
|
36
38
|
|
|
37
39
|
```python
|
|
@@ -66,11 +68,3 @@ pytest
|
|
|
66
68
|
ruff check src/debug_dojo --fix
|
|
67
69
|
basedpyright src/debug_dojo
|
|
68
70
|
```
|
|
69
|
-
|
|
70
|
-
## License
|
|
71
|
-
|
|
72
|
-
MIT License
|
|
73
|
-
|
|
74
|
-
---
|
|
75
|
-
|
|
76
|
-
*Debugging made delightful!*
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Example script demonstrating cl argument printing and dictionary inspection."""
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
from rich import print as rich_print
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def main() -> None:
|
|
9
|
+
"""Run the command-line interface."""
|
|
10
|
+
if len(sys.argv) > 1:
|
|
11
|
+
rich_print(sys.argv[1::])
|
|
12
|
+
|
|
13
|
+
example_dict = {
|
|
14
|
+
"key1": "value1",
|
|
15
|
+
"key2": "value2",
|
|
16
|
+
"key3": "value3",
|
|
17
|
+
}
|
|
18
|
+
b()
|
|
19
|
+
|
|
20
|
+
i(example_dict)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
if __name__ == "__main__":
|
|
24
|
+
main()
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "debug-dojo"
|
|
3
|
+
description = "Debbugging dojo for Python developers"
|
|
4
|
+
authors = [
|
|
5
|
+
{ name = "bwrob", email = "bartosz.marcin.wroblewski@gmail.com" },
|
|
6
|
+
]
|
|
7
|
+
requires-python = ">=3.10"
|
|
8
|
+
dependencies = ["pudb>=2020.1", "rich>=11.0.0"]
|
|
9
|
+
license = 'MIT'
|
|
10
|
+
license-files = ['LICENSE']
|
|
11
|
+
keywords = [
|
|
12
|
+
"debugging",
|
|
13
|
+
"inspection",
|
|
14
|
+
"pudb",
|
|
15
|
+
"rich",
|
|
16
|
+
"tools",
|
|
17
|
+
"traceback",
|
|
18
|
+
]
|
|
19
|
+
classifiers = [
|
|
20
|
+
"Development Status :: 3 - Alpha",
|
|
21
|
+
"Intended Audience :: Developers",
|
|
22
|
+
"License :: OSI Approved :: MIT License",
|
|
23
|
+
"Operating System :: OS Independent",
|
|
24
|
+
"Programming Language :: Python :: 3.10",
|
|
25
|
+
"Programming Language :: Python :: 3.11",
|
|
26
|
+
"Programming Language :: Python :: 3.12",
|
|
27
|
+
"Programming Language :: Python :: 3.13",
|
|
28
|
+
"Topic :: Software Development :: Debuggers",
|
|
29
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
30
|
+
]
|
|
31
|
+
dynamic = ['readme', 'version']
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Homepage = "https://github.com/bwrob/debug-dojo"
|
|
35
|
+
Documentation = "https://github.com/bwrob/debug-dojo/blob/main/README.md"
|
|
36
|
+
Source = "https://github.com/bwrob/debug-dojo/tree/main/src/debug_dojo"
|
|
37
|
+
Changelog = "https://github.com/bwrob/debug-dojo/blob/main/HISTORY.md"
|
|
38
|
+
|
|
39
|
+
[project.scripts]
|
|
40
|
+
# This defines your command-line script!
|
|
41
|
+
# It points to the 'main' function in your 'cli' module.
|
|
42
|
+
"dojo" = "debug_dojo.cli:main"
|
|
43
|
+
|
|
44
|
+
[dependency-groups]
|
|
45
|
+
dev = ["basedpyright>=1.31.0", "ruff>=0.12.4"]
|
|
46
|
+
|
|
47
|
+
[build-system]
|
|
48
|
+
requires = [
|
|
49
|
+
"hatch-fancy-pypi-readme>=25.1.0",
|
|
50
|
+
"hatchling",
|
|
51
|
+
]
|
|
52
|
+
build-backend = "hatchling.build"
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
[tool.hatch.version]
|
|
56
|
+
path = "src/debug_dojo/version.py"
|
|
57
|
+
|
|
58
|
+
[tool.hatch.metadata]
|
|
59
|
+
allow-direct-references = true
|
|
60
|
+
|
|
61
|
+
[tool.hatch.metadata.hooks.fancy-pypi-readme]
|
|
62
|
+
content-type = 'text/markdown'
|
|
63
|
+
# construct the PyPI readme from README.md and HISTORY.md
|
|
64
|
+
fragments = [
|
|
65
|
+
{ path = 'README.md' },
|
|
66
|
+
{ text = "\n\n## Changelog\n\n" },
|
|
67
|
+
{ path = 'HISTORY.md' },
|
|
68
|
+
]
|
|
69
|
+
|
|
70
|
+
[tool.basedpyright]
|
|
71
|
+
typeCheckingMode = "all"
|
|
72
|
+
pythonVersion = "3.10"
|
|
73
|
+
strict = ["src/debug_dojo/*"]
|
|
74
|
+
ignore = ["examples"]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
line-length = 88
|
|
2
|
+
target-version = "py310"
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
[lint]
|
|
6
|
+
select = ["ALL"]
|
|
7
|
+
ignore = [
|
|
8
|
+
"COM",
|
|
9
|
+
"D203",
|
|
10
|
+
"D211",
|
|
11
|
+
"D213",
|
|
12
|
+
"FA",
|
|
13
|
+
"ISC",
|
|
14
|
+
"T",
|
|
15
|
+
"TC",
|
|
16
|
+
]
|
|
17
|
+
exclude = ["examples"]
|
|
18
|
+
|
|
19
|
+
[format]
|
|
20
|
+
docstring-code-format = true
|
|
@@ -4,7 +4,7 @@ This module provides functions to set up debugging tools like PuDB and Rich Trac
|
|
|
4
4
|
It checks for the availability of these tools and configures them accordingly.
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
from .installers import install_inspect, use_pudb, use_rich_traceback
|
|
7
|
+
from .installers import install_all, install_inspect, use_pudb, use_rich_traceback
|
|
8
8
|
|
|
9
9
|
ii = install_inspect
|
|
10
10
|
pudb = use_pudb
|
|
@@ -12,6 +12,7 @@ rt = use_rich_traceback
|
|
|
12
12
|
|
|
13
13
|
__all__ = [
|
|
14
14
|
"ii",
|
|
15
|
+
"install_all",
|
|
15
16
|
"install_inspect",
|
|
16
17
|
"pudb",
|
|
17
18
|
"rt",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Command-line interface for running Python scripts or modules with debugging tools."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import runpy
|
|
5
|
+
import sys
|
|
6
|
+
from bdb import BdbQuit
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
from rich import print as rich_print
|
|
10
|
+
|
|
11
|
+
from .installers import install_all
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def execute_with_debug(target_name: str, args_for_target: list[str]) -> None:
|
|
15
|
+
"""Execute a target script or module with installation of debugging tools."""
|
|
16
|
+
sys.argv = [target_name, *args_for_target]
|
|
17
|
+
|
|
18
|
+
install_all()
|
|
19
|
+
|
|
20
|
+
if (
|
|
21
|
+
Path(target_name).exists()
|
|
22
|
+
or target_name.endswith(".py")
|
|
23
|
+
or os.sep in target_name
|
|
24
|
+
):
|
|
25
|
+
if not Path(target_name).exists():
|
|
26
|
+
sys.exit(1)
|
|
27
|
+
runner = runpy.run_path
|
|
28
|
+
else:
|
|
29
|
+
runner = runpy.run_module
|
|
30
|
+
|
|
31
|
+
_ = runner(target_name, run_name="__main__")
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def main() -> None:
|
|
35
|
+
"""Run the command-line interface."""
|
|
36
|
+
if len(sys.argv) < 2:
|
|
37
|
+
rich_print(
|
|
38
|
+
"[red]No target specified. Example usage: \n"
|
|
39
|
+
+ "dojo target_to_debug.py --some-input-to-target[/red]"
|
|
40
|
+
)
|
|
41
|
+
sys.exit(1)
|
|
42
|
+
|
|
43
|
+
target_name = sys.argv[1]
|
|
44
|
+
args_for_target = sys.argv[2:]
|
|
45
|
+
try:
|
|
46
|
+
execute_with_debug(target_name, args_for_target)
|
|
47
|
+
except BdbQuit:
|
|
48
|
+
rich_print("[red]Debugging session terminated by user.[/red]")
|
|
49
|
+
sys.exit(0)
|
|
@@ -13,6 +13,9 @@ from rich import (
|
|
|
13
13
|
inspect,
|
|
14
14
|
traceback,
|
|
15
15
|
)
|
|
16
|
+
from rich import (
|
|
17
|
+
print as rich_print,
|
|
18
|
+
)
|
|
16
19
|
|
|
17
20
|
from .compareres import inspect_objects_side_by_side
|
|
18
21
|
|
|
@@ -60,3 +63,20 @@ def install_breakpoint() -> None:
|
|
|
60
63
|
"""Install the breakpoint function."""
|
|
61
64
|
# Set the breakpoint function to use PuDB's set_trace
|
|
62
65
|
builtins.b = pudb.set_trace # pyright: ignore[reportAttributeAccessIssue]
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def install_rich_print() -> None:
|
|
69
|
+
"""Install the breakpoint function."""
|
|
70
|
+
# Set the breakpoint function to use PuDB's set_trace
|
|
71
|
+
builtins.p = rich_print # pyright: ignore[reportAttributeAccessIssue]
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def install_all() -> None:
|
|
75
|
+
"""Install debugging tools."""
|
|
76
|
+
use_pudb()
|
|
77
|
+
use_rich_traceback()
|
|
78
|
+
|
|
79
|
+
install_inspect()
|
|
80
|
+
install_compare()
|
|
81
|
+
install_breakpoint()
|
|
82
|
+
install_rich_print()
|
debug_dojo-0.2.0/uv.lock
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
version = 1
|
|
2
|
+
revision = 2
|
|
3
|
+
requires-python = ">=3.10"
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "basedpyright"
|
|
7
|
+
version = "1.31.0"
|
|
8
|
+
source = { registry = "https://pypi.org/simple" }
|
|
9
|
+
dependencies = [
|
|
10
|
+
{ name = "nodejs-wheel-binaries" },
|
|
11
|
+
]
|
|
12
|
+
sdist = { url = "https://files.pythonhosted.org/packages/20/23/6dc0df43c62fdec401b1ec3aea698ba50c5abfca25259e9f0208b34d7abe/basedpyright-1.31.0.tar.gz", hash = "sha256:900a573a525a0f66f884075c2a98711bb9478e44dc60ffdf182ef681bf8e2c76", size = 22062384, upload-time = "2025-07-16T11:37:29.189Z" }
|
|
13
|
+
wheels = [
|
|
14
|
+
{ url = "https://files.pythonhosted.org/packages/5a/85/cb46707458c514ae959fe139135d8f7231d95faf1c383a56979a3436b965/basedpyright-1.31.0-py3-none-any.whl", hash = "sha256:d7460ddcd3a2332b1c3fd738735d18bf2966d49aed67237efa1f19635199d414", size = 11538999, upload-time = "2025-07-16T11:37:26.446Z" },
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "colorama"
|
|
19
|
+
version = "0.4.6"
|
|
20
|
+
source = { registry = "https://pypi.org/simple" }
|
|
21
|
+
sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
|
|
22
|
+
wheels = [
|
|
23
|
+
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "commonmark"
|
|
28
|
+
version = "0.9.1"
|
|
29
|
+
source = { registry = "https://pypi.org/simple" }
|
|
30
|
+
sdist = { url = "https://files.pythonhosted.org/packages/60/48/a60f593447e8f0894ebb7f6e6c1f25dafc5e89c5879fdc9360ae93ff83f0/commonmark-0.9.1.tar.gz", hash = "sha256:452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60", size = 95764, upload-time = "2019-10-04T15:37:39.817Z" }
|
|
31
|
+
wheels = [
|
|
32
|
+
{ url = "https://files.pythonhosted.org/packages/b1/92/dfd892312d822f36c55366118b95d914e5f16de11044a27cf10a7d71bbbf/commonmark-0.9.1-py2.py3-none-any.whl", hash = "sha256:da2f38c92590f83de410ba1a3cbceafbc74fee9def35f9251ba9a971d6d66fd9", size = 51068, upload-time = "2019-10-04T15:37:37.674Z" },
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[[package]]
|
|
36
|
+
name = "debug-dojo"
|
|
37
|
+
source = { editable = "." }
|
|
38
|
+
dependencies = [
|
|
39
|
+
{ name = "pudb" },
|
|
40
|
+
{ name = "rich" },
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
[package.dev-dependencies]
|
|
44
|
+
dev = [
|
|
45
|
+
{ name = "basedpyright" },
|
|
46
|
+
{ name = "ruff" },
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
[package.metadata]
|
|
50
|
+
requires-dist = [
|
|
51
|
+
{ name = "pudb", specifier = ">=2020.1" },
|
|
52
|
+
{ name = "rich", specifier = ">=11.0.0" },
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
[package.metadata.requires-dev]
|
|
56
|
+
dev = [
|
|
57
|
+
{ name = "basedpyright", specifier = ">=1.31.0" },
|
|
58
|
+
{ name = "ruff", specifier = ">=0.12.4" },
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
[[package]]
|
|
62
|
+
name = "jedi"
|
|
63
|
+
version = "0.19.2"
|
|
64
|
+
source = { registry = "https://pypi.org/simple" }
|
|
65
|
+
dependencies = [
|
|
66
|
+
{ name = "parso" },
|
|
67
|
+
]
|
|
68
|
+
sdist = { url = "https://files.pythonhosted.org/packages/72/3a/79a912fbd4d8dd6fbb02bf69afd3bb72cf0c729bb3063c6f4498603db17a/jedi-0.19.2.tar.gz", hash = "sha256:4770dc3de41bde3966b02eb84fbcf557fb33cce26ad23da12c742fb50ecb11f0", size = 1231287, upload-time = "2024-11-11T01:41:42.873Z" }
|
|
69
|
+
wheels = [
|
|
70
|
+
{ url = "https://files.pythonhosted.org/packages/c0/5a/9cac0c82afec3d09ccd97c8b6502d48f165f9124db81b4bcb90b4af974ee/jedi-0.19.2-py2.py3-none-any.whl", hash = "sha256:a8ef22bde8490f57fe5c7681a3c83cb58874daf72b4784de3cce5b6ef6edb5b9", size = 1572278, upload-time = "2024-11-11T01:41:40.175Z" },
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
[[package]]
|
|
74
|
+
name = "nodejs-wheel-binaries"
|
|
75
|
+
version = "22.17.0"
|
|
76
|
+
source = { registry = "https://pypi.org/simple" }
|
|
77
|
+
sdist = { url = "https://files.pythonhosted.org/packages/d3/86/8962d1d24ff480f4dd31871f42c8e0d8e2c851cd558a07ee689261d310ab/nodejs_wheel_binaries-22.17.0.tar.gz", hash = "sha256:529142012fb8fd20817ef70e2ef456274df4f49933292e312c8bbc7285af6408", size = 8068, upload-time = "2025-06-29T20:24:25.002Z" }
|
|
78
|
+
wheels = [
|
|
79
|
+
{ url = "https://files.pythonhosted.org/packages/5d/53/b942c6da4ff6f87a315033f6ff6fed8fd3c22047d7ff5802badaa5dfc2c2/nodejs_wheel_binaries-22.17.0-py2.py3-none-macosx_11_0_arm64.whl", hash = "sha256:6545a6f6d2f736d9c9e2eaad7e599b6b5b2d8fd4cbd2a1df0807cbcf51b9d39b", size = 51003554, upload-time = "2025-06-29T20:23:47.042Z" },
|
|
80
|
+
{ url = "https://files.pythonhosted.org/packages/e2/b7/7184a9ad2364912da22f2fe021dc4a3301721131ef7759aeb4a1f19db0b4/nodejs_wheel_binaries-22.17.0-py2.py3-none-macosx_11_0_x86_64.whl", hash = "sha256:4bea5b994dd87c20f8260031ea69a97c3d282e2d4472cc8908636a313a830d00", size = 51936848, upload-time = "2025-06-29T20:23:52.064Z" },
|
|
81
|
+
{ url = "https://files.pythonhosted.org/packages/e9/7a/0ea425147b8110b8fd65a6c21cfd3bd130cdec7766604361429ef870d799/nodejs_wheel_binaries-22.17.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:885508615274a22499dd5314759c1cf96ba72de03e6485d73b3e5475e7f12662", size = 57925230, upload-time = "2025-06-29T20:23:56.81Z" },
|
|
82
|
+
{ url = "https://files.pythonhosted.org/packages/23/5f/10a3f2ac08a839d065d9ccfd6d9df66bc46e100eaf87a8a5cf149eb3fb8e/nodejs_wheel_binaries-22.17.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90f38ce034a602bcab534d55cbe0390521e73e5dcffdd1c4b34354b932172af2", size = 58457829, upload-time = "2025-06-29T20:24:01.945Z" },
|
|
83
|
+
{ url = "https://files.pythonhosted.org/packages/ed/a4/d2ca331e16eef0974eb53702df603c54f77b2a7e2007523ecdbf6cf61162/nodejs_wheel_binaries-22.17.0-py2.py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:5eed087855b644c87001fe04036213193963ccd65e7f89949e9dbe28e7743d9b", size = 59778054, upload-time = "2025-06-29T20:24:07.14Z" },
|
|
84
|
+
{ url = "https://files.pythonhosted.org/packages/be/2b/04e0e7f7305fe2ba30fd4610bfb432516e0f65379fe6c2902f4b7b1ad436/nodejs_wheel_binaries-22.17.0-py2.py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:715f413c81500f0770ea8936ef1fc2529b900da8054cbf6da67cec3ee308dc76", size = 60830079, upload-time = "2025-06-29T20:24:12.21Z" },
|
|
85
|
+
{ url = "https://files.pythonhosted.org/packages/ce/67/12070b24b88040c2d694883f3dcb067052f748798f4c63f7c865769a5747/nodejs_wheel_binaries-22.17.0-py2.py3-none-win_amd64.whl", hash = "sha256:51165630493c8dd4acfe1cae1684b76940c9b03f7f355597d55e2d056a572ddd", size = 40117877, upload-time = "2025-06-29T20:24:17.51Z" },
|
|
86
|
+
{ url = "https://files.pythonhosted.org/packages/2e/ec/53ac46af423527c23e40c7343189f2bce08a8337efedef4d8a33392cee23/nodejs_wheel_binaries-22.17.0-py2.py3-none-win_arm64.whl", hash = "sha256:fae56d172227671fccb04461d3cd2b26a945c6c7c7fc29edb8618876a39d8b4a", size = 38865278, upload-time = "2025-06-29T20:24:21.065Z" },
|
|
87
|
+
]
|
|
88
|
+
|
|
89
|
+
[[package]]
|
|
90
|
+
name = "packaging"
|
|
91
|
+
version = "25.0"
|
|
92
|
+
source = { registry = "https://pypi.org/simple" }
|
|
93
|
+
sdist = { url = "https://files.pythonhosted.org/packages/a1/d4/1fc4078c65507b51b96ca8f8c3ba19e6a61c8253c72794544580a7b6c24d/packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f", size = 165727, upload-time = "2025-04-19T11:48:59.673Z" }
|
|
94
|
+
wheels = [
|
|
95
|
+
{ url = "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484", size = 66469, upload-time = "2025-04-19T11:48:57.875Z" },
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
[[package]]
|
|
99
|
+
name = "parso"
|
|
100
|
+
version = "0.8.4"
|
|
101
|
+
source = { registry = "https://pypi.org/simple" }
|
|
102
|
+
sdist = { url = "https://files.pythonhosted.org/packages/66/94/68e2e17afaa9169cf6412ab0f28623903be73d1b32e208d9e8e541bb086d/parso-0.8.4.tar.gz", hash = "sha256:eb3a7b58240fb99099a345571deecc0f9540ea5f4dd2fe14c2a99d6b281ab92d", size = 400609, upload-time = "2024-04-05T09:43:55.897Z" }
|
|
103
|
+
wheels = [
|
|
104
|
+
{ url = "https://files.pythonhosted.org/packages/c6/ac/dac4a63f978e4dcb3c6d3a78c4d8e0192a113d288502a1216950c41b1027/parso-0.8.4-py2.py3-none-any.whl", hash = "sha256:a418670a20291dacd2dddc80c377c5c3791378ee1e8d12bffc35420643d43f18", size = 103650, upload-time = "2024-04-05T09:43:53.299Z" },
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
[[package]]
|
|
108
|
+
name = "pudb"
|
|
109
|
+
version = "2025.1"
|
|
110
|
+
source = { registry = "https://pypi.org/simple" }
|
|
111
|
+
dependencies = [
|
|
112
|
+
{ name = "jedi" },
|
|
113
|
+
{ name = "packaging" },
|
|
114
|
+
{ name = "pygments" },
|
|
115
|
+
{ name = "urwid" },
|
|
116
|
+
{ name = "urwid-readline" },
|
|
117
|
+
]
|
|
118
|
+
sdist = { url = "https://files.pythonhosted.org/packages/93/40/8d17b16a1c2a36d8cc1befb5eda13310ad20fcb347e58bef5e104696e14a/pudb-2025.1.tar.gz", hash = "sha256:a528b29c69ce8b182a337872c5f046071f6d68d3415c6d7bf53bd27c264f58d0", size = 220623, upload-time = "2025-05-06T20:43:18.306Z" }
|
|
119
|
+
wheels = [
|
|
120
|
+
{ url = "https://files.pythonhosted.org/packages/b1/01/069766294390d3e10c77dfb553171466d67ffb51bf72a437650c0a5db86a/pudb-2025.1-py3-none-any.whl", hash = "sha256:f642d42e6054c992b43c463742650aa879fe290d7d7ffdeb21f7d00dc4587a21", size = 89208, upload-time = "2025-05-06T20:43:17.101Z" },
|
|
121
|
+
]
|
|
122
|
+
|
|
123
|
+
[[package]]
|
|
124
|
+
name = "pygments"
|
|
125
|
+
version = "2.19.2"
|
|
126
|
+
source = { registry = "https://pypi.org/simple" }
|
|
127
|
+
sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631, upload-time = "2025-06-21T13:39:12.283Z" }
|
|
128
|
+
wheels = [
|
|
129
|
+
{ url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" },
|
|
130
|
+
]
|
|
131
|
+
|
|
132
|
+
[[package]]
|
|
133
|
+
name = "rich"
|
|
134
|
+
version = "11.0.0"
|
|
135
|
+
source = { registry = "https://pypi.org/simple" }
|
|
136
|
+
dependencies = [
|
|
137
|
+
{ name = "colorama" },
|
|
138
|
+
{ name = "commonmark" },
|
|
139
|
+
{ name = "pygments" },
|
|
140
|
+
]
|
|
141
|
+
sdist = { url = "https://files.pythonhosted.org/packages/eb/be/bd5d6c37f5de55f31cb9432e0d926ceeab1b2ee774bd696557b53bc15012/rich-11.0.0.tar.gz", hash = "sha256:c32a8340b21c75931f157466fefe81ae10b92c36a5ea34524dff3767238774a4", size = 199133, upload-time = "2022-01-09T10:34:56.219Z" }
|
|
142
|
+
wheels = [
|
|
143
|
+
{ url = "https://files.pythonhosted.org/packages/a0/46/05afc812a59890e92dc7bea6bda777e3c06f57be71a8bde2c2568bf682dc/rich-11.0.0-py3-none-any.whl", hash = "sha256:d7a8086aa1fa7e817e3bba544eee4fd82047ef59036313147759c11475f0dafd", size = 215821, upload-time = "2022-01-09T10:34:53.82Z" },
|
|
144
|
+
]
|
|
145
|
+
|
|
146
|
+
[[package]]
|
|
147
|
+
name = "ruff"
|
|
148
|
+
version = "0.12.4"
|
|
149
|
+
source = { registry = "https://pypi.org/simple" }
|
|
150
|
+
sdist = { url = "https://files.pythonhosted.org/packages/9b/ce/8d7dbedede481245b489b769d27e2934730791a9a82765cb94566c6e6abd/ruff-0.12.4.tar.gz", hash = "sha256:13efa16df6c6eeb7d0f091abae50f58e9522f3843edb40d56ad52a5a4a4b6873", size = 5131435, upload-time = "2025-07-17T17:27:19.138Z" }
|
|
151
|
+
wheels = [
|
|
152
|
+
{ url = "https://files.pythonhosted.org/packages/ae/9f/517bc5f61bad205b7f36684ffa5415c013862dee02f55f38a217bdbe7aa4/ruff-0.12.4-py3-none-linux_armv6l.whl", hash = "sha256:cb0d261dac457ab939aeb247e804125a5d521b21adf27e721895b0d3f83a0d0a", size = 10188824, upload-time = "2025-07-17T17:26:31.412Z" },
|
|
153
|
+
{ url = "https://files.pythonhosted.org/packages/28/83/691baae5a11fbbde91df01c565c650fd17b0eabed259e8b7563de17c6529/ruff-0.12.4-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:55c0f4ca9769408d9b9bac530c30d3e66490bd2beb2d3dae3e4128a1f05c7442", size = 10884521, upload-time = "2025-07-17T17:26:35.084Z" },
|
|
154
|
+
{ url = "https://files.pythonhosted.org/packages/d6/8d/756d780ff4076e6dd035d058fa220345f8c458391f7edfb1c10731eedc75/ruff-0.12.4-py3-none-macosx_11_0_arm64.whl", hash = "sha256:a8224cc3722c9ad9044da7f89c4c1ec452aef2cfe3904365025dd2f51daeae0e", size = 10277653, upload-time = "2025-07-17T17:26:37.897Z" },
|
|
155
|
+
{ url = "https://files.pythonhosted.org/packages/8d/97/8eeee0f48ece153206dce730fc9e0e0ca54fd7f261bb3d99c0a4343a1892/ruff-0.12.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e9949d01d64fa3672449a51ddb5d7548b33e130240ad418884ee6efa7a229586", size = 10485993, upload-time = "2025-07-17T17:26:40.68Z" },
|
|
156
|
+
{ url = "https://files.pythonhosted.org/packages/49/b8/22a43d23a1f68df9b88f952616c8508ea6ce4ed4f15353b8168c48b2d7e7/ruff-0.12.4-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:be0593c69df9ad1465e8a2d10e3defd111fdb62dcd5be23ae2c06da77e8fcffb", size = 10022824, upload-time = "2025-07-17T17:26:43.564Z" },
|
|
157
|
+
{ url = "https://files.pythonhosted.org/packages/cd/70/37c234c220366993e8cffcbd6cadbf332bfc848cbd6f45b02bade17e0149/ruff-0.12.4-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a7dea966bcb55d4ecc4cc3270bccb6f87a337326c9dcd3c07d5b97000dbff41c", size = 11524414, upload-time = "2025-07-17T17:26:46.219Z" },
|
|
158
|
+
{ url = "https://files.pythonhosted.org/packages/14/77/c30f9964f481b5e0e29dd6a1fae1f769ac3fd468eb76fdd5661936edd262/ruff-0.12.4-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:afcfa3ab5ab5dd0e1c39bf286d829e042a15e966b3726eea79528e2e24d8371a", size = 12419216, upload-time = "2025-07-17T17:26:48.883Z" },
|
|
159
|
+
{ url = "https://files.pythonhosted.org/packages/6e/79/af7fe0a4202dce4ef62c5e33fecbed07f0178f5b4dd9c0d2fcff5ab4a47c/ruff-0.12.4-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c057ce464b1413c926cdb203a0f858cd52f3e73dcb3270a3318d1630f6395bb3", size = 11976756, upload-time = "2025-07-17T17:26:51.754Z" },
|
|
160
|
+
{ url = "https://files.pythonhosted.org/packages/09/d1/33fb1fc00e20a939c305dbe2f80df7c28ba9193f7a85470b982815a2dc6a/ruff-0.12.4-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e64b90d1122dc2713330350626b10d60818930819623abbb56535c6466cce045", size = 11020019, upload-time = "2025-07-17T17:26:54.265Z" },
|
|
161
|
+
{ url = "https://files.pythonhosted.org/packages/64/f4/e3cd7f7bda646526f09693e2e02bd83d85fff8a8222c52cf9681c0d30843/ruff-0.12.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2abc48f3d9667fdc74022380b5c745873499ff827393a636f7a59da1515e7c57", size = 11277890, upload-time = "2025-07-17T17:26:56.914Z" },
|
|
162
|
+
{ url = "https://files.pythonhosted.org/packages/5e/d0/69a85fb8b94501ff1a4f95b7591505e8983f38823da6941eb5b6badb1e3a/ruff-0.12.4-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:2b2449dc0c138d877d629bea151bee8c0ae3b8e9c43f5fcaafcd0c0d0726b184", size = 10348539, upload-time = "2025-07-17T17:26:59.381Z" },
|
|
163
|
+
{ url = "https://files.pythonhosted.org/packages/16/a0/91372d1cb1678f7d42d4893b88c252b01ff1dffcad09ae0c51aa2542275f/ruff-0.12.4-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:56e45bb11f625db55f9b70477062e6a1a04d53628eda7784dce6e0f55fd549eb", size = 10009579, upload-time = "2025-07-17T17:27:02.462Z" },
|
|
164
|
+
{ url = "https://files.pythonhosted.org/packages/23/1b/c4a833e3114d2cc0f677e58f1df6c3b20f62328dbfa710b87a1636a5e8eb/ruff-0.12.4-py3-none-musllinux_1_2_i686.whl", hash = "sha256:478fccdb82ca148a98a9ff43658944f7ab5ec41c3c49d77cd99d44da019371a1", size = 10942982, upload-time = "2025-07-17T17:27:05.343Z" },
|
|
165
|
+
{ url = "https://files.pythonhosted.org/packages/ff/ce/ce85e445cf0a5dd8842f2f0c6f0018eedb164a92bdf3eda51984ffd4d989/ruff-0.12.4-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:0fc426bec2e4e5f4c4f182b9d2ce6a75c85ba9bcdbe5c6f2a74fcb8df437df4b", size = 11343331, upload-time = "2025-07-17T17:27:08.652Z" },
|
|
166
|
+
{ url = "https://files.pythonhosted.org/packages/35/cf/441b7fc58368455233cfb5b77206c849b6dfb48b23de532adcc2e50ccc06/ruff-0.12.4-py3-none-win32.whl", hash = "sha256:4de27977827893cdfb1211d42d84bc180fceb7b72471104671c59be37041cf93", size = 10267904, upload-time = "2025-07-17T17:27:11.814Z" },
|
|
167
|
+
{ url = "https://files.pythonhosted.org/packages/ce/7e/20af4a0df5e1299e7368d5ea4350412226afb03d95507faae94c80f00afd/ruff-0.12.4-py3-none-win_amd64.whl", hash = "sha256:fe0b9e9eb23736b453143d72d2ceca5db323963330d5b7859d60d101147d461a", size = 11209038, upload-time = "2025-07-17T17:27:14.417Z" },
|
|
168
|
+
{ url = "https://files.pythonhosted.org/packages/11/02/8857d0dfb8f44ef299a5dfd898f673edefb71e3b533b3b9d2db4c832dd13/ruff-0.12.4-py3-none-win_arm64.whl", hash = "sha256:0618ec4442a83ab545e5b71202a5c0ed7791e8471435b94e655b570a5031a98e", size = 10469336, upload-time = "2025-07-17T17:27:16.913Z" },
|
|
169
|
+
]
|
|
170
|
+
|
|
171
|
+
[[package]]
|
|
172
|
+
name = "urwid"
|
|
173
|
+
version = "3.0.2"
|
|
174
|
+
source = { registry = "https://pypi.org/simple" }
|
|
175
|
+
dependencies = [
|
|
176
|
+
{ name = "wcwidth" },
|
|
177
|
+
]
|
|
178
|
+
sdist = { url = "https://files.pythonhosted.org/packages/46/2d/71550379ed6b34968e14f73b0cf8574dee160acb6b820a066ab238ef2d4f/urwid-3.0.2.tar.gz", hash = "sha256:e7cb70ba1e7ff45779a5a57e43c57581ee7de6ceefb56c432491a4a6ce81eb78", size = 855353, upload-time = "2025-05-07T10:48:51.381Z" }
|
|
179
|
+
wheels = [
|
|
180
|
+
{ url = "https://files.pythonhosted.org/packages/b5/ee/2956918f14fd6e4310f7200108b53917f4da713d74c7ccd0d91a2e3a4f18/urwid-3.0.2-py3-none-any.whl", hash = "sha256:94ec1448d0178c881c01845c2b478cdc89f7b71bb65349466dbc99da1965eaac", size = 295994, upload-time = "2025-05-07T10:48:49.173Z" },
|
|
181
|
+
]
|
|
182
|
+
|
|
183
|
+
[[package]]
|
|
184
|
+
name = "urwid-readline"
|
|
185
|
+
version = "0.15.1"
|
|
186
|
+
source = { registry = "https://pypi.org/simple" }
|
|
187
|
+
dependencies = [
|
|
188
|
+
{ name = "urwid" },
|
|
189
|
+
]
|
|
190
|
+
sdist = { url = "https://files.pythonhosted.org/packages/ad/70/be318554495555eba7d8ff6e489f6f74ddb225b24086ba4af62a82e723fd/urwid_readline-0.15.1.tar.gz", hash = "sha256:9301444b86d58f7d26388506b704f142cefd193888488b4070d3a0fdfcfc0f84", size = 9007, upload-time = "2024-09-22T17:51:55.144Z" }
|
|
191
|
+
|
|
192
|
+
[[package]]
|
|
193
|
+
name = "wcwidth"
|
|
194
|
+
version = "0.2.13"
|
|
195
|
+
source = { registry = "https://pypi.org/simple" }
|
|
196
|
+
sdist = { url = "https://files.pythonhosted.org/packages/6c/63/53559446a878410fc5a5974feb13d31d78d752eb18aeba59c7fef1af7598/wcwidth-0.2.13.tar.gz", hash = "sha256:72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5", size = 101301, upload-time = "2024-01-06T02:10:57.829Z" }
|
|
197
|
+
wheels = [
|
|
198
|
+
{ url = "https://files.pythonhosted.org/packages/fd/84/fd2ba7aafacbad3c4201d395674fc6348826569da3c0937e75505ead3528/wcwidth-0.2.13-py2.py3-none-any.whl", hash = "sha256:3da69048e4540d84af32131829ff948f1e022c1c6bdb8d6102117aac784f6859", size = 34166, upload-time = "2024-01-06T02:10:55.763Z" },
|
|
199
|
+
]
|
debug_dojo-0.1.0/pyproject.toml
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[project]
|
|
2
|
-
name = "debug-dojo"
|
|
3
|
-
version = "0.1.0"
|
|
4
|
-
description = "Debbugging dojo for Python developers"
|
|
5
|
-
readme = "README.md"
|
|
6
|
-
authors = [
|
|
7
|
-
{ name = "bwrob", email = "bartosz.marcin.wroblewski@gmail.com" },
|
|
8
|
-
]
|
|
9
|
-
requires-python = ">=3.10"
|
|
10
|
-
dependencies = ["pudb>=2016.1", "rich>=11.0.0"]
|
|
11
|
-
|
|
12
|
-
[project.scripts]
|
|
13
|
-
debug-dojo = "debug_dojo:main"
|
|
14
|
-
|
|
15
|
-
[build-system]
|
|
16
|
-
requires = ["uv_build>=0.7.0,<0.9"]
|
|
17
|
-
build-backend = "uv_build"
|
|
18
|
-
|
|
19
|
-
[tool.basedpyright]
|
|
20
|
-
typeCheckingMode = "all"
|
|
21
|
-
pythonVersion = "3.10"
|
|
22
|
-
strict = ["src/debug_dojo/*"]
|
|
23
|
-
|
|
24
|
-
[dependency-groups]
|
|
25
|
-
dev = ["basedpyright>=1.31.0", "ruff>=0.12.4"]
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"""Install all debugging tools for the debug_dojo package."""
|
|
2
|
-
|
|
3
|
-
from .installers import (
|
|
4
|
-
install_breakpoint,
|
|
5
|
-
install_compare,
|
|
6
|
-
install_inspect,
|
|
7
|
-
use_pudb,
|
|
8
|
-
use_rich_traceback,
|
|
9
|
-
)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
def install_all() -> None:
|
|
13
|
-
"""Install debugging tools."""
|
|
14
|
-
use_pudb()
|
|
15
|
-
use_rich_traceback()
|
|
16
|
-
|
|
17
|
-
install_inspect()
|
|
18
|
-
install_compare()
|
|
19
|
-
install_breakpoint()
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
install_all()
|
|
File without changes
|
|
File without changes
|