nbcat 0.8.2__tar.gz → 0.9.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.
Files changed (32) hide show
  1. {nbcat-0.8.2 → nbcat-0.9.0}/PKG-INFO +2 -1
  2. {nbcat-0.8.2 → nbcat-0.9.0}/pyproject.toml +2 -1
  3. nbcat-0.9.0/src/nbcat/__init__.py +1 -0
  4. {nbcat-0.8.2 → nbcat-0.9.0}/src/nbcat/main.py +6 -1
  5. {nbcat-0.8.2 → nbcat-0.9.0}/uv.lock +12 -1
  6. nbcat-0.8.2/src/nbcat/__init__.py +0 -1
  7. {nbcat-0.8.2 → nbcat-0.9.0}/.github/workflows/ci.yml +0 -0
  8. {nbcat-0.8.2 → nbcat-0.9.0}/.gitignore +0 -0
  9. {nbcat-0.8.2 → nbcat-0.9.0}/LICENSE +0 -0
  10. {nbcat-0.8.2 → nbcat-0.9.0}/Makefile +0 -0
  11. {nbcat-0.8.2 → nbcat-0.9.0}/README.md +0 -0
  12. {nbcat-0.8.2 → nbcat-0.9.0}/src/nbcat/enums.py +0 -0
  13. {nbcat-0.8.2 → nbcat-0.9.0}/src/nbcat/exceptions.py +0 -0
  14. {nbcat-0.8.2 → nbcat-0.9.0}/src/nbcat/py.typed +0 -0
  15. {nbcat-0.8.2 → nbcat-0.9.0}/src/nbcat/schemas.py +0 -0
  16. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/invalid.ipynb +0 -0
  17. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/many_tracebacks.ipynb +0 -0
  18. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/no_min_version.ipynb +0 -0
  19. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/test3.ipynb +0 -0
  20. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/test3_no_metadata.ipynb +0 -0
  21. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/test3_no_min_version.ipynb +0 -0
  22. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/test3_no_worksheets.ipynb +0 -0
  23. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/test3_worksheet_with_no_cells.ipynb +0 -0
  24. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/test4.5.ipynb +0 -0
  25. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/test4.ipynb +0 -0
  26. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/test4custom.ipynb +0 -0
  27. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/test4docinfo.ipynb +0 -0
  28. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/test4jupyter_metadata.ipynb +0 -0
  29. {nbcat-0.8.2 → nbcat-0.9.0}/tests/assets/test4jupyter_metadata_timings.ipynb +0 -0
  30. {nbcat-0.8.2 → nbcat-0.9.0}/tests/conftest.py +0 -0
  31. {nbcat-0.8.2 → nbcat-0.9.0}/tests/test_read_notebook.py +0 -0
  32. {nbcat-0.8.2 → nbcat-0.9.0}/tests/test_render_cell.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbcat
3
- Version: 0.8.2
3
+ Version: 0.9.0
4
4
  Summary: cat for jupyter notebooks
5
5
  Project-URL: Homepage, https://github.com/akopdev/nbcat
6
6
  Project-URL: Repository, https://github.com/akopdev/nbcat
@@ -29,6 +29,7 @@ License: MIT License
29
29
  SOFTWARE.
30
30
  License-File: LICENSE
31
31
  Requires-Python: >=3.10
32
+ Requires-Dist: argcomplete
32
33
  Requires-Dist: pydantic
33
34
  Requires-Dist: requests
34
35
  Requires-Dist: rich
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nbcat"
3
- version = "0.8.2"
3
+ version = "0.9.0"
4
4
  description = "cat for jupyter notebooks"
5
5
  authors = [
6
6
  { name = "Akop Kesheshyan", email = "devnull@akop.dev" }
@@ -12,6 +12,7 @@ license = {file = "LICENSE"}
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.10"
14
14
  dependencies = [
15
+ "argcomplete",
15
16
  "requests",
16
17
  "pydantic",
17
18
  "rich",
@@ -0,0 +1 @@
1
+ __version__ = "0.9.0"
@@ -2,7 +2,9 @@ import argparse
2
2
  import sys
3
3
  from pathlib import Path
4
4
 
5
+ import argcomplete
5
6
  import requests
7
+ from argcomplete.completers import FilesCompleter
6
8
  from pydantic import ValidationError
7
9
  from rich import box
8
10
  from rich.console import Console, RenderableType
@@ -148,7 +150,9 @@ def main():
148
150
  description="cat for Jupyter Notebooks",
149
151
  argument_default=argparse.SUPPRESS,
150
152
  )
151
- parser.add_argument("file", help="Path or URL to a .ipynb notebook", type=str)
153
+ parser.add_argument(
154
+ "file", help="Path or URL to a .ipynb notebook", type=str
155
+ ).completer = FilesCompleter()
152
156
  parser.add_argument(
153
157
  "--version",
154
158
  help="print version information and quite",
@@ -157,6 +161,7 @@ def main():
157
161
  )
158
162
 
159
163
  try:
164
+ argcomplete.autocomplete(parser)
160
165
  args = parser.parse_args()
161
166
  notebook = read_notebook(args.file)
162
167
  print_notebook(notebook)
@@ -11,6 +11,15 @@ wheels = [
11
11
  { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643 },
12
12
  ]
13
13
 
14
+ [[package]]
15
+ name = "argcomplete"
16
+ version = "3.6.2"
17
+ source = { registry = "https://pypi.org/simple" }
18
+ sdist = { url = "https://files.pythonhosted.org/packages/16/0f/861e168fc813c56a78b35f3c30d91c6757d1fd185af1110f1aec784b35d0/argcomplete-3.6.2.tar.gz", hash = "sha256:d0519b1bc867f5f4f4713c41ad0aba73a4a5f007449716b16f385f2166dc6adf", size = 73403 }
19
+ wheels = [
20
+ { url = "https://files.pythonhosted.org/packages/31/da/e42d7a9d8dd33fa775f467e4028a47936da2f01e4b0e561f9ba0d74cb0ca/argcomplete-3.6.2-py3-none-any.whl", hash = "sha256:65b3133a29ad53fb42c48cf5114752c7ab66c1c38544fdf6460f450c09b42591", size = 43708 },
21
+ ]
22
+
14
23
  [[package]]
15
24
  name = "certifi"
16
25
  version = "2025.1.31"
@@ -205,9 +214,10 @@ wheels = [
205
214
 
206
215
  [[package]]
207
216
  name = "nbcat"
208
- version = "0.8.2"
217
+ version = "0.9.0"
209
218
  source = { editable = "." }
210
219
  dependencies = [
220
+ { name = "argcomplete" },
211
221
  { name = "pydantic" },
212
222
  { name = "requests" },
213
223
  { name = "rich" },
@@ -224,6 +234,7 @@ dev = [
224
234
 
225
235
  [package.metadata]
226
236
  requires-dist = [
237
+ { name = "argcomplete" },
227
238
  { name = "pydantic" },
228
239
  { name = "pytest", marker = "extra == 'dev'" },
229
240
  { name = "pytest-cov", marker = "extra == 'dev'" },
@@ -1 +0,0 @@
1
- __version__ = "0.8.2"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes