Installation
pyschlandals is not yet installable from pip. But by cloning the main repository of Schlandals, you can install it in your current python environment.
To do so you need to install the Rust toolchain. Once this is done, you should have cargo install.
You can then install Maturin with cargo install maturin.
Then, from the source directory of pyschlandals, run maturin develop.
Usage
The search and compiler main function are exported in python and can be used directly with the input filename and branching heuristic as follows
from pyschlandals.search import exact
from pyschlandals.compiler import compile
from pyschlandals import BranchingHeuristic
filename = '../tests/instances/bayesian_networks/asia_xray_false.cnf'
print(exact(filename, BranchingHeuristic.MinInDegree))
dac = compile(filename, BranchingHeuristic.MinInDegree)
print(dac.get_circuit_probability())
Documentation for how to access and update circuits parameters will come soon.
Metadata
Release files for pyschlandals 0.0.1
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 |
|---|---|---|---|---|
| pyschlandals-0.0.1.tar.gz | 68.8 MB | Without provenance | Details for pyschlandals-0.0.1.tar.gz |
Release files / pyschlandals-0.0.1.tar.gz
| Download URL | pyschlandals-0.0.1.tar.gz |
|---|---|
| Size | 68.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecd26988da1b9d9f104bf053e62c2e05c3883bdc1a86fad6e8154c0727f9ba4a
|
|
BLAKE2b-256 checksum How to use checksums |
e3b2c5115835d83bad455b471742a2ebfa985fe230d608bf0c74e9abfca3dff4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for pyschlandals 0.0.1
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.