Contains generic tools for Databricks, such as connectors and debug printers.
Project description
README
Using this project
You can use this project from within any py file running on a databricks cluster.
Example:
from databricks_python_generics import DebugPrinter, DebugLevel
Debugprinter.msg('this is a test message', DebugLevel.Informational)
Requirements
Note that the compute cluster using this library will demand Python >=3.12. The Databricks Runtime 16.4 LTS or newer are good.
Developing on this project
It is recommended to build, publish and test from within the databricks environment.
The project root contains several _Databricks_[action] notebooks that will do just that.
For developing it is also recommended to check the files locally with an advanced intellisense tool like PyLance.
First time installation instructions for Windows
Make sure you have installed python 3.12.X and that the python variable is available in PATH.
Also you need to have the databricks-cli installed.
Login to the databricks portal and go to Settings -> User Settings -> Developer -> Access Tokens and create an access token, temporarily store the value.
Run databricks configure and enter the host name when prompted like https://adb-3658969401163793.13.azuredatabricks.net. Provide the previously generated token when asked.
Run the first_install.bat file.py
Developing on Windows
Run venvs\dev\Scripts\activate
If you changed the required packages in the pyproject.toml then you can run the rebuild_dev script to make sure your venv matches those requirements.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file databricks_generic_tools-0.1.1-py3-none-any.whl.
File metadata
- Download URL: databricks_generic_tools-0.1.1-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c56edf630d6d195d3c8a32358045aeb82c584aae61c5a32bed6f3bf0d62fa395
|
|
| MD5 |
a71dd22a169ed652a403fe9c815646a6
|
|
| BLAKE2b-256 |
73e24656bd900bd783408b8e5abb14447e7d85a19ec8842e07d21e2f06625a83
|