Martini Templates
Martini Templates is a Python package that provides a CLI for generating Martini MDP files with sensible defaults. It uses Jinja2 templates to create MDP files for molecular dynamics simulations, allowing users to customize parameters and generate files for different simulation types.
Features
- Generate MDP files for NVT, NPT, and energy minimization simulations.
- Override default values for reference temperature (
ref_t) and pressure (ref_p). - Create all simulation files at once using the
--allflag. - Customizable output filenames.
Installation
Ensure Python 3.10 or higher is installed, then install the package using:
pip install .
Usage
Run the CLI tool to generate MDP files:
martini-templates [options]
Options
--nvt: Generate an NVT file (20 ns, no pressure coupling).--npt: Generate an NPT file (50 ns, pressure coupling).--em: Generate an energy minimization file.--all: Generate all files (NVT, NPT, EM).--ref_t: Set the reference temperature (default: 298 K).--ref_p: Set the reference pressure (default: 1 bar).--output: Specify a custom output filename (overrides default naming).
Examples
Generate an NVT file with default settings:
martini-templates --nvt
Generate an NPT file with a custom temperature and pressure:
martini-templates --npt --ref_t 310 --ref_p 1.5
Generate all files:
martini-templates --all
Recommended Usage with uvx
For better CLI experience and command management, it is recommended to use uvx:
uvx martini-templates --nvt
License
This project is licensed under the MIT License.
Metadata
Release files for martini-templates 0.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 | |
|---|---|---|---|
| martini_templates-0.1.0.tar.gz | 10.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| martini_templates-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / martini_templates-0.1.0.tar.gz
| Download URL | martini_templates-0.1.0.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fee30fbe84a67ee01c58f14565ad6c14f37ed56a38e78a52a83c94057c2ac489
|
|
BLAKE2b-256 checksum How to use checksums |
da29bdfb963720447d45e09bfbc8bd81edd52064f8a360770a47ecc3c7a24867
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.10
|
Release files / martini_templates-0.1.0-py3-none-any.whl
| Download URL | martini_templates-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28b117fb72f4e4a5df3f14273586dd1465a531987a810a022cbc3f72a26cfd1b
|
|
BLAKE2b-256 checksum How to use checksums |
9423b9a6bdfd9d52b380d50d47fffbdcea63f8bdfd6ee0d0aecbb4cc6c4216fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.10
|