Skip to main content

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

Release files for databricks-converter 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for databricks-converter 0.0.9
File Size Uploaded
databricks_converter-0.0.9.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for databricks-converter 0.0.9
File Interpreter ABI Platform
databricks_converter-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 kB

Release files / databricks_converter-0.0.9.tar.gz

Download URL databricks_converter-0.0.9.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
23282ed7e05a592d50a14be55c7a46849a85ea7eb59b307daf8ea10e37560ac1
BLAKE2b-256 checksum
How to use checksums
281ff8fc193ef1410feb47c1ed6b09f16b47aa1fb48bd32167dba941629e39d8
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / databricks_converter-0.0.9-py3-none-any.whl

Download URL databricks_converter-0.0.9-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c83cfc970bc114d9e56e4655e734a469fc1d4ff23244fd7dd5acbb8dc09cf330
BLAKE2b-256 checksum
How to use checksums
d3a32ef5c9cd17d39e28e9e593dfa2a4759ce8a30d60bd4552127ece7ba7758c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page