/pysdk_utils

Utility to easily get started with the Databricks Python SDK outside Databricks, all in Python

Primary LanguagePython

DIPConnect - Simplified OAuth2 Authentication for Databricks

DIPConnect is a Python utility designed to simplify the process of authenticating with Databricks APIs using OAuth2. It encapsulates the complexity of Databricks CLI authentication, providing data scientists and developers an effortless way to establish a connection with Databricks services. With just a single connect() command, users can authenticate and start utilizing Databricks APIs for their data engineering and analysis tasks.

🚀 Features

  • 🔒 Easy-to-use interface for Databricks OAuth2 authentication.
  • 🌐 Wraps the Databricks CLI logic for seamless interaction.
  • 👤 Allows authentication using just a profile name.
  • 💡 Designed specifically for data scientists and developers with minimal setup.

📋 Prerequisites

Before you begin, ensure you have met the following requirements:

  • 🐍 Python 3.x installed on your machine.
  • 🛠 Access to Databricks workspace and the ability to generate OAuth tokens.

🛠 Installation

To install DatabricksAuth, follow these steps:

  1. Clone the repository:
    git clone [Your Repository URL]
    cd DIPConnect
    pip install -e .
    

📚 Examples

Check out the examples/ directory for end-to-end examples demonstrating how to use DatabricksAuth in various scenarios.

👥 Contributing

Contributions to DatabricksAuth are welcome and appreciated. If you have suggestions for improvement or want to contribute to the code, please feel free to fork the repository and submit a pull request.

📜 License

MIT