Skip to main content

The shift-left CLI to manage your shift-left project

Project description

Shift_left

CLI to manage Flink projects and migrate batch SQL pipelines to real-time Apache Flink on Confluent Cloud. Supports KSQL, Spark SQL, and dbt as sources.

Documentation: https://jbcodeforce.github.io/shift_left_utils/

Install

pip install shift_left

Major features

  • Project management: Initialize Flink projects (Kimball or data-product layout), validate config, list Kafka topics and Flink compute pools, and report cross-product or single-child tables.
  • Pipeline deployment: Build table inventory and pipeline metadata, deploy DDL/DML with execution planning. Optional parallel deploy, dml-only, and blue-green via modified-files tracking.
  • Table lifecycle: Create table scaffolding, run AI migration per table (with optional recursion), and manage unit tests (init, run, delete) against Confluent Cloud.
  • SQL migration: Migrate KSQL, Spark SQL, and dbt to Flink SQL using LLM-based agents (OpenAI-compatible, including local Ollama). Handles table detection, DDL creation, and translation with validation.
  • Unit test harness: Develop synthetic test data from SQL DML semantic, with test suite and test case metadata to help Data Engineers to unit test their SQL on Confluent Cloud.
  • Blue-green and operations: List modified files by branch for safe deployments, integrate with your CI/CD and Confluent Cloud APIs.

Quick start

# Initialize a Flink project
shift_left project init my-flink-project /path/to/project --project-type data_product

# Validate Confluent Cloud config
shift_left project validate-config

# Migrate a table from Spark SQL to Flink SQL (one time work)
shift_left table migrate my_table /path/to/script.sql /path/to/staging --source-type spark --recursive

# Build pipeline execution plan
shift_left table build-inventory
shift_left pipeline build-all-metadata
shift_left pipeline build-execution-plan  /path/to/inventor --table-name my_table --may-start-de

# Deploy pipelines from inventory
shift_left pipeline deploy /path/to/inventory --table-name my_table

Documentation

Full guides, tutorials, CLI reference, and MCP server setup:

https://jbcodeforce.github.io/shift_left_utils/

  • User guide: environment setup, recipes, pipeline management, blue-green deployment
  • Tutorials: setup, project management, migration with AI
  • CLI reference and MCP (Model Context Protocol) integration for Cursor and other tools

Requirements

  • Python 3.12
  • Confluent Cloud (Kafka and Flink). For AI migration: OpenAI-compatible API or local Ollama.

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shift_left-0.1.51.tar.gz (891.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shift_left-0.1.51-py3-none-any.whl (223.3 kB view details)

Uploaded Python 3

File details

Details for the file shift_left-0.1.51.tar.gz.

File metadata

  • Download URL: shift_left-0.1.51.tar.gz
  • Upload date:
  • Size: 891.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for shift_left-0.1.51.tar.gz
Algorithm Hash digest
SHA256 b1741d281e3a424898c9459a2ae44d6e119ebbff15978598690841364ed33441
MD5 d969b5ffb304710261a87d69d24f78f1
BLAKE2b-256 c4dbd800d204c61fe0b79d25e236adcc0af816feb51add2192f54a9b066e6e05

See more details on using hashes here.

File details

Details for the file shift_left-0.1.51-py3-none-any.whl.

File metadata

  • Download URL: shift_left-0.1.51-py3-none-any.whl
  • Upload date:
  • Size: 223.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for shift_left-0.1.51-py3-none-any.whl
Algorithm Hash digest
SHA256 8e9ced468d3c3ff265433ba054201d66fcb77f58e079ae2f4cd31bc41488a156
MD5 05f4010541dd4c3e8da4cecf01ad3c7e
BLAKE2b-256 2fe9c394c7e0796c236c834a8e3686bb97214baa31acb819f538ae7abe859bfb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page