Skip to main content

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

Project description

CircleCI 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

LookML validation - runs LookML validator

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


Release history Release notifications | RSS feed

Download files

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

Source Distribution

spectacles-2.3.16.tar.gz (41.4 kB view details)

Uploaded Source

Built Distribution

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

spectacles-2.3.16-py2.py3-none-any.whl (47.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file spectacles-2.3.16.tar.gz.

File metadata

  • Download URL: spectacles-2.3.16.tar.gz
  • Upload date:
  • Size: 41.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for spectacles-2.3.16.tar.gz
Algorithm Hash digest
SHA256 ec34d2132c06ffe00d317c1d56b71a9a42a659556d7df29662f0c015059add4b
MD5 8b462890bf750f36fb6894b1ad0bcfe7
BLAKE2b-256 dd066023e115fba32240baf38530e9ece720a57155af536a5416f7a04308941c

See more details on using hashes here.

File details

Details for the file spectacles-2.3.16-py2.py3-none-any.whl.

File metadata

  • Download URL: spectacles-2.3.16-py2.py3-none-any.whl
  • Upload date:
  • Size: 47.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for spectacles-2.3.16-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 928f0e617d12f20df6d57f28462164185fcdd47535c211ff785c2b403b66fe34
MD5 6a912b4da5378cfd7f967798dc8d4af4
BLAKE2b-256 3d301e53cbe5616b476e7798fa5ddeb470eac950c253b3abdbac4c09368baf34

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