A command-line, continuous integration tool for Looker and LookML.
Project description
What is Spectacles?
Spectacles is a command-line, 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. You can run Spectacles locally during LookML and content development, or you can run it in production as a continuous integration pipeline.
You can run the following validators as subcommands (e.g. spectacles sql
):
- SQL validation - tests for database errors or invalid SQL
- Assert validation - runs LookML/data tests
- Content validation (coming soon)
- Linting (coming soon)
Documentation
You can find detailed documentation on our website: spectacles.dev.
Installation
Spectacles is distributed on PyPi and is easy to install with pip:
pip install spectacles
Why we built this
Occasionally, when we make changes to LookML or our data warehouse, we break downstream experiences in Looker. For example:
- We change 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. - We add an invalid join to an explore that fans out our data, inflating a key metric that drives our business without realising.
- We make changes to LookML without remembering to check the Content Validator for errors, disrupting Dashboards and Looks that our users rely on
- We give 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 continuous integration for analytics. We believe that automated testing should catch these errors before they are ever pushed to production. Automated testing allows developers to maintain their speed of development high, without compromising on the quality of their code or the quality data they produce.
We wanted a single tool to perform these checks for us and establish baseline performance expectations for our Looker instances. We built Spectacles to enhance the business intelligence layer of analytics CI pipelines.
Community
Have a question or just want to chat Spectacles and 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
Hashes for spectacles-0.2.0rc1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f94c864fc591f5960f83615173088e1efd25909cf27f75dc370e99ada5193a1 |
|
MD5 | 6a93e8b9073632c88d23fbf1dc29921f |
|
BLAKE2b-256 | 983f2fd74304b9bea86a4a892e2f6d4d7cd3cca1a3b97e2befe49ed5f1aeb8c5 |