Crystal structure engine for VASP POSCAR files
Project description
Poshcar - VASP POSCAR text editor package
Author: Andy Paul Chen (MSE, Nanyang Technological University)
Introduction
POSHCAR started as a cabin fever project during the first COVID lockdowns in the United States. It is a simple and lightweight text-based engine for generating and editing files in VASP format, which is one of the simplest and most compact descriptions of a crystal structures currently in use. The development follows an organic and modular development model where new functions are written whenever a project-specific need arises, so expect many changes as I hop from project to project.
How to use demo file
Demo notebooks are organised into 3 parts:
Core modules: Basic operations
Cell-building modules: Functions that lets you generate unit cells, e.g. supercells, organic molecules, slabs
Analytics: Functions involving statistical analysis of a unit cell, e.g. bonding behaviour
The output of the demo operations can be seen in the tests/_demo/ folder.
Modules
Interdependencies of modules are illustrated in the diagram below. The dependency relationship is marked with arrows (dependent -> core). Please use this graph for your reference if you would like to add to Poshcar!
Dependencies
ase, pyvis, rdkit, scipy, pymatgen, chgnet, pandas, networkx
How to install
PyPI release: pip install poshcar
Current github instance: pip install git+https://github.com/andypaulchen/poshcar.git
Developer install (FAFO) version: Download the package, cd to the folder where setup.py is, and then run the edit mode pip install (pip install -e .).
Changelog
You can visit the changelog in docs/changelog.txt for a short summary of changes I made over the years. I'm a bit lazy in the documentation, though.
Current version: 2.1.1
Last update: 19 January 2026
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
File details
Details for the file poshcar-2.1.1.tar.gz.
File metadata
- Download URL: poshcar-2.1.1.tar.gz
- Upload date:
- Size: 26.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4d9275404b8d56e99bf78d74d11aac35443141afb1ff9e318e9670813de03d9
|
|
| MD5 |
85deb5e5c6ef0b013b7c22ddc9051459
|
|
| BLAKE2b-256 |
03827c023269bbf3ad3540f682b82f7fd232e5ea65a7f59ae1db938c87449316
|