Skip to content
Proyectos

l-mds/local-data-stack

Ver en GitHub

Acerca de

Trabajar los datos localmente y sin prisas permite avanzar rápido y aportar valor de negocio en el 99,9 % de los retos relacionados con los datos.

Sistemas e infraestructura

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
+1
in 15 days
+2
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

local data stack template

This template brings together some of the best open-source tools in data engineering and Rust-based tooling for ensuring code quality:

  • dagster, dbt, duckdb
  • pixi
  • docker
  • ruff, pyright, taplo, pytest
  • cruft

While the stack runs locally, it's designed with scale in mind. Data and state accumulate over time (as data engineers say in partitions). Slow data - similar to slow food, is healthy and allows the fast delivery of business value efficiently.

The idea of slow data refers to:

  • focusing on the reduction of complexity
    • allows to reduce complex data pipelines down to a single developers notebook
    • making complex data pipeliens testable
  • shipping real busines value fast
  • scaling as needed via partitions and a scalable resource provider

Featured

The template directly can be deployed via docker-compose. With only minimal adaptations you can instead deploy to kubernetes in any cloud provider.

Additionally included for secure handling of secrets:

  • sops
  • age

usage

Prerequisites:

  • git
  • an installation of cruft pip install cruft jinja2-ospath
  • an installation of pixi https://pixi.sh/latest/#installation curl -fsSL https://pixi.sh/install.sh | bash
  • text editor of choice such as vscode
  • docker
curl -fsSL https://pixi.sh/install.sh | bash
git clone https://github.com/l-mds/local-data-stack.git
cd local-data-stack
pixi run tpl-init-cruft

# alternatively:
pip install cruft jinja2-ospath
cruft create https://github.com/l-mds/local-data-stack.git

cd <<your project name>>
git init
git add .
git commit -m "initial commit"

pixi update
git commit -m "set dependencies"

git commit -m "reformatting"
pixi run fmt

# set dagster home to some directory
# your logs and run results will be persistet there
mkdir /path/to/my_dagster_home
export DAGSTER_HOME=/path/to/my_dagster_home

# start the data stack
pixi run start-dev

Post install:

  • update the secrets in the .env files by executing: openssl rand -base64 32 and setting a suitable secret
  • ensure the .env.enc can be created by following the instructions in [documentation/secops]

Developing the template

To render an instance of the project:

pixi run render-dev

Explorar proyectos relacionados

Cargando…