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.1

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.1
File Actions
arg2p-0.19.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for arg2p-0.19.1-py3-none-win_amd64.whl
arg2p-0.19.1-py3-none-manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for arg2p-0.19.1-py3-none-manylinux2014_x86_64.whl
arg2p-0.19.1-py3-none-manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for arg2p-0.19.1-py3-none-manylinux2014_aarch64.whl
arg2p-0.19.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for arg2p-0.19.1-py3-none-macosx_11_0_arm64.whl
arg2p-0.19.1-py3-none-macosx_10_15_x86_64.whl Python 3 none macOS 10.15+ x86-64 Details for arg2p-0.19.1-py3-none-macosx_10_15_x86_64.whl
arg2p-0.19.1-py3-none-any.whl Python 3 none any Details for arg2p-0.19.1-py3-none-any.whl

Total release size: 180.9 MB

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

Download URL arg2p-0.19.1-py3-none-win_amd64.whl
Size 34.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c1f2b346b70b55a0614891d5b37409b870d02eb3465f8a5ac86b5be014a91640
BLAKE2b-256 checksum
How to use checksums
ae29cb30d2dd0aa8e48f25a543ade9c0cb03a2082e94da01f6b96f5849cf59ce
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.1-py3-none-manylinux2014_x86_64.whl

Download URL arg2p-0.19.1-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
68300c9424b7d20b7dd317e13a094f335601104f9600feddb7818a9d3b631f35
BLAKE2b-256 checksum
How to use checksums
e3ec7f1037936b6094c4fc8874491ffac63b70f31103f043176bfb93e5eb45c3
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.1-py3-none-manylinux2014_aarch64.whl

Download URL arg2p-0.19.1-py3-none-manylinux2014_aarch64.whl
Size 35.5 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
033a09e56831aaecef847123a94e51f4bc0879ae1c8b5b5f8be572c9065667d1
BLAKE2b-256 checksum
How to use checksums
bf0264028f426d430bb6e69116a99987aba245cb961aacbeff94d2185b4d2699
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.1-py3-none-macosx_11_0_arm64.whl

Download URL arg2p-0.19.1-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
5ca8ea3e3b168ef1974c73f9d9eb5b2e73e02cfeaca505c82952ae70250853a9
BLAKE2b-256 checksum
How to use checksums
ff8501619fd07fc97b29135aaaa12b1af015ec9210d91e46093281b673efa485
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.1-py3-none-macosx_10_15_x86_64.whl

Download URL arg2p-0.19.1-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
559c623a922d058d74461ae396f3a513a6c99f470efa151c39998a2603c0865e
BLAKE2b-256 checksum
How to use checksums
7c0514bcdcea3761c07385cd86f0a5e0bba9d85d3d8720504ddb2d4dbc3a1703
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.1-py3-none-any.whl

Download URL arg2p-0.19.1-py3-none-any.whl
Size 9.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b782d24d200d0533db3d0e966e8416af452259ef847355095c0d451eb2bb8629
BLAKE2b-256 checksum
How to use checksums
83f3f0ba88c62f3ac10acc2d62dc064510b4728b34b1e45764db6642677a73fa
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.1

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.1-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