https://github.com/deepmodeling/dpdata
A Python package for manipulating atomistic data of software in computational science
https://github.com/deepmodeling/dpdata
atomic-data python
Last synced: 23 days ago
JSON representation
A Python package for manipulating atomistic data of software in computational science
- Host: GitHub
- URL: https://github.com/deepmodeling/dpdata
- Owner: deepmodeling
- License: lgpl-3.0
- Created: 2019-04-12T13:24:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-25T03:35:14.000Z (about 1 month ago)
- Last Synced: 2025-04-06T15:05:10.974Z (about 1 month ago)
- Topics: atomic-data, python
- Language: Python
- Homepage: https://docs.deepmodeling.com/projects/dpdata/
- Size: 6.45 MB
- Stars: 208
- Watchers: 8
- Forks: 139
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- deepmodeling-projects - GitHub - 18% open · ⏱️ 20.03.2025): (Others)
- best-of-atomistic-machine-learning - GitHub - 28% open · ⏱️ 20.03.2025): (Data Structures)
README
# dpdata
[](https://anaconda.org/conda-forge/dpdata)
[](https://pypi.org/project/dpdata)
[](https://dpdata.readthedocs.io/)**dpdata** is a Python package for manipulating atomistic data of software in computational science.
## Installation
dpdata only supports Python 3.8 and above. You can [setup a conda/pip environment](https://docs.deepmodeling.com/faq/conda.html), and then use one of the following methods to install dpdata:
- Install via pip: `pip install dpdata`
- Install via conda: `conda install -c conda-forge dpdata`
- Install from source code: `git clone https://github.com/deepmodeling/dpdata && pip install ./dpdata`To test if the installation is successful, you may execute
```bash
dpdata --version
```## Supported packages
`dpdata` is aimmed to support different kinds of atomistic packages:
- Atomistic machine learning packages, such as [DeePMD-kit](https://github.com/deepmodeling/deepmd-kit);
- Molecular dynamics packages, such as [LAMMPS](https://github.com/lammps/lammps) and [GROMACS](https://gitlab.com/gromacs/gromacs);
- Quantum chemistry packages, such as [VASP](https://www.vasp.at/), [Gaussian](https://gaussian.com), and [ABACUS](https://github.com/deepmodeling/abacus-develop);
- Atomistic visualization packages, such as [3Dmol.js](https://3dmol.csb.pitt.edu/).
- Other atomistic tools, such as [ASE](https://gitlab.com/ase/ase).
- Common formats such as `xyz`.All supported formats are listed [here](https://docs.deepmodeling.com/projects/dpdata/en/master/formats.html).
## Quick start
The quickest way to convert a simple file from one format to another one is to use the [command line](https://docs.deepmodeling.com/projects/dpdata/en/master/cli.html).
```sh
dpdata OUTCAR -i vasp/outcar -o deepmd/npy -O deepmd_data
```For advanced usage with Python APIs, [read dpdata documentation](https://docs.deepmodeling.com/projects/dpdata/).
## Plugins
- [cp2kdata](https://github.com/robinzyb/cp2kdata) adds the latest CP2K support for dpdata.
For how to create your own plugin packages, [read dpdata documentation](https://docs.deepmodeling.com/projects/dpdata/).