It should convert a python module to databricks and viceversa.
Project description
DatabricksConverter
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:
- if you need to convert a databricks notebook to python, simply run
databricks-converter to-py file/folder --destination your-destination-path
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for databricks_converter-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23282ed7e05a592d50a14be55c7a46849a85ea7eb59b307daf8ea10e37560ac1 |
|
MD5 | be1f0faf56d8dd48283b2f704a8509d6 |
|
BLAKE2b-256 | 281ff8fc193ef1410feb47c1ed6b09f16b47aa1fb48bd32167dba941629e39d8 |
Hashes for databricks_converter-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c83cfc970bc114d9e56e4655e734a469fc1d4ff23244fd7dd5acbb8dc09cf330 |
|
MD5 | 610a18573952a34c3816eebe198f7a42 |
|
BLAKE2b-256 | d3a32ef5c9cd17d39e28e9e593dfa2a4759ce8a30d60bd4552127ece7ba7758c |