Metadata-Version: 2.1
Name: databricks-converter
Version: 0.0.9
Summary: It should convert a python module to databricks and viceversa.
Home-page: https://github.com/aless10/convert-py-2-databricks
Author: aless10
License: LICENSE
Project-URL: Bug Tracker, https://github.com/aless10/convert-py-2-databricks/issues
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
Requires-Dist: attrs (==21.2.0)
Requires-Dist: click (==8.0.1)
Requires-Dist: iniconfig (==1.1.1)
Requires-Dist: packaging (==20.9)
Requires-Dist: pluggy (==0.13.1)
Requires-Dist: py (==1.10.0)
Requires-Dist: pyparsing (==2.4.7)
Requires-Dist: pytest (==6.2.4)
Requires-Dist: toml (==0.10.2)

# DatabricksConverter

[![Upload to pypi](https://github.com/aless10/convert-py-2-databricks/actions/workflows/publish-to-pypi.yaml/badge.svg)](https://github.com/aless10/convert-py-2-databricks/actions/workflows/publish-to-pypi.yaml)
[![Run application tests](https://github.com/aless10/convert-py-2-databricks/actions/workflows/run-tests.yaml/badge.svg)](https://github.com/aless10/convert-py-2-databricks/actions/workflows/run-tests.yaml)


## 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


