alchemlyb
the simple alchemistry library
Decision gist · record as of 2026-08-14
Yes. alchemlyb is actively maintained, has no known vulnerabilities, carries a permissive BSD-3-Clause license, and requires only standard PyData stack dependencies (low install friction). It is purpose-built for a specific, well-defined task—free energy analysis from MD simulations—and does it with established statistical methods. Install it if you work with alchemical free energy calculations; skip it if you do not.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or later.
- Input files must come from supported MD engines (GROMACS, AMBER, NAMD, etc.); parser availability depends on the engine used.
- Low friction: pure Python wheel with no compiled dependencies.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use, modify, and distribute alchemlyb freely in commercial and private projects provided you include the license notice.
last release 2025-10-22 (296 days) · last repo commit 2026-06-01 · 243 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 392,931 downloads/mo, #7,002 on PyPI
Alternatives
Verify before relying
pip install alchemlyb
import alchemlyb
from alchemlyb.parsing import gromacs
# Parse GROMACS free energy output
data = gromacs.extract_u_nk('md.xvg')
from alchemlyb.estimators import MBAR
estimator = MBAR()
estimator.fit(data)
print(estimator.delta_f_) # Free energy differences- Whether parsers support all simulation engines mentioned (GROMACS, AMBER, NAMD, others) equally well or if some are more mature than others.
- Performance characteristics when handling large timeseries datasets or high-dimensional free energy landscapes.
- Whether the package includes example workflows or tutorials for common use cases beyond the basic API.
What it is and what it does
alchemlyb is a Python library for analyzing alchemical free energy calculations from molecular dynamics simulations. It sits atop the PyData stack (numpy, pandas, scipy, scikit-learn, matplotlib) and provides three main layers: parsers that extract raw data from output files of common MD engines (GROMACS, AMBER, NAMD, and others), subsamplers that extract uncorrelated and equilibrated samples from timeseries data using techniques like those in pymbar, and estimators that compute free energies directly using best-practices methods including multistate Bennett acceptance ratio (MBAR), BAR, and thermodynamic integration (TI).
The package is designed for computational chemists and molecular dynamics practitioners who need to post-process simulation output and extract thermodynamic quantities. It abstracts away the boilerplate of parsing heterogeneous file formats and handling statistical correlation in timeseries, letting users focus on the analysis and interpretation of results. The library is actively maintained, supports modern Python versions (3.11–3.14), and has no compiled dependencies.
Use it for
- Extract and analyze free energy differences from GROMACS, AMBER, or NAMD simulations using MBAR or BAR estimators.
- Detect equilibration in molecular dynamics trajectories and subsample to obtain independent, uncorrelated configurations for downstream analysis.
- Compute free energies via thermodynamic integration from alchemical simulation data.
- Parse and standardize output from multiple MD engines into a common pandas-based data structure for comparative analysis.
- Automate post-processing of alchemical free energy perturbation (FEP) calculations in high-throughput workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
alchemlyb is actively maintained, has no known vulnerabilities, carries a permissive BSD-3-Clause license, and requires only standard PyData stack dependencies (low install friction). It is purpose-built for a specific, well-defined task—free energy analysis from MD simulations—and does it with established statistical methods. Install it if you work with alchemical free energy calculations; skip it if you do not.
Install
alchemlyb on PyPI
Before you install
Low friction: pure Python wheel with no compiled dependencies. Active maintenance (last commit 2026-06-01, 296 days since release). Requires Python 3.11 or later and 9 runtime dependencies from the PyData stack (numpy, pandas, scipy, scikit-learn, matplotlib, pymbar, loguru, pyarrow, joblib).
Requires Python 3.11 or later. Input files must come from supported MD engines (GROMACS, AMBER, NAMD, etc.); parser availability depends on the engine used.
License in practice
BSD-3-Clause is permissive; you can use, modify, and distribute alchemlyb freely in commercial and private projects provided you include the license notice.
Quickstart
pip install alchemlyb
import alchemlyb
from alchemlyb.parsing import gromacs
# Parse GROMACS free energy output
data = gromacs.extract_u_nk('md.xvg')
from alchemlyb.estimators import MBAR
estimator = MBAR()
estimator.fit(data)
print(estimator.delta_f_) # Free energy differences
Verify before relying
- Whether parsers support all simulation engines mentioned (GROMACS, AMBER, NAMD, others) equally well or if some are more mature than others.
- Performance characteristics when handling large timeseries datasets or high-dimensional free energy landscapes.
- Whether the package includes example workflows or tutorials for common use cases beyond the basic API.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagesnumpypandaspymbarscipyscikit-learnmatplotliblogurupyarrowjoblib |
| Maintenance | Actively maintained 296 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 392,931 / month, #7,002 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: Science/ResearchOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Bio-InformaticsTopic :: Scientific/Engineering :: ChemistryTopic :: Software Development :: Libraries :: Python Modules |
Evidence: alchemlyb-2.5.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “free energy calculations”
- alchemlybalchemlyb parses molecular dynamics simulation output, extracts…
- ViennaRNAViennaRNA provides Python bindings to a C library for predicting and…
- pymbarpymbar implements the multistate Bennett acceptance ratio (MBAR)…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also pymbar · MDAnalysis · mdtraj · OpenMM · pyscf · primer3-py · lammps · chemicals · pymzml · CoolProp