Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

molcrafts-molrs

PyPI

Python bindings for the molrs molecular modeling toolkit.

Install with pip install molcrafts-molrs and import molrs. Full docs: https://docs.molcrafts.org/molrs/.

Install

pip install molcrafts-molrs

Requires Python 3.12+.

Quick start (0.12 surface)

import numpy as np
import molrs

# SMILES → atomistic graph (class API under molrs.io)
mol = molrs.io.SmilesIR("CCO").to_atomistic()

# 3D coordinates
from molrs.conformer import Conformer

mol = Conformer().generate(mol)

# Force field: typify → pairs → potentials (no typifier.build())
from molrs.ff import MMFF94Typifier, extract_coords, intramolecular_pairs

typed = MMFF94Typifier().typify(mol)
frame = typed.to_frame()
frame["pairs"] = intramolecular_pairs(frame)
pots = MMFF94Typifier().forcefield().to_potentials(frame)
coords = extract_coords(frame)
energy, forces = pots.calc_energy_forces(coords)
assert forces.shape == (frame["atoms"].nrows, 3)

Package layout

Import Owns
molrs (top level) Core: Frame, Block, Atomistic, Box, neighbors, …
molrs.io Readers/writers, SmilesIR
molrs.ff Force fields, typifiers, potentials
molrs.compute RDF, MSD, transport, dielectric, …
molrs.conformer 3D generation
molrs.perceive Rings / aromaticity builder

Users of analysis APIs: analysis time is fs (LAMMPS real). MSD needs unwrapped coordinates. VACF is the unbiased (C(\tau)) used for Green–Kubo D and VDOS.

Development

maturin develop --release
pytest -q

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

molcrafts_molrs_nightly-0.14.0.dev202608281251-cp312-abi3-win_amd64.whl (7.1 MB view details)

Uploaded CPython 3.12+Windows x86-64

molcrafts_molrs_nightly-0.14.0.dev202608281251-cp312-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (12.5 MB view details)

Uploaded CPython 3.12+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file molcrafts_molrs_nightly-0.14.0.dev202608281251-cp312-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for molcrafts_molrs_nightly-0.14.0.dev202608281251-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 54e1ce3d85e951a23d9c5de60d085a149e93f053053c1ebd9ce3ab18b2240d17
MD5 bb3b9214642688ac97161fe1a73e3a13
BLAKE2b-256 02f6b620084195718837ee198b8b99832c94aa4099c2a2a89819b70ae0368f03

See more details on using hashes here.

Provenance

The following attestation bundles were made for molcrafts_molrs_nightly-0.14.0.dev202608281251-cp312-abi3-win_amd64.whl:

Publisher: nightly.yml on MolCrafts/molrs

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

File details

Details for the file molcrafts_molrs_nightly-0.14.0.dev202608281251-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for molcrafts_molrs_nightly-0.14.0.dev202608281251-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cb51481708f252657730cec8c7127b39fdf095a5da917415165adc56fb0496e7
MD5 80758d6e5d35703816c17ccae2c51fae
BLAKE2b-256 81196e0c3b899232c8b854672fe41571b6e4ab7ebdd1670690bf95aaf991038d

See more details on using hashes here.

Provenance

The following attestation bundles were made for molcrafts_molrs_nightly-0.14.0.dev202608281251-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: nightly.yml on MolCrafts/molrs

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

File details

Details for the file molcrafts_molrs_nightly-0.14.0.dev202608281251-cp312-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for molcrafts_molrs_nightly-0.14.0.dev202608281251-cp312-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 bb9814e3f1be3cb4e0f45c7c9be885d5e923b59d299140a22f5820272d9bf02a
MD5 29797115f06146ff7fd0994e980c7293
BLAKE2b-256 5f890235b4156452a9741cf8b80d96302d20a88cbaedc5358220b0d664964e7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for molcrafts_molrs_nightly-0.14.0.dev202608281251-cp312-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: nightly.yml on MolCrafts/molrs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.
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