zuspec-solver
Translates Zuspec IR solve problems for a constraint solver. Pure Python.
zuspec-ir-core collects an
action's random fields and constraints into a ScSolveProblem.
zuspec.solver.translate walks that problem once and hands each solver
construct to a sink. The sink is the dv-solve builder, which produces a
relocatable dv-solve problem blob, or
anything else with the same methods. So every backend that solves a Zuspec
model shares one encoding and one list of refused constructs.
from zuspec.solver.translate import build_solve_blob, TranslateError
blob, writeback = build_solve_blob(problem) # problem: ScSolveProblem
# writeback: object field slot -> solver var_id
A constraint the solver cannot take raises TranslateError with its source
location. It is never dropped.
Used by zuspec-be-bc, the backend pssc runs PSS on.
License
Apache-2.0
Metadata
Release files for zuspec-solver 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zuspec_solver-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for zuspec_solver-0.2.0-py3-none-any.whl |
Release files / zuspec_solver-0.2.0-py3-none-any.whl
| Download URL | zuspec_solver-0.2.0-py3-none-any.whl |
|---|---|
| Size | 26.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9b2fb9b92978698355e7200517a5dfc39f41d4bbaddcf22d4d843bc990cbca1
|
|
BLAKE2b-256 checksum How to use checksums |
9afad94e07e35cb27c58797688cd8bf38e8baadfe9d4d46c0748d9e94b8c22c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for zuspec-solver 0.2.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.
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.