Skip to main content

Enhanced Monte Carlo (EMC) Python Interface

PyPI version shields.io PyPI download month

This module is a thin Python wrapper library of the EMC package that allows you to use all EMC functionalities with Python interface. No pre-installation of EMC is needed.

EMC creates input structures from SMILES strings and LAMMPS input files for particle simulations with atomistic force fields - Born, COMPASS, PCFF, CHARMM, OPLS, TraPPE or coarse-grained force fields - DPD, Martini, SDK.

Installation

The package includes EMC binaries for Linux x86-64 and ARM64, macOS 12.5 and later (Intel and Apple Silicon), and Windows (32-bit executable). pyemc.setup() requires Perl on your PATH. Run perl -v to check.

python -m pip install emc-pypi

This release bundles EMC 9.4.4 from the upstream archives dated July 1, 2026. Upstream lists the binaries as valid until July 1, 2027. To replace an expired installation, run python -m pip install --upgrade emc-pypi. If you previously set EMC_ROOT, unset it to use the force fields shipped with this package.

Usage

import pyemc

# Run the emc.pl and generate the build.emc file for the build command
pyemc.setup('your-setup-file.esh')

# Or you can pass in arguments like this
pyemc.setup('your-setup-file.esh', '-ntotal=1000', '-field=opls-aa')

# Finally, run the emc executable to create simulation input files
pyemc.build('build.emc')

Example

Example input files are provided in the example. Once installed, you can run the example by:

cd example
python example.py

The example.esh file creates a system with 80% m/m water and 20% m/m alcohol. More examples are available here

Citation

In any publication of scientific results based in part or completely on the use of EMC, please cite the original paper: P.J. in 't Veld and G.C. Rutledge, Macromolecules 2003, 36, 7358 [link] [pdf]

Metadata

Release files for emc-pypi 2026.11.19

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

Source distribution (sdist)

Source distribution for emc-pypi 2026.11.19
File Size Uploaded Provenance Actions
emc_pypi-2026.11.19.tar.gz 20.4 MB Without provenance Details for emc_pypi-2026.11.19.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for emc-pypi 2026.11.19
File Interpreter ABI Platform Actions
emc_pypi-2026.11.19-py3-none-any.whl Python 3 none any Details for emc_pypi-2026.11.19-py3-none-any.whl

Total release size: 41.3 MB

Release files / emc_pypi-2026.11.19.tar.gz

Download URL emc_pypi-2026.11.19.tar.gz
Size 20.4 MB
Tags Source
SHA-256 checksum
How to use checksums
620ed7c59ea67de761ceffe8696e4e0f44fe2a7bf8662a67a146f3c6a9a6151d
BLAKE2b-256 checksum
How to use checksums
b30e78908258551f85f4f74eb67a382c21be3a0306ef95ffc86cbecdf40dd4e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / emc_pypi-2026.11.19-py3-none-any.whl

Download URL emc_pypi-2026.11.19-py3-none-any.whl
Size 20.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
acd1300b37c198c0bb96a65671c7e447add74dbfd65d871c47b0a821b44578b8
BLAKE2b-256 checksum
How to use checksums
b1d6d6e26d8ac217584b73db833a3102fb2c90f3b6e7162d74d179a1b2358dbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for emc-pypi 2026.11.19

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