nbcat 0.8.2__py3-none-any.whl → 0.9.0__py3-none-any.whl
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.
- nbcat/__init__.py +1 -1
- nbcat/main.py +6 -1
- {nbcat-0.8.2.dist-info → nbcat-0.9.0.dist-info}/METADATA +2 -1
- nbcat-0.9.0.dist-info/RECORD +11 -0
- nbcat-0.8.2.dist-info/RECORD +0 -11
- {nbcat-0.8.2.dist-info → nbcat-0.9.0.dist-info}/WHEEL +0 -0
- {nbcat-0.8.2.dist-info → nbcat-0.9.0.dist-info}/entry_points.txt +0 -0
- {nbcat-0.8.2.dist-info → nbcat-0.9.0.dist-info}/licenses/LICENSE +0 -0
nbcat/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.
|
1
|
+
__version__ = "0.9.0"
|
nbcat/main.py
CHANGED
@@ -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(
|
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)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nbcat
|
3
|
-
Version: 0.
|
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
|
@@ -0,0 +1,11 @@
|
|
1
|
+
nbcat/__init__.py,sha256=H9NWRZb7NbeRRPLP_V1fARmLNXranorVM-OOY-8_2ug,22
|
2
|
+
nbcat/enums.py,sha256=ZsuOwYLF0D4PVwSkS74LwoXY0y0DkeBToLBWnmiS97Y,300
|
3
|
+
nbcat/exceptions.py,sha256=Ho7LQz9K70VtIMDNtAwuAtGmb-lFKxGxSj7MN3-EpDA,321
|
4
|
+
nbcat/main.py,sha256=YwFqpt_wZLwqFzlxr9Hon_9QbWYEpAaDzLDsi2t-U3s,5072
|
5
|
+
nbcat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
nbcat/schemas.py,sha256=F5Wl0ZWa5j8RK4H98nDJm69h3oecEuP6wu62823Cxyg,2340
|
7
|
+
nbcat-0.9.0.dist-info/METADATA,sha256=CVTz2g79Sr9_moJraY6pkks5gXqTZMdvFMqszPBnqMY,3412
|
8
|
+
nbcat-0.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
+
nbcat-0.9.0.dist-info/entry_points.txt,sha256=io_GRDsecAkYuCZALsjyea3VBq91VCoSznqlZEAJshY,42
|
10
|
+
nbcat-0.9.0.dist-info/licenses/LICENSE,sha256=7GjUnahXdd5opdvlpJdb1BisLbiXt2iOFhzIUduhdkE,1072
|
11
|
+
nbcat-0.9.0.dist-info/RECORD,,
|
nbcat-0.8.2.dist-info/RECORD
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
nbcat/__init__.py,sha256=B7GiO0rd49YwtLYjvPg4lmCZEDlMTonslQKdSImaMJk,22
|
2
|
-
nbcat/enums.py,sha256=ZsuOwYLF0D4PVwSkS74LwoXY0y0DkeBToLBWnmiS97Y,300
|
3
|
-
nbcat/exceptions.py,sha256=Ho7LQz9K70VtIMDNtAwuAtGmb-lFKxGxSj7MN3-EpDA,321
|
4
|
-
nbcat/main.py,sha256=5OawByiWMAX6LX25-Net8zZDE4_0m7a8GOKMIN-UjJc,4919
|
5
|
-
nbcat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
nbcat/schemas.py,sha256=F5Wl0ZWa5j8RK4H98nDJm69h3oecEuP6wu62823Cxyg,2340
|
7
|
-
nbcat-0.8.2.dist-info/METADATA,sha256=4yOzFXgN_yzTC0X8ItssABMyzvNNPVSp1KBXBeb-hi8,3385
|
8
|
-
nbcat-0.8.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
-
nbcat-0.8.2.dist-info/entry_points.txt,sha256=io_GRDsecAkYuCZALsjyea3VBq91VCoSznqlZEAJshY,42
|
10
|
-
nbcat-0.8.2.dist-info/licenses/LICENSE,sha256=7GjUnahXdd5opdvlpJdb1BisLbiXt2iOFhzIUduhdkE,1072
|
11
|
-
nbcat-0.8.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|