A command-line, continuous integration tool for Looker and LookML.
Project description
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
Built Distribution
File details
Details for the file spectacles-2.4.10.tar.gz
.
File metadata
- Download URL: spectacles-2.4.10.tar.gz
- Upload date:
- Size: 42.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6652c3b656bf4214423a1335d940b6e2693b00f411a90b212bfd01f8739e7bac |
|
MD5 | 53364b41bacebf38436246c9f62f1a1c |
|
BLAKE2b-256 | 34c1cc990df809ebca7146f2bbc233dd4e83c8d75a24879a9ebadb9f62675b56 |
File details
Details for the file spectacles-2.4.10-py3-none-any.whl
.
File metadata
- Download URL: spectacles-2.4.10-py3-none-any.whl
- Upload date:
- Size: 47.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdbf325f2a140a217f845773fe2bf85a9d6bb64f1cfa5f9cc339093560d31a8d |
|
MD5 | 0a010d3de8dbf3d554ab7f1d09ba2b66 |
|
BLAKE2b-256 | b233e9ed74a5076dfb673f89d349b3440d3757d2036dc1b97509d4199a995ae0 |