Skip to main content

It should convert a python module to databricks and viceversa.

Project description

DatabricksConverter

Upload to pypi Run application tests

Version

0.0.9

Description

This cli tool helps you to work in your favourite python IDE and then converts the files in databricks notebook. You can also do the reverse conversion. Starting from a databricks notebook, you can convert it into a python file.

Why

I struggled a lot working in the databricks interface because you don't have a lot of IDE feature like:

  • autocomplete
  • code analysis
  • code linting
  • testing

How it works

You can install the package with pip: pip install Databricks2Py Then you have two options:

  1. if you need to convert a databricks notebook to python, simply run databricks-converter to-py file/folder --destination your-destination-path
  2. if you need to convert a python module to a databricks notebook, simply run databricks-converter to-databricks file/folder --destination your-destination-path

The converted files have a specific suffix _to_py.py and _to_databricks.py. So, if you do not want to put these files under version control, you must add these rules to you .gitignore file:

# in .gitignore
*_to_py.py
*_to_databricks.py

TODO

  • Improve conversion of complex import path

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_converter-0.0.9.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

databricks_converter-0.0.9-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

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