Skip to main content

Dataos Cookiecutter

Project description

dataos-cookiecutter

dataos-cookiecutter package provides commands to facilitate various tasks of Lens2, enabling users to efficiently generate templates, perform schema checks, generate data quality checks yaml, and create Board YAML configurations.

Installation

You can install dataos-cookiecutter via pip:

pip install dataos-cookiecutter

Usage

dataos-cookiecutter offers several commands to simplify Lens2-related tasks:

  1. lens2 lens: This command allows users to get started by creating a sample template along with folder structure, which they can modify based on their needs. It includes two flags:

    • -n lens_name: Specifies the name of the Lens.
    • -s source_type: Specifies the type of data source.
    lens2 create -n <lens2_name> -d <lens2_dir_name> -s <source_type>
    
  2. lens2 checks: This command provides two subcommands:

    • schema-check: Validates that all dimensions used in Lens2 tables are fulfilled by the SQL provided of table.
    • create: Creates checks YAML files and stores them in the checks folder.
    # Validate dimensions in Lens2 tables
    lens2 checks schema-check -n tables/views '(comma separated)'
    
    # Create checks YAML files
    lens2 checks create -n tables/views '(comma separated)'
    
  3. lens2 board: This command provides two subcommands for Board related tasks:

    • create: Creates View Board YAML made public in Lens2 and stores files in the boards/view_name folder.
    • start: Uses the generated Board content and starts Board to explore. This command only requires a view name (not comma separated values).
    # Create Board dashboard YAML for Lens2 views
    lens2 board create -n views '(comma separated)'
    
    # Start Board with generated content of View
    lens2 board start -n view_name
    

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

dataos-cookiecutter-0.0.5.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

dataos_cookiecutter-0.0.5-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file dataos-cookiecutter-0.0.5.tar.gz.

File metadata

  • Download URL: dataos-cookiecutter-0.0.5.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.17

File hashes

Hashes for dataos-cookiecutter-0.0.5.tar.gz
Algorithm Hash digest
SHA256 ab25ee8c208d1d501acebe3b5ccd8c70a67500cbc1098ab3318d519fdd1c0158
MD5 7ddd1c8abd50f55397a7fc0765b20919
BLAKE2b-256 4c87a5d2c8de4dd5e6a550c7d1454c6160b77865b7df4d4cf6b7df32e72a514f

See more details on using hashes here.

File details

Details for the file dataos_cookiecutter-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for dataos_cookiecutter-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0de7b0eded77314e057323fe26b30e9f837dab8830ba6955ce55954ccc1ef2a6
MD5 fc72a7ae56df2ed6707e71c815c67bf0
BLAKE2b-256 dcb86b2e36dd2076cf677103135f238d6fcec380c3eab919d0f7aa39218949fe

See more details on using hashes here.

Supported by

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