{"id":34055258,"url":"https://github.com/hjh17/dbloy","last_synced_at":"2026-04-01T22:09:47.170Z","repository":{"id":53532051,"uuid":"204882020","full_name":"hjh17/dbloy","owner":"hjh17","description":"Continuous Delivery tool for PySpark Notebooks based jobs on Databricks","archived":false,"fork":false,"pushed_at":"2021-03-25T23:00:53.000Z","size":605,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-28T00:12:09.760Z","etag":null,"topics":["ci-cd","cli","databricks","databricks-notebooks","pyspark","pyspark-notebook","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hjh17.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-28T08:16:01.000Z","updated_at":"2025-05-29T18:43:44.000Z","dependencies_parsed_at":"2022-09-21T02:56:18.165Z","dependency_job_id":null,"html_url":"https://github.com/hjh17/dbloy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hjh17/dbloy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjh17%2Fdbloy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjh17%2Fdbloy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjh17%2Fdbloy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjh17%2Fdbloy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hjh17","download_url":"https://codeload.github.com/hjh17/dbloy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjh17%2Fdbloy/sbom","scorecard":{"id":465915,"data":{"date":"2025-08-11","repo":{"name":"github.com/hjh17/dbloy","commit":"dbc98abf3b048579aa2919bf98151bc2e5d89a59"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-176 / GHSA-3pqx-4fqf-j49f","Warn: Project is vulnerable to: PYSEC-2020-96 / GHSA-6757-jp84-gxfx","Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T12:30:03.417Z","repository_id":53532051,"created_at":"2025-08-19T12:30:03.417Z","updated_at":"2025-08-19T12:30:03.417Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci-cd","cli","databricks","databricks-notebooks","pyspark","pyspark-notebook","python3"],"created_at":"2025-12-14T02:51:31.655Z","updated_at":"2026-04-01T22:09:47.124Z","avatar_url":"https://github.com/hjh17.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DBloy\n\nA Databricks deployment CLI tool to enable Continuous Delivery of PySpark Notebooks based jobs.\n\n\n## Installation\n\n````bash\n$ pip install dbloy\n````\n\n## Usage\n\nAuthenticate with Databricks using authentication token:\n\n```bash\n$ dbloy configure \n```\n\nUpdate Databricks Job \n\n```bash\n$ dbloy apply --deploy-yml deploy.yml --configmap-yml configmap.yml --version \u003cmy_version_number\u003e\n```\n\nwhere `deploy.yml` and `configmap.yml` contain the Job specification. The Job version is specified in `\u003cmy_version_number\u003e`\n\n\n## Workflow\n\n![databricks workflow](https://databricks.com/wp-content/uploads/2017/10/CI-CD-BLOG4@2x-1024x211.png \"databricks workflow\")\nsource: https://databricks.com/blog/2017/10/30/continuous-integration-continuous-delivery-databricks.html \n \n![example workflow](https://github.com/hjh17/dbloy/blob/master/uml.png?raw=true \"example workflow\")\n \n\n\n \n## Example Usage\n\nSee [example/gitlab_my-etl-job](https://github.com/hjh17/dbloy/tree/master/example/gitlab_my-etl-job) for a example ETL repository using Gitlab's CI/CD.\n\n\nA Deployment requires the following:\n\n* Deployment manifest\n* Configuration manifest\n* A main Databricks Notebook source file available locally. \n* (Optional) Attached python library containing the core logic. This allows easier unit testing of \n\n\n### Creating a Deployment\n\n\n\ndeploy.yml\n\n````yaml\nkind: Deployment\nmetadata:\n  name: my-etl-job\n  workspace: Shared\ntemplate:\n  job:\n    name: My ETL Job\n  notifications:\n    email:\n      no_alert_for_skipped_runs: true\n      on_failure :\n        - my_email@my_org.com\n  base_notebook: main\n  notebooks:\n    - EPHEMERAL_NOTEBOOK_1: notebook_name1\n    - EPHEMERAL_NOTEBOOK_2: notebook_name2\n  libraries:\n    - egg_main: dbfs:/python35/my_python_lib/my_python_lib-VERSION-py3.5.egg\n    - egg: dbfs:/python35/static_python_lib.egg\n    - pypi:\n        package: scikit-learn==0.20.3\n    - pypi:\n        package: statsmodels==0.10.1\n    - pypi:\n        package: prometheus-client==0.7.1\n    - jar: dbfs:/FileStore/jars/e9b87e4c_c754_4707_a62a_44ef47535b39-azure_cosmosdb_spark_2_4_0_2_11_1_3_4_uber-38021.jar\n  run:\n    max_concurrent_runs: 1\n    max_retries: 1\n    min_retry_interval_millis: 600000\n    retry_on_timeout: true\n    timeout_seconds: 10800\n````\n\nconfigmap.yml\n\n````yaml\nkind: ConfigMap\nmetadata:\n  namespace: production\nparams:\n  DB_URL: production_db_url_1\n  DB_PASSWORD: production_password123\njob:\n  id: 289\n  schedule:\n    quartz_cron_expression: \"0 0 0 * * ?\"\n    timezone_id: \"Europe/Berlin\"\n  max_retries: \"1\"\ncluster:\n  spark_version: \"5.3.x-scala2.11\"\n  node_type_id: \"Standard_DS3_v2\"\n  driver_node_type_id: \"Standard_DS3_v2\"\n  autoscale:\n    min_workers: 1\n    max_workers: 2\n  spark_env_vars:\n    PYSPARK_PYTHON: \"/databricks/python3/bin/python3\"\n\n````\n\nIn this example:\n\n* Job id `289` on Databricks, indicated by the `.job.id` field in `configmap.yml`, will be updated with the name `My ETL Job`, indicated by the `.template.job.name` field in `deploy.yml`.\n* A cluster will be created on demand which is specified by the field `.cluster` in `configmap.yml`. See https://docs.databricks.com/api/latest/clusters.html#request-structure for a complete list of cluster settings. **Note**: Setting `.cluster.existing_cluster_id` will use an existing cluster. \n* Libraries specified by the field `.template.libraries` in `.deploy.yml` will be installed on the cluster. See https://docs.databricks.com/api/latest/libraries.html#library. \n **Note**: The field `.template.libraries.egg_main` is reserved for python `.egg` file that is versioned with the ETL job. \n For example when the main logic of the ETL job is put into a library. The `.egg` version number is expected to be the same as the ETL version number.\n* The main task notebook that will be executed by the job is defined by the field `.template.base_notebook` in `deploy.yml`. Task parameters are specified by the field `.params` in `configmap.yml` which will be accessible in the Notebooks via `dbutils`.\n* The notebook `main`, indicated by the field `.template.base_notebook` is the Task notebook. This notebook should be found in the workspace `/Shared/my-etl-job/\u003cmy_version_number\u003e/main` specified by the fields `.metadata` and  `.template.base_notebook` in `deploy.yml`. The version number `\u003cmy_version_number\u003e` will be specified in the CLI command.\n* Two ephemeral notebooks are available under `/Shared/my-etl-job/\u003cmy_version_number\u003e/notebook_name1` and `/Shared/my-etl-job/\u003cmy_version_number\u003e/notebook_name2`. This allows the main task to execute nested Notebooks, e.g.\n```\nnotebook_path_1 = dbutils.widgets.get(\"EPHEMERAL_NOTEBOOK_1\")\ndbutils.notebook.run(notebook_path_1)\n```\n \n \nCreate the Deployment by running the following command:\n\n```bash\n$ dbloy apply --deploy-yml deploy.yml --configmap-yml configmap.yml --version \u003cmy_version_number\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjh17%2Fdbloy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhjh17%2Fdbloy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjh17%2Fdbloy/lists"}