Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
.. image:: https://circleci.com/gh/easyas314159/cnftools/tree/master.svg?style=svg :target: https://circleci.com/gh/easyas314159/cnftools/tree/master
A collection of tools for working with and generating Dimacs CNF files.
::
pip install cnftools
cnftools
is listed in PyPI <https://pypi.org/project/cnftools/>
_ and
can be installed with pip
.
cnftools
exposes the cnf
command-line interface for quickly generating
Dimacs CNF files typically for use with a SAT solver.
Apply the Tseytin transformation [TSEY1970]_ to a CNF file producing an output where all clauses contain 3 or fewer literals.
::
cnf 3cnf -i [input.cnf]
Simply the input CNF file.
::
cnf simplify -i [input.cnf] -o [output.cnf]
Provide details about contents of a CNF file. This includes the number of literals, the total number of clauses, as well as a histogram of clause lengths.
::
cnf stats -i [input.cnf]
This sub-command exposes utilities for generating CNF files based on
Karp's 21 NP-Complete problems [KARP1972]_. For more details on this utility
use the -h
/--help
option.
::
cnf karps21 --help
.. [TSEY1970] Tseitin, Grigori. "On the complexity of derivation in propositional calculus." Studies in constructive mathematics and mathematical logic (1968): 115-125. .. [COOK1971] Cook, Stephen A. "The complexity of theorem-proving procedures." Proceedings of the third annual ACM symposium on Theory of computing. ACM, 1971. .. [KARP1972] Karp, Richard M. "Reducibility among combinatorial problems." Complexity of computer computations. Springer, Boston, MA, 1972. 85-103.
FAQs
A collection of tools for working with and generating Dimacs CNF files.
We found that cnftools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.