Skip to main content

A command-line, continuous integration tool for Looker and LookML.

Project description

CircleCI codecov downloads

What is Spectacles?

Spectacles is a continuous integration tool for Looker and LookML. Spectacles runs validators which perform a range of tests on your Looker instance and your LookML. Each validator interacts with the Looker API to run tests that ensure your Looker instance is running smoothly.

From the command line, you can run the following validators as subcommands (e.g. spectacles sql):

SQL validation - tests the sql field of each dimension for database errors

Assert validation - runs Looker data tests

Content validation - tests for errors in Looks and Dashboards

Linting (coming soon)

Installation

Spectacles CLI is distributed on PyPi and is easy to install with pip:

pip install spectacles

📣 You can also use Spectacles as a full-service web application! Check out our website to learn more.

Documentation

You can find detailed documentation for the CLI and web app on our docs page: docs.spectacles.dev.

Why we built this

Occasionally, when we make changes to LookML or our data warehouse, we break downstream experiences in Looker:

  • Changing the name of a database column without changing the corresponding sql field in our Looker view, leaving our users with a database error when using that field
  • Adding an invalid join to an explore that fans out our data, inflating a key metric that drives our business without realising
  • Editing LookML without remembering to check the Content Validator for errors, disrupting Dashboards and Looks that our users rely on
  • Giving a new dimension a confusing name, causing other developers in our team to spend extra time trying to figure out how it should be used

We believe in the power of testing and continuous integration for analytics. We believe that automated tests should catch these errors before they're ever pushed to production.

We wanted a single tool to perform these checks for us, so we built Spectacles to enhance the business intelligence layer of analytics CI pipelines.

Community

Have a question or just want to chat Spectacles or Looker? Join us in Slack.

Project details


Download files

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

Files for spectacles, version 0.3.2
Filename, size File type Python version Upload date Hashes
Filename, size spectacles-0.3.2-py2.py3-none-any.whl (39.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size spectacles-0.3.2.tar.gz (27.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page