mbe-tools
mbe-tools is a Python command-line toolkit for Many-Body Expansion (MBE)
workflows: fragment a cluster, prepare Q-Chem/ORCA/Molpro jobs, parse outputs,
and assemble MBE energies or project-mode derivative properties.
Status: 0.5.0 release. License: MIT.
Quick Start
1. Install
cd mbe-tools
python3 -m pip install -e ".[analysis,cli]"
mbe --help
For development checks, install the test tools too:
python3 -m pip install -e ".[analysis,cli,dev]"
2. Run The Built-In Smoke Test
The synthetic example uses small committed Q-Chem-like and ORCA-like outputs, so it does not require external quantum-chemistry software.
python3 examples/synthetic/regenerate.py --check
python3 examples/synthetic/check_cli_workflow.py
The workflow smoke runs parse, validate, info, calc, and analyze.
Success ends with:
synthetic CLI workflow ok
The example contract is recorded in examples/synthetic/manifest.json.
3. Direct Workflow In Five Commands
Use this when you want explicit control over each stage and do not need a central project file.
mbe fragment water7.xyz --out-xyz sampled.xyz --n 7 --seed 1
mbe gen water7.xyz --max-order 2 --backend orca --no-cp --out-dir geoms
mbe build-input geoms --glob "*.geom" --backend orca --method HF --basis STO-3G --out-dir inputs
mbe parse outputs --program auto --glob-pattern "*.out" --out parsed.jsonl
mbe calc parsed.jsonl --scheme strict --to 2
Typical direct stages are:
| Stage | Command | Output |
|---|---|---|
| Fragment or sample | mbe fragment |
sampled .xyz |
| Generate subsets | mbe gen or mbe gen-from-monomer |
.geom files |
| Render inputs | mbe build-input |
.inp files and optional sidecars |
| Parse outputs | mbe parse |
parsed.jsonl |
| Inspect and assemble | mbe validate, mbe info, mbe calc, mbe analyze |
summaries, CSV, plots |
4. Project Workflow In One mbe.toml
Use this when you want one project file to plan jobs, write inputs, parse
outputs, and assemble results. Project mode does not write intermediate .geom
files.
[project]
name = "water7"
source_xyz = "water7.xyz"
[fragmentation]
scheme = "gmbe" # mbe, screened_mbe, or gmbe
max_order = 1 # centered GMBE neighborhoods
cp = false
[fragmentation.gmbe]
cutoff_angstrom = 2.0
distance_metric = "closest_atom"
[software]
backend = "orca"
method = "HF"
basis = "STO-3G"
charge = 0
multiplicity = 1
orca_maxcore = 3000
orca_nprocs = 8
tole = 8
thresh = 14
orca_hessian_keyword = "AnFreq" # omit for ORCA NumFreq default
[task]
type = "hessian" # energy, gradient, or hessian
[paths]
inputs_dir = "inputs"
outputs_dir = "outputs"
manifest = "jobs.manifest.json"
parsed_jsonl = "parsed.jsonl"
array_dir = "arrays"
result_dir = "results"
Run the stages:
mbe project --config mbe.toml --stage plan
mbe project --config mbe.toml --stage inputs
# run the external Q-Chem or ORCA jobs yourself
mbe project --config mbe.toml --stage parse
mbe project --config mbe.toml --stage assemble
mbe calc --hessian-matrix results/hessian_mbe.npy --xyz water7.xyz --freq-out results/frequencies.csv
5. Read Next
- User manual: manual/README.md
- Project workflow and
mbe.toml: manual/04-project-workflow.md - Python API reference: docs/API_REFERENCE.md
- Architecture note: docs/ARCHITECTURE.md
- Contract index: docs/contract_index.json
Metadata
Release files for mbe-tools 0.5.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 |
|---|---|---|---|---|
| mbe_tools-0.5.0.tar.gz | 424.6 kB | With provenance | Details for mbe_tools-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mbe_tools-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for mbe_tools-0.5.0-py3-none-any.whl |
Total release size: 609.6 kB
Release files / mbe_tools-0.5.0.tar.gz
| Download URL | mbe_tools-0.5.0.tar.gz |
|---|---|
| Size | 424.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2d1ff0092599347a4104825a3ee65f0eeef39772b471d4e5bd917a1807b8299
|
|
BLAKE2b-256 checksum How to use checksums |
113a4fd824d672501c02cc833daa2e36b4f9f0435f123596995c7caaee9595a5
|
| 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 Jun 21, 2026.
Transparency logRelease files / mbe_tools-0.5.0-py3-none-any.whl
| Download URL | mbe_tools-0.5.0-py3-none-any.whl |
|---|---|
| Size | 185.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f11aec581b4c5886eba98b2cddbf1009342c70f8c44dea6f7d88ba82e2dbc7a
|
|
BLAKE2b-256 checksum How to use checksums |
2f75a13703675eb6caca81e7641505deb62dfc5aeca81824672250aaa6b82ef6
|
| 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 Jun 21, 2026.
Transparency logSecurity for mbe-tools 0.5.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
Both files in this release have been uploaded with provenance metadata.
Attestation for mbe_tools-0.5.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 Jun 21, 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.