Skip to content

Succira/databricks_dab

Repository files navigation

databricks_dab

The 'databricks_dab' project was generated by using the default-python template.

  • src/: Python source code for this project.
  • resources/: Resource configurations (jobs, pipelines, etc.)
  • tests/: Unit tests for the shared Python code.
  • fixtures/: Fixtures for data sets (primarily used for testing).

Getting started

Choose how you want to work on this project:

(a) Directly in your Databricks workspace, see https://docs.databricks.com/dev-tools/bundles/workspace.

(b) Locally with an IDE like Cursor or VS Code, see https://docs.databricks.com/dev-tools/vscode-ext.html.

(c) With command line tools, see https://docs.databricks.com/dev-tools/cli/databricks-cli.html

If you're developing with an IDE, dependencies for this project should be installed using uv:

Using this project using the CLI

The Databricks workspace and IDE extensions provide a graphical interface for working with this project. It's also possible to interact with it directly using the CLI:

  1. Authenticate to your Databricks workspace, if you have not done so already:

    $ databricks configure
    
  2. To deploy a development copy of this project, type:

    $ databricks bundle deploy --target dev
    

    (Note that "dev" is the default target, so the --target parameter is optional here.)

    This deploys everything that's defined for this project.

  3. Similarly, to deploy a production copy, type:

    $ databricks bundle deploy --target prod
    
  4. To run a job or pipeline, use the "run" command:

    $ databricks bundle run
    
  5. Finally, to run tests locally, use pytest:

    $ uv run pytest
    

About

Demo project for DAB CI/CD use cases in databricks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors