viASP
viASP generates interactive visualizations of ASP encodings and stable models
viASP allows you to explore the visualization in a variety of ways:
- Follow the derivation of answer sets step-by-step
- Explain the derivation of individual symbols with arrows
- Inspect iterations of recursive rules
- Visualize unsatisfiable programs
- Move rules to follow a preferred order
- Zoom in and out of parts of the graph (press
Shiftand scroll or +/-)
Installation
viASP is available as a PyPI package. You can install it with:
pip install viasp
| :memo: | To support the use of clingraph in viASP, install graphviz (version 2.50 or greater) manually. |
|---|
Usage
Consider the file hamiltonian.lp:
node(1..4). start(1).
edge(1,2). edge(2,3). edge(2,4). edge(3,1).
edge(3,4). edge(4,1). edge(4,3).
{ hc(V,U) } :- edge(V,U).
reached(V) :- hc(S,V), start(S).
reached(V) :- reached(U), hc(U,V).
:- node(V), not reached(V).
:- hc(V,U), hc(V,W), U!=W.
:- hc(U,V), hc(W,V), U!=W.
To start a visualization from the command line, run:
viasp hamiltonian.lp
Check out the documentation to see a full description on how to use viASP.
Examples
An introduction to viASP’s features is given in the notebook. The examples folder shows a variety of scripts that run viASP.
Contributing
See the documentation page to see how to contribute.
Metadata
Release files for viasp 2.3.0.post3
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 |
|---|---|---|---|---|
| viasp-2.3.0.post3.tar.gz | 8.1 kB | With provenance | Details for viasp-2.3.0.post3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| viasp-2.3.0.post3-py3-none-any.whl | Python 3 | none | any | Details for viasp-2.3.0.post3-py3-none-any.whl |
Total release size: 14.8 kB
Release files / viasp-2.3.0.post3.tar.gz
| Download URL | viasp-2.3.0.post3.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd840897c0f2a41405ed97dc2476971db92302981ef80394938aa0ce940c53c5
|
|
BLAKE2b-256 checksum How to use checksums |
80224bdd4b31ab879faa40d4d56ce62542fabd6b8b37202e36bcc2c565d12a46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2025.
Transparency logRelease files / viasp-2.3.0.post3-py3-none-any.whl
| Download URL | viasp-2.3.0.post3-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92a0f1ba83e412678a6c0f82f37f6a3878ad7931d0161c06a0799fa199bf3444
|
|
BLAKE2b-256 checksum How to use checksums |
a5139a830898da0a5f7117694722f9b1000fafa4dacef2206d63dcb51b5133d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2025.
Transparency logSecurity for viasp 2.3.0.post3
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for viasp-2.3.0.post3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2025.
Transparency logA 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.