Skip to main content

Input file generators for computational chemistry

Project description

Table of Contents

About

img

Hatch project

A pure-python project to generate input files for various common computational chemistry workflows. This means:

  • Generating input structures for jobflow / Fireworks
    • From unified toml inputs
  • ORCA blocks (NEB, geometry scans, extras) and eOn renderers via Jinja templates
  • Shared units and helpers with rgpycrumbs (rgpycrumbs>=1.3)

This is a spin-off from wailord (here) which is meant to handle aggregated runs in a specific workflow, while pychum is meant to generate single runs. It is also a companion to chemparseplot (v1.8+ recommended) which provides uniform visualizations for the outputs of various computational chemistry programs. Install with pip install pychum (Python ≥3.10); develop with pixi run -e test test or uv sync --extra test.

Ecosystem Overview

pychum is part of the rgpycrumbs suite of interlinked libraries.

img

Features

  • Jobflow support
    • Along with Fireworks
  • Unit aware conversions
    • Via pint

Supported Engines

  • NEB calculations
    • ORCA
    • EON
  • Single point calculations
    • ORCA
    • EON

Rationale

I needed to run a bunch of systems. jobflow / Fireworks / AiiDA were ideal, until I realized only VASP is really well supported by them.

Also there were some minor problems with the ORCA input parser…

  • It chokes on multiple # symbols, so # MaxIter 50 # something will error out on SOMETHING
  • No real ordering or syntax highlighting in major IDEs

Along with other minor inconveniences which make for enough friction over time to necessitate this library.

Usage

The simplest usage is via the CLI:

uv run pychum --help
# Or alternatively
python -m pychum.cli --help

Development

Before writing tests and incorporating the functions into the CLI it is helpful to often visualize the intermediate steps. For this we can setup a complete development environment including the notebook server.

uv sync --all-extras
uv run jupyter lab --ServerApp.allow_remote_access=1 \
    --ServerApp.open_browser=False --port=8889

Then go through the nb folder notebooks.

Adding ORCA blocks

Changes are to be made in the following files under the pychum/engine/orca/ folder:

  • The relevant .jinja file in the _blocks directory
  • The configuration loading mechanism in config_loader.py
  • The dataclasses folder
  • A sample test .toml file under tests/test_orca

While working on this, it may be instructive to use the nb folder notebooks. Also all PRs must include a full test suite for the new blocks.

Documentation

Readme

The readme can be constructed via:

./scripts/org_to_md.sh readme_src.org readme.md

License

MIT. However, this is an academic resource, so please cite as much as possible via:

  • The Zenodo DOI for general use.
  • The wailord paper for ORCA usage

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pychum-1.4.2.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pychum-1.4.2-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file pychum-1.4.2.tar.gz.

File metadata

  • Download URL: pychum-1.4.2.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pychum-1.4.2.tar.gz
Algorithm Hash digest
SHA256 d6a1e6b0761d42d950fa05ff393c642335a5480224a31053a4fc0c2c685a1144
MD5 12a5d8244c2c4e78a0c1df9fd8b67151
BLAKE2b-256 8f93bc719f383b51252a6698acafa71f577a0e7acd58ecdb5030a3452915189b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pychum-1.4.2.tar.gz:

Publisher: release.yml on HaoZeke/pychum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pychum-1.4.2-py3-none-any.whl.

File metadata

  • Download URL: pychum-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pychum-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3735c28a2eecd6efc41ec24db5183662cca23ae8f53ca77c199fedf974944930
MD5 c0438d6e6717e8aeee9e0912ba06d459
BLAKE2b-256 2c12ab431f78bad7451e13f973aaa66833e62b48a98ab1721e617e63f144b1b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pychum-1.4.2-py3-none-any.whl:

Publisher: release.yml on HaoZeke/pychum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page