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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file databricks_converter-0.0.9.tar.gz.

File metadata

  • Download URL: databricks_converter-0.0.9.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for databricks_converter-0.0.9.tar.gz
Algorithm Hash digest
SHA256 23282ed7e05a592d50a14be55c7a46849a85ea7eb59b307daf8ea10e37560ac1
MD5 be1f0faf56d8dd48283b2f704a8509d6
BLAKE2b-256 281ff8fc193ef1410feb47c1ed6b09f16b47aa1fb48bd32167dba941629e39d8

See more details on using hashes here.

File details

Details for the file databricks_converter-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: databricks_converter-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for databricks_converter-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c83cfc970bc114d9e56e4655e734a469fc1d4ff23244fd7dd5acbb8dc09cf330
MD5 610a18573952a34c3816eebe198f7a42
BLAKE2b-256 d3a32ef5c9cd17d39e28e9e593dfa2a4759ce8a30d60bd4552127ece7ba7758c

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