Skip to main content

Keep your local python scripts installed and in sync with a databricks notebook. Shortens the feedback loop to develop projects using a hybrid enviroment

Project description

DB-Rocket

PyPI version PyPI downloads

Keep your local python scripts installed and in sync with a databricks notebook. Every change on your local machine is automatically applied to the notebook. Shortens the feedback loop to develop git based projects. Removes the need to setup a local development environment.

Installation

pip3 install databricks-rocket

Please sure your python interpreter is 3.7 or higher.

Setup

Make sure you have a token installed for databricks cli (offical documentation). First, create a token for yourself on Databricks. Then set it up locally by running:

databricks configure --token

Then, the databricks token must be exported in your environment.

export DATABRICKS_TOKEN="mydatabrickstoken"

If your project is not a pip package already you have to turn it into one. You can use dbrocket to do that.

dbrocket setup

Will create a setup.py for you.

Using db-rocket

dbrocket launch

The command returns the exact command you have to perform in your notebook next.

Example:

We are now building your Python repo as a library...
Done! in your notebook install the library by running:

%pip install --upgrade pip
%pip install /dbfs/temp/username/databricks_rocket-1.1.3-py3-none-any.whl --force-reinstall

Create a cell in a notebook and paste the content (example below).

img_1.png

Support

  • Databricks: >=7
  • Python: >=3.7
  • Tested on Platform: Linux, MacOs. Windows will probably not work but contributions are welcomed!

Acknowledgments

  • Thanks Leon Poli for the Logo :)
  • Thanks Stephane Leonard for source-code and documentation improvements :)
  • Thanks Malachi Soord for the CICD setup and README improvements

Contributions are welcomed!

Security

For security issues please contact security@getyourguide.com.

Legal

db-rocket is licensed under the Apache License, Version 2.0. See LICENSE for the full text.

Project details


Download files

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

Source Distribution

databricks-rocket-1.3.3.tar.gz (146.6 kB view details)

Uploaded Source

Built Distribution

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

databricks_rocket-1.3.3-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file databricks-rocket-1.3.3.tar.gz.

File metadata

  • Download URL: databricks-rocket-1.3.3.tar.gz
  • Upload date:
  • Size: 146.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for databricks-rocket-1.3.3.tar.gz
Algorithm Hash digest
SHA256 4060a4d2eaca1abdb0781044f89602b823a64021bce3871e751bfcbd1316e525
MD5 e288de4e388c121509a2d1369d681f56
BLAKE2b-256 7b06b85a8e706a2ed9d88514a8314ebe02c1375ad10ddf687f2d7f44e85e3fb2

See more details on using hashes here.

File details

Details for the file databricks_rocket-1.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for databricks_rocket-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 11f7a7d9f336e6fd8b90bb0f30d035250bb7d4bf70db653e50f8bb74c45c13b5
MD5 f4fcb39fbcf4194cdb21f956eef34a84
BLAKE2b-256 4a2125d7f69fc4dc20255b33748926a6db7f7f1192e168031eaebfd315f4e965

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