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.2
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 |
|---|---|---|---|---|
| asp_fzn-0.3.2.tar.gz | 63.5 kB | Without provenance | Details for asp_fzn-0.3.2.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| asp_fzn-0.3.2-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for asp_fzn-0.3.2-cp39-abi3-win_amd64.whl |
| asp_fzn-0.3.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details for asp_fzn-0.3.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| asp_fzn-0.3.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details for asp_fzn-0.3.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| asp_fzn-0.3.2-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details for asp_fzn-0.3.2-cp39-abi3-macosx_11_0_arm64.whl |
| asp_fzn-0.3.2-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details for asp_fzn-0.3.2-cp39-abi3-macosx_10_12_x86_64.whl |
Total release size: 5.2 MB
Release files / asp_fzn-0.3.2.tar.gz
| Download URL | asp_fzn-0.3.2.tar.gz |
|---|---|
| Size | 63.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
927f0e38364f666b1ca117f130cfb8b13488f9f3b98fc33ef4934a7d1933c783
|
|
BLAKE2b-256 checksum How to use checksums |
18f7f604bf2b79e1b4ddefc969bec5d3d74876b759cda80412e1af9b1bfcb927
|
| 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.2-cp39-abi3-win_amd64.whl
| Download URL | asp_fzn-0.3.2-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
200253d9602c79f0717c611ec85a731c06283e9bb1a58db0a4085d97afdd56c0
|
|
BLAKE2b-256 checksum How to use checksums |
b2e7dd6eee73f0257fb1e672f82dc789f59ab0e867d0d98b9b4c92b2553675b8
|
| 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.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | asp_fzn-0.3.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 558.9 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9a481a38e1980d9498859df9c51fc58d51b3565cb8566c3d9ccfa51d4d3e132d
|
|
BLAKE2b-256 checksum How to use checksums |
0a123804be9b46c1e599f6daf6a7da77303f40a626dcfbb4695d6a2c1224b491
|
| 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.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | asp_fzn-0.3.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 520.7 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
b2f5c01d03123a7948439d80e38c90d1d578e08a78e3c215c90b6bc5b3c46964
|
|
BLAKE2b-256 checksum How to use checksums |
e9714d190b12d75eeaa358a02390dfbc7fd45534da16c9ccb152a5d729debaea
|
| 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.2-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | asp_fzn-0.3.2-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 |
95e53e9c010f612e0dc6e8a0f543113c2caca028ff15d5363e2b4a990e6e7c22
|
|
BLAKE2b-256 checksum How to use checksums |
ad5bba26a1be8a4f87f0fde47ab2393cd3cf8038fc93ce8e3b8a1809797ce85f
|
| 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.2-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | asp_fzn-0.3.2-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 |
90e8b2e617ab063925aa149f8a564a0637b1ea332c27eb6b3ff87c4d4a021fa3
|
|
BLAKE2b-256 checksum How to use checksums |
f56cc2a65cbb14a09432d0fc509de2ac454586061304740eb78171e9f5b86197
|
| 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.2
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.