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

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.4
File Size Uploaded Provenance Actions
asp_fzn-0.3.4.tar.gz 63.0 kB Without provenance Details for asp_fzn-0.3.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for asp-fzn 0.3.4
File Actions
asp_fzn-0.3.4-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for asp_fzn-0.3.4-cp39-abi3-win_amd64.whl
asp_fzn-0.3.4-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.4-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
asp_fzn-0.3.4-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for asp_fzn-0.3.4-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
asp_fzn-0.3.4-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for asp_fzn-0.3.4-cp39-abi3-macosx_11_0_arm64.whl
asp_fzn-0.3.4-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for asp_fzn-0.3.4-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 5.2 MB

Release files / asp_fzn-0.3.4.tar.gz

Download URL asp_fzn-0.3.4.tar.gz
Size 63.0 kB
Tags Source
SHA-256 checksum
How to use checksums
948b259f662acd9b20aaa1a3b65bb7da2dbdf1276c51da31e9265f94eda413d8
BLAKE2b-256 checksum
How to use checksums
25acc0f40956ca83c9aae7aa01b6d721e329e9d405c4ed75939ba117b6b22d22
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.4-cp39-abi3-win_amd64.whl

Download URL asp_fzn-0.3.4-cp39-abi3-win_amd64.whl
Size 1.3 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
718cc049835e904f0f06464d3e3193101488115ac57ee1966ee55854522a7dac
BLAKE2b-256 checksum
How to use checksums
54a55bbcb0cd330ac7e44648b3b6d9723f841195c669a0b86bf1d55a44bc7654
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.4-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL asp_fzn-0.3.4-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 558.5 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
19e5ef4bbd484025c82f1234eaa55668157fa042a1a0b492beca3ec1cad77756
BLAKE2b-256 checksum
How to use checksums
18e90522c2ca8712e43eb6292e1cca0f9e97b2fb02f40dca6225dc15873563bb
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.4-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL asp_fzn-0.3.4-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 520.3 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
b1c61add4e3a870f49b4971ef9fbecf444d5cb046cfd05c14db5d6b55ac45f64
BLAKE2b-256 checksum
How to use checksums
11feb81b4fb1759cf67d0bff1eb1322a66df65ead55bdd180cfe4ed692668b41
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.4-cp39-abi3-macosx_11_0_arm64.whl

Download URL asp_fzn-0.3.4-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
3d76e7d326eddceb3a1bab93352ee6163a3e12ed89af6620c37303d20d272500
BLAKE2b-256 checksum
How to use checksums
a3b5be01c513bf11e6bf9a2f5f124202c70a5dbe5dc5396c7f6c49d492c32fcf
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.4-cp39-abi3-macosx_10_12_x86_64.whl

Download URL asp_fzn-0.3.4-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
6b597a42955380e1c876271b92d5663c9a28f6b8d214a12c6b6e859ee2e2e2c7
BLAKE2b-256 checksum
How to use checksums
615c9391d7d37433a3d798eede31c55080c41aa489b0e1a890a8ec05f9046608
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.4

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