Skip to main content

LogicalPy

PyPI version License Code style: black Python versions Test coverage

LogicalPy is a Python library providing basic functionalities for manipulating propositional logic.

Description

The library allows to work with classical propositional logic formulae. The main features include:

  • The construction of logical formulae either directly or from a string
  • The visualisation of truth tables
  • The implementation of semantic notions: satisfiability, entailment...
  • The conversion to normal forms (NNF, CNF, or DNF)
  • The implementation of a Hilbert-style proof system
  • Automated theorem proving with the resolution procedure

The library also supports LaTeX code generation for most of its functionalities.

For the complete documentation, see https://cubix1729.github.io/logicalpy/.

Installation

With pip:

pip install logicalpy

Note that the library needs a Python version higher than 3.9.

Contributing

If you want to contribute to this project, you can open an issue to report a bug or request a feature, or make a pull request. See CONTRIBUTING.md for detailed contribution guidelines.

License

This project is licensed under the MIT license.

Metadata

Release files for logicalpy 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logicalpy 1.2.1
File Size Uploaded Provenance Actions
logicalpy-1.2.1.tar.gz 32.2 kB Without provenance Details for logicalpy-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for logicalpy 1.2.1
File Interpreter ABI Platform Actions
logicalpy-1.2.1-py3-none-any.whl Python 3 none any Details for logicalpy-1.2.1-py3-none-any.whl

Total release size: 46.2 kB

Release files / logicalpy-1.2.1.tar.gz

Download URL logicalpy-1.2.1.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
72a553e88db7963f102dff8b7f56ec7317498f17c1d153f34232a1591e138df7
BLAKE2b-256 checksum
How to use checksums
8c4a95b2e43836badb9a067f48bcef7d1bafbd99f0d498b07cdf302f3a039e96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / logicalpy-1.2.1-py3-none-any.whl

Download URL logicalpy-1.2.1-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9ecf72a6501fcaf588d0499ac14cc5e652a590b9527e790c8e11eec19a3ab53
BLAKE2b-256 checksum
How to use checksums
7895fe15a8ebe62abeedc91b719f6b5ef938ea6ff4cfd77cc8f0554e9cbb6992
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for logicalpy 1.2.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.

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