deepnote-cli 0.1.2__py3-none-win_amd64.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.
@@ -0,0 +1 @@
1
+ __version__ = "0.1.2"
@@ -0,0 +1,5 @@
1
+ from ._launcher import main
2
+
3
+
4
+ if __name__ == "__main__":
5
+ raise SystemExit(main())
@@ -0,0 +1,38 @@
1
+ from __future__ import annotations
2
+
3
+ import os
4
+ import subprocess
5
+ import sys
6
+ from importlib.resources import files
7
+
8
+
9
+ def _binary_path() -> str:
10
+ executable = "deepnote.exe" if os.name == "nt" else "deepnote"
11
+ path = files("deepnote_cli").joinpath("bin", executable)
12
+
13
+ if not path.is_file():
14
+ raise FileNotFoundError(
15
+ f"Bundled executable not found at {path}. "
16
+ "This wheel may be incomplete or built incorrectly."
17
+ )
18
+
19
+ # Ensure executable bit is set on POSIX systems.
20
+ if os.name != "nt":
21
+ path_str = str(path)
22
+ if not os.access(path_str, os.X_OK):
23
+ current_mode = os.stat(path_str).st_mode
24
+ os.chmod(path_str, current_mode | 0o111)
25
+
26
+ return str(path)
27
+
28
+
29
+ def main() -> int:
30
+ binary = _binary_path()
31
+ argv = [binary, *sys.argv[1:]]
32
+
33
+ if os.name == "nt":
34
+ completed = subprocess.run(argv, check=False)
35
+ return completed.returncode
36
+
37
+ os.execv(binary, argv)
38
+ return 0
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.4
2
+ Name: deepnote-cli
3
+ Version: 0.1.2
4
+ Summary: Deepnote CLI packaged for PyPI
5
+ Author: Deepnote
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/deepnote/deepnote
8
+ Project-URL: Repository, https://github.com/deepnote/deepnote
9
+ Project-URL: Documentation, https://deepnote.com/docs/getting-started
10
+ Keywords: deepnote,cli,notebook,data-science
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Topic :: Software Development :: Build Tools
18
+ Classifier: Topic :: Utilities
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+
22
+ # deepnote-cli
23
+
24
+ Python package for the Deepnote CLI.
25
+
26
+ This package bundles a native `deepnote` executable built from `@deepnote/cli`
27
+ using Bun and exposes it as a Python console script.
28
+
29
+ ## Usage
30
+
31
+ ```bash
32
+ deepnote --help
33
+ deepnote --version
34
+ ```
@@ -0,0 +1,9 @@
1
+ deepnote_cli-0.1.2.data/purelib/deepnote_cli/__init__.py,sha256=O1y2i1C4m602NbHgLdHmpflu9TGf21O6bs3ZEn_x0w4,23
2
+ deepnote_cli-0.1.2.data/purelib/deepnote_cli/__main__.py,sha256=cYap2BUgn2JKQwCnkJoWYf2ulQBhz-QsBMQq9EZwrxc,91
3
+ deepnote_cli-0.1.2.data/purelib/deepnote_cli/_launcher.py,sha256=ljPWyOwARhXBYhreewaOWeug69aJfa6a_YJaScO5WSg,1020
4
+ deepnote_cli-0.1.2.data/purelib/deepnote_cli/bin/deepnote.exe,sha256=eA0ELMktnDCfuQHt1GdMtxg2S0YvMJTPGgHCdBvzV8Q,125032448
5
+ deepnote_cli-0.1.2.dist-info/METADATA,sha256=UWcFRIm9Z_zeWaSZJOnx4uYpRVE_CwFhq5mpRxoYtw0,1090
6
+ deepnote_cli-0.1.2.dist-info/WHEEL,sha256=1wWerFqbqq_Klzkv7Pj7I3SFGWjkhOHZOvsrbEHhfU4,98
7
+ deepnote_cli-0.1.2.dist-info/entry_points.txt,sha256=d3MAysxiWlKesMF9WGJkROX3oZpQLWIRbIIe90d5Ng4,57
8
+ deepnote_cli-0.1.2.dist-info/top_level.txt,sha256=JMEWWSjI-FZBcoTY5Pr_3av0Nl62FylY6QbDBAVskKM,13
9
+ deepnote_cli-0.1.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.0)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ deepnote = deepnote_cli._launcher:main
@@ -0,0 +1 @@
1
+ deepnote_cli