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).
The MCP server
arg2p mcp runs the MCP server of Arg2P, for AI assistants to solve theories with it, on the Java runtime of the
wheel: uvx arg2p mcp with uv, nothing to install first. See
AI assistants for its tools, the clients, and the
plugin with the skills of Arg2P.
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). The variables
choosing another JVM, other jars and the options of the JVM (ARG2P_JVM, ARG2P_CLASSPATH, ARG2P_STACK,
ARG2P_JVM_OPTIONS) are in the documentation.
Metadata
Release files for arg2p 0.21.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| arg2p-0.21.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for arg2p-0.21.0-py3-none-win_amd64.whl |
| arg2p-0.21.0-py3-none-manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for arg2p-0.21.0-py3-none-manylinux2014_x86_64.whl |
| arg2p-0.21.0-py3-none-manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for arg2p-0.21.0-py3-none-manylinux2014_aarch64.whl |
| arg2p-0.21.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for arg2p-0.21.0-py3-none-macosx_11_0_arm64.whl |
| arg2p-0.21.0-py3-none-macosx_10_15_x86_64.whl | Python 3 | none | macOS 10.15+ x86-64 | Details for arg2p-0.21.0-py3-none-macosx_10_15_x86_64.whl |
| arg2p-0.21.0-py3-none-any.whl | Python 3 | none | any | Details for arg2p-0.21.0-py3-none-any.whl |
Total release size: 189.3 MB
Release files / arg2p-0.21.0-py3-none-win_amd64.whl
| Download URL | arg2p-0.21.0-py3-none-win_amd64.whl |
|---|---|
| Size | 35.6 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0b253fdc23dd5a1b2cb35394a34d7ecd440aa53ddb2912688306dcfca9168611
|
|
BLAKE2b-256 checksum How to use checksums |
fe779e20512c33f7f1d27351b021d7795e6c27c587e68af088ca14a0130f7fe5
|
| 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 29, 2026.
Transparency logRelease files / arg2p-0.21.0-py3-none-manylinux2014_x86_64.whl
| Download URL | arg2p-0.21.0-py3-none-manylinux2014_x86_64.whl |
|---|---|
| Size | 37.6 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
9cb4c1977f3235809522c6c046a2fd1be72ddeb96b744b0a7f286b85d1cade2c
|
|
BLAKE2b-256 checksum How to use checksums |
3bd16d53729a99a9d9fd4b17d546cc8c21f50103c84c6da5b22ce6ab38306b6d
|
| 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 29, 2026.
Transparency logRelease files / arg2p-0.21.0-py3-none-manylinux2014_aarch64.whl
| Download URL | arg2p-0.21.0-py3-none-manylinux2014_aarch64.whl |
|---|---|
| Size | 37.0 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
a3eab1378b81413a50644a0d849b49a74f99a162aebd10a702e411808beeb2e2
|
|
BLAKE2b-256 checksum How to use checksums |
f95b2c40788350f45537cea2bb3bcec69dc4e55790dcb90e388c5e47f5831e61
|
| 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 29, 2026.
Transparency logRelease files / arg2p-0.21.0-py3-none-macosx_11_0_arm64.whl
| Download URL | arg2p-0.21.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 33.8 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5414d4019ad1a288bcc40fec33981ce190adf8606e3c00e6cd8e1216e7da087e
|
|
BLAKE2b-256 checksum How to use checksums |
18add821c988a8e5c25a5219cdd54be2ddff651e5ae83edccf17b901f9694673
|
| 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 29, 2026.
Transparency logRelease files / arg2p-0.21.0-py3-none-macosx_10_15_x86_64.whl
| Download URL | arg2p-0.21.0-py3-none-macosx_10_15_x86_64.whl |
|---|---|
| Size | 34.7 MB |
| Tags | Python 3 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
7ca1ab1854c26e66b09426b0754426126c3d4ba52b25d6f84824dbfcf5324ee9
|
|
BLAKE2b-256 checksum How to use checksums |
b21187d8b96acdb650fbd0585bed9909665df1925b26451e51289daa0c1859f3
|
| 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 29, 2026.
Transparency logRelease files / arg2p-0.21.0-py3-none-any.whl
| Download URL | arg2p-0.21.0-py3-none-any.whl |
|---|---|
| Size | 10.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb0470b3cb6bade2b8b5e04913c5f1a33ef3b07a87eed96382d18715265cc140
|
|
BLAKE2b-256 checksum How to use checksums |
ad534c79d251dada1e70144c4f59962cf966492dd9f6da8b8b8d3e62dd9a8aa9
|
| 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 29, 2026.
Transparency logSecurity for arg2p 0.21.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.
Attestation for arg2p-0.21.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 29, 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.