asplain
Asplain is a tool for generating contrastive explanations for answer set programs (ASP).
Installation
To install the project, run
pip install .
For rendering the images with cligraph, Graphviz needs to be installed
following graphviz <https://www.graphviz.org/download/>_ (version 2.50 or
greater).
Documentation
Full documentation is available at docs.potassco.org/asplain.
Usage
Run the following for basic usage information:
asplain -h
For a basic usage example, see the examples/james-bond/README.md file.
LLM Integration
For using the OpenAI API, an API-Key has to be provided in the OPENAI_API_KEY
environment variable. This can be done using a .envfile or directly in the
command line.
Using the .env file
Create a .env file in the root directory of the project and add the following
line
OPENAI_API_KEY=<your-api-key>
Using the command line
OPENAI_API_KEY=<your-api-key> asplain --llm=<model-tag>
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asplain-0.0.0.tar.gz.
File metadata
- Download URL: asplain-0.0.0.tar.gz
- Upload date:
- Size: 927.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a6def2c3f17c9832f7a2d1fae39a9bf76c9a9f3e3a3e390d90a9b9b6cfb6663
|
|
| MD5 |
933c11b552f1a5e495304d766df6fe6e
|
|
| BLAKE2b-256 |
16b71ece9729965bc64b35d7dbef23ad0e469402184bc216a89b4d54345d13a1
|
Provenance
The following attestation bundles were made for asplain-0.0.0.tar.gz:
Publisher:
deploy.yml on potassco/asplain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
asplain-0.0.0.tar.gz -
Subject digest:
0a6def2c3f17c9832f7a2d1fae39a9bf76c9a9f3e3a3e390d90a9b9b6cfb6663 - Sigstore transparency entry: 2186969057
- Sigstore integration time:
-
Permalink:
potassco/asplain@ec0a6a460b37003ff58b1d879abd42ee43509426 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/potassco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@ec0a6a460b37003ff58b1d879abd42ee43509426 -
Trigger Event:
push
-
Statement type:
File details
Details for the file asplain-0.0.0-py3-none-any.whl.
File metadata
- Download URL: asplain-0.0.0-py3-none-any.whl
- Upload date:
- Size: 49.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8e8ab24166d1e1d8269ff6465e887a6e01f3f30acef7331a31f8adfb1db93ec
|
|
| MD5 |
7eb0444d45eebc8cd832d16c0f6cc0d0
|
|
| BLAKE2b-256 |
0e8fb9155f5f409258dcf6118dec0cab291f0c6c8813d8a37e2c895d9f9fec46
|
Provenance
The following attestation bundles were made for asplain-0.0.0-py3-none-any.whl:
Publisher:
deploy.yml on potassco/asplain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
asplain-0.0.0-py3-none-any.whl -
Subject digest:
c8e8ab24166d1e1d8269ff6465e887a6e01f3f30acef7331a31f8adfb1db93ec - Sigstore transparency entry: 2186969067
- Sigstore integration time:
-
Permalink:
potassco/asplain@ec0a6a460b37003ff58b1d879abd42ee43509426 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/potassco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@ec0a6a460b37003ff58b1d879abd42ee43509426 -
Trigger Event:
push
-
Statement type: