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. - Warrant-gated scoring with claim, warrant, and gate scores.
- Axiom flags to seed manual scores with optional influence locking.
- Diagnostics for cycles, components, reachability, and degree stats.
- JSON IO with schema validation and Graphviz DOT export.
- CLI tools for DOT, diagnostics, and validation.
- 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 compute_credibility
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", gate_mode="OR")
credibility = compute_credibility(graph)
scores = credibility.final_scores
Evidence and scoring
from arglib.ai import score_evidence, validate_edges
scores = score_evidence(graph)
edge_report = validate_edges(graph)
Axioms
claim = graph.add_claim("Assume baseline demand holds.", is_axiom=True, score=0.6)
warrant = graph.add_warrant("This baseline is reliable.", is_axiom=True, score=0.7)
graph.units[claim].ignore_influence = True
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
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/.
Metadata
Release files for arglib 0.1.11
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 |
|---|---|---|---|---|
| arglib-0.1.11.tar.gz | 42.5 kB | With provenance | Details for arglib-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| arglib-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for arglib-0.1.11-py3-none-any.whl |
Total release size: 91.8 kB
Release files / arglib-0.1.11.tar.gz
| Download URL | arglib-0.1.11.tar.gz |
|---|---|
| Size | 42.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbcb864644127afe492c02d97013e8c3b7d85918c53275c3b7b6f7d8b3038919
|
|
BLAKE2b-256 checksum How to use checksums |
61a1af795ef0a9197ae40caae4c283d55255a69242db1e98a06d07fe99ca9129
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 5, 2026.
Transparency logRelease files / arglib-0.1.11-py3-none-any.whl
| Download URL | arglib-0.1.11-py3-none-any.whl |
|---|---|
| Size | 49.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed07673df4c53a65fff27e5f64a574820656e23dd16e471d69c17aea0c201812
|
|
BLAKE2b-256 checksum How to use checksums |
248fffc2d1cf9670e96e6d10d73ccaec167716c21f43649a40c8227851422144
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 5, 2026.
Transparency logSecurity for arglib 0.1.11
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
Both files in this release have been uploaded with provenance metadata.
Attestation for arglib-0.1.11.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 Jan 5, 2026.
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.