Polymer-Oriented LibrarY of Monomer Expression Rules and In-silico Synthesis Tools
A unified set of tools for setting up molecular dynamics simulations of general organic polymer systems. Based upon concepts and methods introduced in:
- "Parameterization of general organic polymers within the Open Force Field Framework" (Connor M. Davel, Timotej Bernat, Jeffrey R. Wagner, and Michael R. Shirts, 2024)
- "Robust, transferrable, and automatable techniques for systematic in silico polymerization" (Timotej Bernat, Jeffrey N. Law, Daria Lazarenko, Brandon C. Knott, and Michael R. Shirts, 2026)
Features
Includes functionality for:
- Generating chemical information-rich monomer residue templates
- Enumeration of all possible repeat units of a polymer ensemble given initial monomers and a target polymerization mechanism
- Building of linear homopolymers and copolymers (both topologies and coordinates)
- Solvating polymer systems
- Packing of many polymer chains into melt-like boxes
- Force-field parameterization within the OpenFF framework
- Interfaces to semi-empirical and graph neural network-based atomic partial charge assignment
- Reproducible simulation specification API
- Interfaces to OpenMM for running serial simulations with different thermodynamic parameters
- Much more!
Documentation
Complete documentation for polymerist can be found on the polymerist ReadTheDocs page
Examples
Examples of how to import and invoke the core features of polymerist can be found in the accompanying polymerist_examples repository.
Requirements
OS
polymerist is compatible with Linux (recommended) and Mac machines capable of installing Python 3.1 or 3.121. Due to lack of support from AmberTools, direct installation on Windows machines is not supported; however, this can easily be circumvented by using the Windows Subsystem for Linux (WSL2)
Python package manager
Before proceeding with installation, ensure you have some iteration of a Python package and environment management system installed on your machine. We recommend using mamba, installable via Miniforge. Miniconda and other Anaconda manager also work; however if you opt to use conda over mamba, be prepared for a markedly slower and more tedious install process!
Installation
The distribution for polymerist is hosted on PyPI. For detailed instruction on how to install polymerist and other required toolkits, see the installation docs. Here we provide an abridged summary to get you going
Base install
A fully-featured install in a safe virtual environment (named "polymerist-env", here) can be obtained by running the following terminal commands:
Mamba install (basic)
mamba create -n polymerist-env python=3.12
mamba activate polymerist-env
pip install polymerist
mamba install -c conda-forge openff-toolkit mbuild openbabel
Mamba install (extended)
An extended install with Jupyter Notebook support, molecular visualization capability, and chemical data querying capability can be obtained very similarly:
mamba create -n polymerist-env python=3.12
mamba activate polymerist-env
pip install polymerist[interactive,chemdb]
mamba install -c conda-forge openff-toolkit mbuild openbabel
Testing installation
To see if the installation was successful, one can run the following short set of commands which should yield the outputs shown:
mamba activate polymerist-env; python
>>> import polymerist as ps
>>> print(ps.pascal(5))
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
Parameterization toolkits
Assigning atomic partial charges using some flavor of AM1-BCC and enhanced conformer generation also requires installation of some supplementary toolkits. These can be installed as follows:
mamba activate polymerist-env
mamba install -c openeye openeye-toolkits
mamba install -c conda-forge openff-nagl
Installing from source (optional)
polymerist and all required dependencies can also be installed directly from the source code in this repository.
To install, execute the following set of terminal commands in whichever directory you'd like the installation to live on your local machine:
git clone https://github.com/timbernat/polymerist
cd polymerist
mamba env create -n polymerist-env -f devtools/conda-envs/release-build.yml
mamba activate polymerist-env
pip install .
Developer installation (for advanced users only)
Those developing for polymerist may like to have an editable local installation, in which they can make changes to the source code and test behavior changes in real-time. This type of installation proceeds as follows:
git clone https://github.com/timbernat/polymerist
cd polymerist
mamba env create -n polymerist-dev -f devtools/conda-envs/dev-build.yml
mamba activate polymerist-dev
pip install -e . --config-settings editable_mode=strict
The --config-settings editable_mode flag in the final line allows this installation to "play nicely" with PyLance, making auto-completion and navigation to source code much easier for VSCode users. It is optional, and can be removed if this compatibility is not desired
Copyright
Copyright (c) 2024, Timotej Bernat (timotej.bernat@colorado.edu)
Acknowledgements
Project based on the Computational Molecular Science Python Cookiecutter version 1.1.
Metadata
Release files for polymerist 1.1.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 | |
|---|---|---|---|
| polymerist-1.1.0.tar.gz | 269.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| polymerist-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 631.8 kB
Release files / polymerist-1.1.0.tar.gz
| Download URL | polymerist-1.1.0.tar.gz |
|---|---|
| Size | 269.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1c6bad5df19905cf3e00dad599492894c8d7a9ceebe24913bcfb91029434d84
|
|
BLAKE2b-256 checksum How to use checksums |
cbbac14d340422a967d62005e413463d19f4bbaadd35fa151ff38dd0d622b4cc
|
| 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 13, 2026.
Transparency logRelease files / polymerist-1.1.0-py3-none-any.whl
| Download URL | polymerist-1.1.0-py3-none-any.whl |
|---|---|
| Size | 362.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e4a03c29887768b48cd02849b5652874bd6988456d7bcb838e188ae7950db63
|
|
BLAKE2b-256 checksum How to use checksums |
70ae6e1c0c4693cb839bdf55a6c019f55280d8f0c245d9a259a15f8d1cf0b98e
|
| 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 13, 2026.
Transparency log