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

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.5
File Size Uploaded Provenance Actions
asp_fzn-0.3.5.tar.gz 63.6 kB Without provenance Details for asp_fzn-0.3.5.tar.gz

Built distributions (wheels)

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

Total release size: 5.2 MB

Release files / asp_fzn-0.3.5.tar.gz

Download URL asp_fzn-0.3.5.tar.gz
Size 63.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4549a16bc4205bb7830f226fc210ca9f5d1821ff1010422d662f89b6b14c61c7
BLAKE2b-256 checksum
How to use checksums
833732a1899bbc8897f75e7e0b64586f279c91514aaa39ea3b334a831b2d95e5
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.5-cp39-abi3-win_amd64.whl

Download URL asp_fzn-0.3.5-cp39-abi3-win_amd64.whl
Size 1.3 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6ac8d4a567a8f0473d6821d3a34e2b02a927c22e76bbaf558d2d0205a1b7466c
BLAKE2b-256 checksum
How to use checksums
156a53eafcb33660840915d5669c754c83602433d11a105800ab2359b8f4da15
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.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL asp_fzn-0.3.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 559.3 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
ae11e65762cc241ce2f803f905da8aec5651546804c543eeb262d0e9345cb8e1
BLAKE2b-256 checksum
How to use checksums
9755855d402659d969384f233c3fc9d001f0aad01393a9759a0b40cca5e960b1
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.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL asp_fzn-0.3.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 521.8 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
1de7fce0fb49e85d1f46bb4c6b02d6ec144576a20fbaa0d025fa48ac6c2eb3ce
BLAKE2b-256 checksum
How to use checksums
e63b31cbad41505d2a75d574faf666f970618afdcfe386e33828fbab885fc842
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.5-cp39-abi3-macosx_11_0_arm64.whl

Download URL asp_fzn-0.3.5-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
18204480bb09a313ce45693d0868f7a3c5f1ba8d477902f56393eef15674c9c1
BLAKE2b-256 checksum
How to use checksums
e41b2ff0f96f24d745cf9296cb0304aa4f154d67dff9adfc5f7e6fb66fce2f7c
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.5-cp39-abi3-macosx_10_12_x86_64.whl

Download URL asp_fzn-0.3.5-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
ab532b80ecd821ec18b9c6a77d3dd97e60679387c3a9c1cce3ce9711cde206a9
BLAKE2b-256 checksum
How to use checksums
1282083f944264e7b2e4c0e9646c33c41193b4d9b52abcb41ad43ad4842d4f46
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.5

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