Skip to main content

arg2p for Python

Arg2P, structured argumentation in Prolog (ASPIC+, ABA, ABA+, abstract frameworks, ...), from Python: the API of the library of the JVM, in snake case, run through JPype on the Java runtime the wheel bundles.

pip install arg2p
from arg2p import Arg2p, Flags, Semantics

arg2p = Arg2p.of("""
r1 : [] => a.
r2 : [] => -a.
sup(r1, r2).
""")

arg2p.answer("a").in_statements                 # ['a']
(graph,) = arg2p.graphs()
graph.conclusions("out")                        # ['-a']

preferred = Arg2p.of("f1 :=> d.\nf2 :=> -d.", Flags.defaults().argument_labelling_mode(Semantics.PREFERRED))
len(preferred.graphs())                         # 2

Arg2p.of("r1 :=> a.\nr2 : a => b.").causality.but_for("a", "b")   # True

See the documentation for the whole API: flags, graphs, Prolog goals, causality, the parallel solver and the command line (arg2p theory.pl -q a).

Building

The package is a project of the Gradle build of Arg2P, which gives it its jars, its version and its Java runtime:

./gradlew :python:pythonJars :python:pythonVersion :python:pythonRuntime
pip install "./python[test]"
pytest python/tests

Without the runtime (pythonRuntime), the package runs on the Java of the system (21 or later). ARG2P_JVM names another library of the JVM, ARG2P_CLASSPATH other jars.

Metadata

Release files for arg2p 0.19.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for arg2p 0.19.0
File Actions
arg2p-0.19.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for arg2p-0.19.0-py3-none-win_amd64.whl
arg2p-0.19.0-py3-none-manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for arg2p-0.19.0-py3-none-manylinux2014_x86_64.whl
arg2p-0.19.0-py3-none-manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for arg2p-0.19.0-py3-none-manylinux2014_aarch64.whl
arg2p-0.19.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for arg2p-0.19.0-py3-none-macosx_11_0_arm64.whl
arg2p-0.19.0-py3-none-macosx_10_15_x86_64.whl Python 3 none macOS 10.15+ x86-64 Details for arg2p-0.19.0-py3-none-macosx_10_15_x86_64.whl
arg2p-0.19.0-py3-none-any.whl Python 3 none any Details for arg2p-0.19.0-py3-none-any.whl

Total release size: 180.8 MB

Release files / arg2p-0.19.0-py3-none-win_amd64.whl

Download URL arg2p-0.19.0-py3-none-win_amd64.whl
Size 33.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
481d75894f10e5697d66c17d0e47c770826a616bfee3b4df5033c5d9042a6ca4
BLAKE2b-256 checksum
How to use checksums
dfdae209c0bf7e31aeccdc78f6a38912b77cb697b2b9fc2ac70d475f196536d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 28, 2026.

Transparency log

Release files / arg2p-0.19.0-py3-none-manylinux2014_x86_64.whl

Download URL arg2p-0.19.0-py3-none-manylinux2014_x86_64.whl
Size 36.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
04c845c0534639a04409333bd553275d26e6cb323b16042b27023ccefd254a13
BLAKE2b-256 checksum
How to use checksums
cf2e1582ae7477e8568f55c3f39fd0a937d86c3d22290506f46cb1e5bfff9b2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 28, 2026.

Transparency log

Release files / arg2p-0.19.0-py3-none-manylinux2014_aarch64.whl

Download URL arg2p-0.19.0-py3-none-manylinux2014_aarch64.whl
Size 35.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
0791f995e2040a0a3d5751b01763359cef7395ab8bbc294391b1589fff97e521
BLAKE2b-256 checksum
How to use checksums
1fad7d25d29e256a2e6f541465a39d46b6513d2192be3fa2bdfaf1f9fc5868e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 28, 2026.

Transparency log

Release files / arg2p-0.19.0-py3-none-macosx_11_0_arm64.whl

Download URL arg2p-0.19.0-py3-none-macosx_11_0_arm64.whl
Size 32.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
820f9cd71fb9b1c1539c6e1869eb26df6386b744d515d6d6cd6b435516e5b3ce
BLAKE2b-256 checksum
How to use checksums
04ede889dc39c2792290b8aff2d5ba01e17f22318bfd9429854e777c6c224931
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 28, 2026.

Transparency log

Release files / arg2p-0.19.0-py3-none-macosx_10_15_x86_64.whl

Download URL arg2p-0.19.0-py3-none-macosx_10_15_x86_64.whl
Size 33.3 MB
Tags Python 3 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
5751cf91126403140d2b9368de0627d6b32ce240e8bddba205caf7ef82d2dbbe
BLAKE2b-256 checksum
How to use checksums
1d880e4ae29c9db806cace20cd90b9cb297c40b5552eeb0ffa25639a0364feb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 28, 2026.

Transparency log

Release files / arg2p-0.19.0-py3-none-any.whl

Download URL arg2p-0.19.0-py3-none-any.whl
Size 9.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e6eecea13508fa38891aa65f622f3a27c1d2aabd039c746c6d0e094b66af5d11
BLAKE2b-256 checksum
How to use checksums
78ccfa75349f91fcc76e3889135db23d2be021caf1f2bae6c2a288d05bd75047
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 28, 2026.

Transparency log

Security for arg2p 0.19.0

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 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for arg2p-0.19.0-py3-none-win_amd64.whl

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 Oct 28, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page