vega-lite-linter
Fixing your visualization design written in Vega-Lite based on the Answer Set Programming.
Setup
Step 1: install Clingo
First, you need to install Clingo.
For MacOS
brew install clingo
Using Conda
conda install -c potassco clingo
For other system, please look up to https://potassco.org/clingo/
Step 2: install vega-lite-linter
pip install vega-lite-linter
Usage
from vega_lite_linter import Lint
vega_json = {
"data": {
"url": "data/cars.json"
},
"mark": "bar",
"encoding": {
"x": {
"field": "Horsepower",
"type": "quantitative"
},
"y": {
"field": "Miles_per_Gallon",
"type": "quantitative"
},
"size": {
"field": "Cylinders",
"type": "ordinal"
}
}
}
# initialize
lint = Lint(vega_json)
# show rules that the input vega-lite json violated
violate_rules = lint.lint()
# show fixing recommendation by vega-lite-linter
fix = lint.fix()
License
The software is available under the MIT License.
Contact
If you have any question, feel free to open an issue.
Metadata
Release files for vega-lite-linter 0.0.1
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 |
|---|---|---|---|---|
| vega-lite-linter-0.0.1.tar.gz | 317.6 kB | Without provenance | Details for vega-lite-linter-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vega_lite_linter-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for vega_lite_linter-0.0.1-py3-none-any.whl |
Total release size: 652.9 kB
Release files / vega-lite-linter-0.0.1.tar.gz
| Download URL | vega-lite-linter-0.0.1.tar.gz |
|---|---|
| Size | 317.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09f4b587dc7ef7a7a8d7b5c6bf71f18f55719980b2d28a7bc52595fb06afc2a3
|
|
BLAKE2b-256 checksum How to use checksums |
04ddf1222f975cb662ba05b17225840653229833fa562aa1242eb553e18d3df1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.3
|
Release files / vega_lite_linter-0.0.1-py3-none-any.whl
| Download URL | vega_lite_linter-0.0.1-py3-none-any.whl |
|---|---|
| Size | 335.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f4b0dbd76f00562cbc4b82b08e4dce8105855853f9958af702cc54ad3d0d896
|
|
BLAKE2b-256 checksum How to use checksums |
8cb79613f0c7dc315dca67f0d6aabcb0f4c11fc7a6bb0aeb7d08238b2e8bd1eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.3
|
Security for vega-lite-linter 0.0.1
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.