Build a general-purpose, batteries-included Python library for creating, importing, analyzing, and reasoning over argument graphs derived from text and multimodal evidence.
Project description
ArgLib
ArgLib is a batteries-included Python library for creating, importing, analyzing, and reasoning over argument graphs derived from text and multimodal evidence.
Highlights
- Canonical
ArgumentGraphmodel with provenance-aware nodes and relations. - Dung semantics (grounded/preferred/stable/complete) and basic ABA tooling.
- Diagnostics for cycles, components, reachability, and degree stats.
- JSON IO with schema validation and Graphviz DOT export.
- CLI tools for DOT, diagnostics, validation, and ABA.
- Argument bundles for higher-level reasoning and credibility propagation scoring.
- Evidence cards and supporting documents for evidence pipelines.
- Deterministic evidence scoring and edge validation helpers (LLM adapters planned).
Install
python -m pip install arglib
Quickstart
from arglib.core import ArgumentGraph
from arglib.reasoning import Reasoner
graph = ArgumentGraph.new(title="Parks")
c1 = graph.add_claim("Green spaces reduce urban heat.", type="fact")
c2 = graph.add_claim("Cities should fund parks.", type="policy")
graph.add_support(c1, c2, rationale="Cooling improves health")
reasoner = Reasoner(graph)
results = reasoner.run(["grounded_extension", "grounded_labeling"])
Evidence and scoring
from arglib.ai import score_evidence, validate_edges
scores = score_evidence(graph)
edge_report = validate_edges(graph)
Bundles and credibility propagation
from arglib.reasoning import compute_credibility
bundle = graph.define_argument([c1, c2], bundle_id="arg-1")
cred = compute_credibility(graph)
CLI examples
arglib dot path/to/graph.json
arglib diagnostics path/to/graph.json --validate
arglib validate path/to/graph.json
arglib aba path/to/aba.json --semantics preferred
Development
This repo uses uv for dependency management.
uv sync
scripts/check.sh
Documentation
Full docs and guides are available at https://vasanthsarathy.github.io/arglib/.
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
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 arglib-0.1.5.tar.gz.
File metadata
- Download URL: arglib-0.1.5.tar.gz
- Upload date:
- Size: 37.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5975a3384ad054f30f5412417183eb49c6f20070a0d808bb7f9b95f7c310b632
|
|
| MD5 |
f90318fbd0620a84b8aa6e0fcc9b6482
|
|
| BLAKE2b-256 |
6ab3eefc46e4862c216eeadcd41de3d89c2e59706ad04fa78f05953a275a9d24
|
Provenance
The following attestation bundles were made for arglib-0.1.5.tar.gz:
Publisher:
release.yml on vasanthsarathy/arglib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arglib-0.1.5.tar.gz -
Subject digest:
5975a3384ad054f30f5412417183eb49c6f20070a0d808bb7f9b95f7c310b632 - Sigstore transparency entry: 788402173
- Sigstore integration time:
-
Permalink:
vasanthsarathy/arglib@b7bb66312d757103fa29c425dc9a5d39e8c0145e -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/vasanthsarathy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b7bb66312d757103fa29c425dc9a5d39e8c0145e -
Trigger Event:
release
-
Statement type:
File details
Details for the file arglib-0.1.5-py3-none-any.whl.
File metadata
- Download URL: arglib-0.1.5-py3-none-any.whl
- Upload date:
- Size: 43.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71271030863b6627fae8f0790b660df620bec0b71bfdbde99635d5286bc8c637
|
|
| MD5 |
44e40b6339de8e5c2ffa333abd13ae1d
|
|
| BLAKE2b-256 |
aa2aea49b06df61ee8e67baaaf70dddaa896d7e4804b3a9bc68f2e3cee9c3ab6
|
Provenance
The following attestation bundles were made for arglib-0.1.5-py3-none-any.whl:
Publisher:
release.yml on vasanthsarathy/arglib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arglib-0.1.5-py3-none-any.whl -
Subject digest:
71271030863b6627fae8f0790b660df620bec0b71bfdbde99635d5286bc8c637 - Sigstore transparency entry: 788402174
- Sigstore integration time:
-
Permalink:
vasanthsarathy/arglib@b7bb66312d757103fa29c425dc9a5d39e8c0145e -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/vasanthsarathy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b7bb66312d757103fa29c425dc9a5d39e8c0145e -
Trigger Event:
release
-
Statement type: