A python package for parsing, modifying, and analysis of molecular structure files.
Installation
Easiest way to install is from PyPI:
pip install xchem-molparse
Usage
Python Module
MolParse is primarily a python module which can be used interactively, or within (batch) scripts:
Use pydoc to see help on the molparse module, or its methods & classes. E.g. from a shell:
pydoc molparse
pydoc molparse.System
Binaries and command-line programs
moltree
In addition to the python module, an interactive command-line interface is available with the binary moltree. Pass a
PDB or GRO file as follows:
moltree <FILE>
Use the mouse to interact with buttons and CTR-C to exit.
molxvg
Gromacs produces data files in XVG format by default, these can be parsed using the molparse.xvg.parseXVG method from
within a python environment, alternatively a binary exists to access its basic functionality from the command line. Run
the following to open an interactive plotly graph of an xvg:
molxvg [FILE.xvg] -s
Other options can be found by running molxvg --help.
Installation from source
Requirements
Installing ASE
pip install --upgrade --user aseexport PATH=$PATH:~/.local/binto your.bash_profileexport PYTHONPATH=$PYTHONPATH:~/.local/lib/python3.X/site-packagesto your.bash_profileWhere X is your python version.
MPyTools
git clone https://github.com/mwinokan/MPyTools.git- Add
export MPYTOOLS=/path/to/directoryto your.bash_profile - Add
export PYTHONPATH=$PYTHONPATH:$MPYTOOLSto your.bash_profile
MolParse
git clone https://github.com/xchem/MolParse.git- Add
export MOLPARSE=/path/to/directoryto your.bash_profile - Add
export PYTHONPATH=$PYTHONPATH:$MOLPARSEto your.bash_profile
Metadata
Release files for xchem-molparse 1.0.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 | |
|---|---|---|---|
| xchem_molparse-1.0.0.tar.gz | 145.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xchem_molparse-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 321.3 kB
Release files / xchem_molparse-1.0.0.tar.gz
| Download URL | xchem_molparse-1.0.0.tar.gz |
|---|---|
| Size | 145.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d692a4f4ae59789044693269449b7b81875fc62e23111c7c71666e0d29c32473
|
|
BLAKE2b-256 checksum How to use checksums |
ce4a0860f7ff079a7595ebcd38d27188b8718bddb22cec0cdb673e4dfb774098
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 6, 2026.
Transparency logRelease files / xchem_molparse-1.0.0-py3-none-any.whl
| Download URL | xchem_molparse-1.0.0-py3-none-any.whl |
|---|---|
| Size | 176.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d15bb40acd4d2330e3ce21b6925db35ccf7443a27a55ecd5f06384890cb2a48c
|
|
BLAKE2b-256 checksum How to use checksums |
76d27542e0c145337d8c494f2b4ebdaa0cba83592d20c3b525ca460163094af4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 6, 2026.
Transparency log