mondher
Python bindings to the Mondher formal-concept-analysis engine.
Install
pip install mondher
Quickstart
import mondher
# Read a context file (Burmeister .cxt, CSV, DAT, XML, or JSON).
with open("breakfast.cxt", "rb") as f:
ctx = mondher.parse_context(f.read(), filename="breakfast.cxt")
# Compute the concept lattice and get a list of dicts.
concepts = mondher.compute_concepts(ctx)
print(f"{len(concepts)} concepts")
for c in concepts[:5]:
print(f" extent={c['extent']} intent={c['intent']}")
# Use a different algorithm. See `supported_algorithms()` for choices.
print(mondher.supported_algorithms()) # ['next-closure', 'in-close-5', 'fcbo']
concepts_fast = mondher.compute_concepts(ctx, algorithm="fcbo")
# Compute the Duquenne-Guigues canonical implication base.
implications = mondher.compute_implications(ctx)
for imp in implications[:3]:
premise = ", ".join(imp["premise"])
conclusion = ", ".join(imp["conclusion"])
print(f" {{{premise}}} -> {{{conclusion}}}")
Jupyter notebooks
In a notebook cell, just put a Lattice as the last expression and
Jupyter renders it inline as SVG:
import mondher
ctx = mondher.parse_context(open("breakfast.cxt", "rb").read(), filename="breakfast.cxt")
lattice = mondher.compute_lattice(ctx)
lattice # Renders the Hasse diagram inline
The Lattice class also has:
.concepts()— returns the same list-of-dicts ascompute_concepts.svg()— returns the SVG string (e.g., for saving to a file).n_concepts— the number of concepts
Supported formats
The parse_context function dispatches on the filename extension:
| Extension | Format |
|---|---|
.cxt |
Burmeister |
.csv |
Comma-separated values |
.dat |
NCI / dense binary |
.xml |
ConExp XML |
.json |
Mondher JSON |
License
Proprietary. See the main repository for details.
Metadata
Release files for mondher 0.2.0
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 |
|---|---|---|---|---|
| mondher-0.2.0.tar.gz | 97.5 kB | With provenance | Details for mondher-0.2.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| mondher-0.2.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for mondher-0.2.0-cp39-abi3-win_amd64.whl |
| mondher-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details for mondher-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| mondher-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details for mondher-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| mondher-0.2.0-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details for mondher-0.2.0-cp39-abi3-macosx_11_0_arm64.whl |
| mondher-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details for mondher-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl |
Total release size: 1.9 MB
Release files / mondher-0.2.0.tar.gz
| Download URL | mondher-0.2.0.tar.gz |
|---|---|
| Size | 97.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e201b9364d11074032bcf440a4946ba21d7b4ffbe3c761d98c06a0df804c2b2
|
|
BLAKE2b-256 checksum How to use checksums |
4f440100d812909edccb1683b3a4798ceb701d69cb0e793238d5a74dbb0fc4de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logRelease files / mondher-0.2.0-cp39-abi3-win_amd64.whl
| Download URL | mondher-0.2.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 309.1 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
186ae3389aecafc34a4ffb4c1cfcada20d9e9e5c4aeee6d54962f12d8f4ff8c8
|
|
BLAKE2b-256 checksum How to use checksums |
a8d6f57a399088635b4d13bbc85248bc9fdc588b0d996e23442bf918de614735
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logRelease files / mondher-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | mondher-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 396.9 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8d34d1d40d92e863deeeaae8a9e31386b33937c1fd273510ba4dd221a0e8483e
|
|
BLAKE2b-256 checksum How to use checksums |
eb2a8ea7906dc4f60450beac27d6cad878254ca4a0f5527514e5039d4804ac8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logRelease files / mondher-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | mondher-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 375.5 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
5eccf700c4b3e6ea9e04893b65dfdfc20c9f45fc36badbda3d657b50b71b66f0
|
|
BLAKE2b-256 checksum How to use checksums |
c6b585f1ce76e8f8a0a230767fa1880002037f1c17bb09d031a2aaaa60b5dc9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logRelease files / mondher-0.2.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | mondher-0.2.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 357.5 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
24334872b24213537e08542cfa1527d36ddb7d2821087431f541e8a0ef687133
|
|
BLAKE2b-256 checksum How to use checksums |
5654e75217ad63fe10687e333927c1367780b7083f2ba9c6ea25acca32de3b68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logRelease files / mondher-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | mondher-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 374.0 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
aa111789c15fe5234ab3b655ae2c267547b2cb432edc2e8c96763ad4d27925fe
|
|
BLAKE2b-256 checksum How to use checksums |
c4fcb2714011c804b90c957dc9c1aa96b734afddee9d7d48be7cd89cdcc6dec6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logSecurity for mondher 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.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for mondher-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logA 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.