Databricks Session Util
A simple utility for spark and mlflow session objects
Setup
Quick Install
python -m pip install databricks_session
Build from source
Clone the repository
git clone https://github.com/Broomva/databricks_session.git
Install the package
cd databricks_session && make install
Build manually
After cloning, create a virtual environment
conda create -n databricks_session python=3.10
conda activate databricks_session
Install the requirements
pip install -r requirements.txt
Run the python installation
python setup.py install
Usage
The deployment requires a .env file created under local folder:
touch .env
It should have a schema like this:
databricks_experiment_name=''
databricks_experiment_id=''
databricks_host=''
databricks_token=''
databricks_username=''
databricks_password=''
databricks_cluster_id=''
databricks_sql_http_path=''
import databricks_session
# Create a Spark session
spark = DatabricksSparkSession().get_session()
# Connect to MLFLow Artifact Server
mlflow_session = DatabricksMLFlowSession().get_session()
Metadata
Release files for databricks-session 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| databricks_session-0.3.0.tar.gz | 3.9 kB | Without provenance | Details for databricks_session-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| databricks_session-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for databricks_session-0.3.0-py3-none-any.whl |
Total release size: 8.7 kB
Release files / databricks_session-0.3.0.tar.gz
| Download URL | databricks_session-0.3.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
540b63ece04ed687b2c8e5f54f31b0aeefe8f6dd9d5212507f646c3772ec2888
|
|
BLAKE2b-256 checksum How to use checksums |
7c9b785cfacc271a4d354a6c7d29f45c7c6c23c4d520faf1753c8926522ddc9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / databricks_session-0.3.0-py3-none-any.whl
| Download URL | databricks_session-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e634633f64454f132af88ba31262a6b6082889f057495ba248cf472a04a5d2ad
|
|
BLAKE2b-256 checksum How to use checksums |
c8ee4aa5453dd11eb4e75ba7e5ca618bd20e48bd03cd44d704c6cbb6abc4d715
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for databricks-session 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.