Skip to main content

asp-fzn

Python interface for asp-fzn which enables solving head-cycle free ASP programs via FlatZinc solvers via translation written in rust.

The inferface supports answer set solving through Python directly through MiniZinc, which needs to be installed on the system and in PATH.

Alternatively, FlatZinc solver directly, without MiniZinc, by passing their .msc file.

The package can also be used to translate ASP programs into FlatZinc and store the model in a file.

Example

Enumerating answer sets with CP-SAT (bundled in MiniZinc, which needs to be installed)

import aspfzn

prg = '''
a:- not b.
b :- not a.
c :- b.
'''
result = aspfzn.solve(prg, "cp-sat", all_solutions=True, on_solution=print)
print(result)

License

The code of this project is licensed under the Apache License 2.0.

Furthermore, note the following legal disclaimer:

This software is a research prototype only. It has not been tested for the use in or for products and/or services (in particular in any safety-relevant areas). It was solely published as part of the publication “ASP-FZN: A Translation-based Constraint Answer Set Solver“ and will neither be maintained nor monitored.

Robert Bosch GmbH is acknowledged for financial support.

Metadata

Release files for asp-fzn 0.3.3

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

Source distribution (sdist)

Source distribution for asp-fzn 0.3.3
File Size Uploaded Provenance Actions
asp_fzn-0.3.3.tar.gz 63.0 kB Without provenance Details for asp_fzn-0.3.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for asp-fzn 0.3.3
File Actions
asp_fzn-0.3.3-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for asp_fzn-0.3.3-cp39-abi3-win_amd64.whl
asp_fzn-0.3.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for asp_fzn-0.3.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
asp_fzn-0.3.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for asp_fzn-0.3.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
asp_fzn-0.3.3-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for asp_fzn-0.3.3-cp39-abi3-macosx_11_0_arm64.whl
asp_fzn-0.3.3-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for asp_fzn-0.3.3-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 5.2 MB

Release files / asp_fzn-0.3.3.tar.gz

Download URL asp_fzn-0.3.3.tar.gz
Size 63.0 kB
Tags Source
SHA-256 checksum
How to use checksums
655c4a3d69acc6fdb722077ef4a00a422e8102d821adee6c24d9a10dcdb9d953
BLAKE2b-256 checksum
How to use checksums
6a00719bfd635d860bfa9f806a8477e758995afc1cb0f050ae2c901fdb08f71c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / asp_fzn-0.3.3-cp39-abi3-win_amd64.whl

Download URL asp_fzn-0.3.3-cp39-abi3-win_amd64.whl
Size 1.3 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
deaa5782e2943c6883511a8aeb2dc264c4f36a68bfc9a8bb43d9ca97d9639681
BLAKE2b-256 checksum
How to use checksums
c58b6f851ca2aa42e5aae9240166838ed128b8530e1df0e141073e7f7964d6f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / asp_fzn-0.3.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL asp_fzn-0.3.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 558.4 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
7027a0f156f6737455064a5912d5c01b4421602a098e45df156bda8c93d5ba8a
BLAKE2b-256 checksum
How to use checksums
f1d27f26d3164f6cfd5ea24c7f31e66aa1d3c0705042a12a98e46fe1b1ac52cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / asp_fzn-0.3.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL asp_fzn-0.3.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 520.2 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
7dc491e5fcac4c6a08addcefa6794097b2457007529a783285bd53b165dcafcc
BLAKE2b-256 checksum
How to use checksums
0e2a304c4140642b790f6a16168b61acb6d94e92ee2c4d0c2c08dc858253534e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / asp_fzn-0.3.3-cp39-abi3-macosx_11_0_arm64.whl

Download URL asp_fzn-0.3.3-cp39-abi3-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1f510c0bbd1e256d936d1ae0a206b9d2de382737c749595f3fdc1bd650f52c2f
BLAKE2b-256 checksum
How to use checksums
b58dcf232e29da52690d30eccc3465f6687a734744886ca8cc6155d6a55092a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / asp_fzn-0.3.3-cp39-abi3-macosx_10_12_x86_64.whl

Download URL asp_fzn-0.3.3-cp39-abi3-macosx_10_12_x86_64.whl
Size 1.4 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0c5104608c5ff7b22ea4c9016da1243f21f67155be7ff1dfd76ee3c907cdd131
BLAKE2b-256 checksum
How to use checksums
e1ca9d76cc34760a4a26d16f3e4742e4bab36f84acfc082c87f769fb7766acf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for asp-fzn 0.3.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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