Skip to main content

SQL Models for humans

Project description

goshawk

Release Build status codecov Commit activity License

SQL Model Management for Humans

Getting started with Goshawk

Installation

We recommend installing with pipx

pipx install gohawk

Or install with pip (you should always use a virtual environment)

pip install gohawk

Verify your installation

goshawk view-model-tree --schemas-only

This will display the DAG of the included sample schema

Set MODELS_PATH env var to the folder containing your models.

`-- models <-set MODELS_PATH to the path to this folder
     -- mydatabase
         -- schema_1
             -- model_1a.sql
             -- model_1b.sql
         -- schema_2
             -- model_2a.sql
             -- model_2b.sql

export MODELS_PATH=models

Create a dev environemnt

goshawk init-env [envname]

Test your changes (using your dev environment)

goshawk deploy-models --test --db-env [envname]

Deploy your changes to your dev environment

goshawk deploy-models --test --db-env [envname]

Destroy your dev environemnt

goshawk destroy-env [envname]

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

goshawk-0.1.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

goshawk-0.1.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file goshawk-0.1.1.tar.gz.

File metadata

  • Download URL: goshawk-0.1.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for goshawk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 21fbff9e425a63b566617d28eb0c519f523122a9c119531883b0259e535cfb26
MD5 bb4638b02f481937bb9b85644db6c017
BLAKE2b-256 4a2afcbb9e4225baab468d7a5ee94db4b64ed960156d66dc42890d38f07226df

See more details on using hashes here.

File details

Details for the file goshawk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: goshawk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for goshawk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4cc46d30519a3a1a3f51b452eaa672bbf011679d6647070f07da0ec425a9fa1
MD5 52fa7fe75b2789b4302dca623cbf216a
BLAKE2b-256 645ed6c6da2788dd9434f145cd0520d4377c70e1457c0cce16549bb53c4e19a9

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