Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

databricks_generic_tools-0.1.1-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file databricks_generic_tools-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for databricks_generic_tools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c56edf630d6d195d3c8a32358045aeb82c584aae61c5a32bed6f3bf0d62fa395
MD5 a71dd22a169ed652a403fe9c815646a6
BLAKE2b-256 73e24656bd900bd783408b8e5abb14447e7d85a19ec8842e07d21e2f06625a83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page