databricks-agent-notebooks 0.1.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 (35) hide show
  1. databricks_agent_notebooks-0.1.0/LICENSE +21 -0
  2. databricks_agent_notebooks-0.1.0/PKG-INFO +39 -0
  3. databricks_agent_notebooks-0.1.0/README.md +11 -0
  4. databricks_agent_notebooks-0.1.0/pyproject.toml +56 -0
  5. databricks_agent_notebooks-0.1.0/setup.cfg +4 -0
  6. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/__init__.py +5 -0
  7. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/__main__.py +9 -0
  8. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/_constants.py +26 -0
  9. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/cli.py +514 -0
  10. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/config/__init__.py +1 -0
  11. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/config/frontmatter.py +84 -0
  12. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/execution/__init__.py +1 -0
  13. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/execution/executor.py +112 -0
  14. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/execution/injection.py +191 -0
  15. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/execution/lineage.py +89 -0
  16. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/execution/rendering.py +251 -0
  17. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/formats/__init__.py +1 -0
  18. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/formats/conversion.py +187 -0
  19. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/formats/dbr_source.py +219 -0
  20. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/integrations/__init__.py +1 -0
  21. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/integrations/databricks/__init__.py +1 -0
  22. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/integrations/databricks/clusters.py +128 -0
  23. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/runtime/__init__.py +1 -0
  24. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/runtime/doctor.py +242 -0
  25. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/runtime/home.py +67 -0
  26. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/runtime/inventory.py +193 -0
  27. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/runtime/kernel.py +577 -0
  28. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/runtime/launcher.py +53 -0
  29. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks/runtime/manifest.py +131 -0
  30. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks.egg-info/PKG-INFO +39 -0
  31. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks.egg-info/SOURCES.txt +33 -0
  32. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks.egg-info/dependency_links.txt +1 -0
  33. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks.egg-info/entry_points.txt +2 -0
  34. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks.egg-info/requires.txt +8 -0
  35. databricks_agent_notebooks-0.1.0/src/databricks_agent_notebooks.egg-info/top_level.txt +1 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Swoop
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,39 @@
1
+ Metadata-Version: 2.4
2
+ Name: databricks-agent-notebooks
3
+ Version: 0.1.0
4
+ Summary: Standalone notebook conversion and local runtime tooling for the databricks-agent-notebooks repository.
5
+ Author: Swoop
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/swoop-inc/databricks-agent-notebooks
8
+ Project-URL: Repository, https://github.com/swoop-inc/databricks-agent-notebooks
9
+ Project-URL: Issues, https://github.com/swoop-inc/databricks-agent-notebooks/issues
10
+ Keywords: databricks,jupyter,notebooks
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: jupytext>=1.16
21
+ Requires-Dist: nbconvert>=7.16
22
+ Requires-Dist: nbformat>=5.10
23
+ Requires-Dist: platformdirs>=4.3
24
+ Requires-Dist: PyYAML>=6.0
25
+ Provides-Extra: dev
26
+ Requires-Dist: pytest>=8.0; extra == "dev"
27
+ Dynamic: license-file
28
+
29
+ # databricks-agent-notebooks (python)
30
+
31
+ Active v1 Python lane for the standalone `databricks-agent-notebooks` repo.
32
+
33
+ The package ships:
34
+
35
+ - one importable package: `databricks_agent_notebooks`
36
+ - one CLI: `agent-notebook`
37
+ - runtime-home primitives for managed runtimes and kernel artifacts
38
+
39
+ The package is designed to be installed and tested as a normal artifact rather than relying on a host-repo virtualenv layout.
@@ -0,0 +1,11 @@
1
+ # databricks-agent-notebooks (python)
2
+
3
+ Active v1 Python lane for the standalone `databricks-agent-notebooks` repo.
4
+
5
+ The package ships:
6
+
7
+ - one importable package: `databricks_agent_notebooks`
8
+ - one CLI: `agent-notebook`
9
+ - runtime-home primitives for managed runtimes and kernel artifacts
10
+
11
+ The package is designed to be installed and tested as a normal artifact rather than relying on a host-repo virtualenv layout.
@@ -0,0 +1,56 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "databricks-agent-notebooks"
7
+ version = "0.1.0"
8
+ description = "Standalone notebook conversion and local runtime tooling for the databricks-agent-notebooks repository."
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [
14
+ { name = "Swoop" },
15
+ ]
16
+ keywords = ["databricks", "jupyter", "notebooks"]
17
+ classifiers = [
18
+ "Intended Audience :: Developers",
19
+ "Operating System :: OS Independent",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ "Topic :: Software Development :: Libraries :: Python Modules",
24
+ ]
25
+ dependencies = [
26
+ "jupytext>=1.16",
27
+ "nbconvert>=7.16",
28
+ "nbformat>=5.10",
29
+ "platformdirs>=4.3",
30
+ "PyYAML>=6.0",
31
+ ]
32
+
33
+ [project.urls]
34
+ Homepage = "https://github.com/swoop-inc/databricks-agent-notebooks"
35
+ Repository = "https://github.com/swoop-inc/databricks-agent-notebooks"
36
+ Issues = "https://github.com/swoop-inc/databricks-agent-notebooks/issues"
37
+
38
+ [project.optional-dependencies]
39
+ dev = [
40
+ "pytest>=8.0",
41
+ ]
42
+
43
+ [project.scripts]
44
+ agent-notebook = "databricks_agent_notebooks.cli:main"
45
+
46
+ [tool.pytest.ini_options]
47
+ testpaths = ["tests"]
48
+ addopts = "-q"
49
+ pythonpath = ["src"]
50
+
51
+ [tool.setuptools]
52
+ package-dir = { "" = "src" }
53
+
54
+ [tool.setuptools.packages.find]
55
+ where = ["src"]
56
+ include = ["databricks_agent_notebooks*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,5 @@
1
+ """Standalone Databricks notebook conversion and execution tooling."""
2
+
3
+ __all__ = ["__version__"]
4
+
5
+ __version__ = "0.1.0"
@@ -0,0 +1,9 @@
1
+ """Allow ``python -m databricks_agent_notebooks`` invocation."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import sys
6
+
7
+ from .cli import main
8
+
9
+ sys.exit(main())
@@ -0,0 +1,26 @@
1
+ """Shared constants for the databricks_agent_notebooks library."""
2
+
3
+ from __future__ import annotations
4
+
5
+ # Kernel metadata per language — single source of truth.
6
+ # Used by _converter.py, _dbr_source.py, and cli.py to set/read kernel metadata.
7
+ KERNELSPECS: dict[str, dict[str, str]] = {
8
+ "python": {
9
+ "name": "python3",
10
+ "display_name": "Python 3",
11
+ "language": "python",
12
+ },
13
+ "scala": {
14
+ "name": "scala212-dbr-connect",
15
+ "display_name": "Scala 2.12 (Databricks Connect)",
16
+ "language": "scala",
17
+ },
18
+ "sql": {
19
+ "name": "python3",
20
+ "display_name": "Python 3 (SQL wrapper)",
21
+ "language": "sql",
22
+ },
23
+ }
24
+
25
+ DATABRICKS_CONNECT_VERSION = "16.4.7"
26
+ DATABRICKS_CONNECT_LINE = "16.4"