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
sqlfield 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.
Metadata
Release files for spectacles 2.4.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spectacles-2.4.20.tar.gz | 42.4 kB | Without provenance | Details for spectacles-2.4.20.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spectacles-2.4.20-py3-none-any.whl | Python 3 | none | any | Details for spectacles-2.4.20-py3-none-any.whl |
Total release size: 90.8 kB
Release files / spectacles-2.4.20.tar.gz
| Download URL | spectacles-2.4.20.tar.gz |
|---|---|
| Size | 42.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddb19543c55b021724a0717bafae3fb91335a110a558cc295a7fe5073612b19c
|
|
BLAKE2b-256 checksum How to use checksums |
9c800bec4258ec765125884575a3177e880d87c277c38f55a716dd4145e17a73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / spectacles-2.4.20-py3-none-any.whl
| Download URL | spectacles-2.4.20-py3-none-any.whl |
|---|---|
| Size | 48.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9ac036ba52e732b5b461e507c53a9b424a35357114aeb34093c02cef7644d63
|
|
BLAKE2b-256 checksum How to use checksums |
62b5eaf7e1e427e51de338ccfdb37b119e9283fe15a29d0df3fa84078c5778db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for spectacles 2.4.20
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.