vasptools
tools for vasp
Installation
pip install vasptools
CLI mode
$ vasptools -h
usage: vasptools [-h] [-p] [-ppath PATH] [-t] [-td PATH] [-s] [-D] [-V]
subcommand ...
VASPTOOLS
positional arguments:
subcommand
potcar POTCAR
incar INCAR
LISTSUBCOMMAND list all sub commands, just for test
optional arguments:
-h, --help show this help message and exit
-p, --preview preview
-ppath PATH, --potpath PATH
set vasppot_path, you could also set env VASPPOT
-t, --test run test
-td PATH, --test_dir PATH
test_dir
-s, --shell shell mode, exec shell script
-D, --DEBUG debug
-V show program's version number and exit
$ vasptools potcar -h
usage: vasptools potcar [-h] [-i PATH] [-d PATH] [-p PTYPE] [-l]
[pp_names [pp_names ...]]
positional arguments:
pp_names
optional arguments:
-h, --help show this help message and exit
-i PATH, --input PATH
Generate POTCAR with POSCAR
-d PATH, --dirname PATH
directory to generate file
-p PTYPE, --ptype PTYPE
potcar type, avail: ['potcar', 'potcarGGA', 'potpaw',
'potpaw_GGA', 'potpaw_PBE']
-l, --list list available potcar
POSCAR
>>> from vasptools import potcar
>>> potcar.get_potcar_content(pp_names=['H', 'He', 'Li', pp_type='potpaw_PBE')
' PAW_PBE H 15Jun2001\n 1.00000000000000000\n parameters from PSCTR are:\n VRHFIN =H: ultrasoft test\n '
>>> potcar.gen_potcar(pp_names=['H'], pp_type='potpaw_PBE')
INCAR
>>> from vasptools import incar
>>> incar_dict = incar.parse_incar(incarfile)
>>> print(incar_dict)
OrderedDict([('system', 'si series'), ('prec', 'accurate'), ('encut', '245.345'), ('ibrion', '-1'), ('nsw', '0'), ('nelmin', '2'), ('ediff', '1.0e-05'), ('ediffg', '-0.02'), ('voskown', '1'), ('nblock', '1'), ('lvtot', '.true.'), ('nelm', '60'), ('algo', 'fast (blocked davidson)'), ('gga', 'pe'), ('ispin', '1'), ('iniwav', '1'), ('istart', '0'), ('icharg', '2'), ('lwave', '.false.'), ('lcharg', '.true.'), ('addgrid', '.false.'), ('lhyperfine', '.false.'), ('ismear', '0'), ('sigma', '0.2'), ('rwigs', '1.11')])
>>> print(output_incar(incar_dict))
system = si series
prec = accurate
encut = 245.345
ibrion = -1
nsw = 0
nelmin = 2
TODO
- INCAR
- POSCAR
- KPOINTS
- OUTCAR
- DOSCAR
- CHGCAR
- CHG
- WAVECAR
...
Metadata
Release files for vasptools 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vasptools-0.6.1.tar.gz | 19.0 kB | Without provenance | Details for vasptools-0.6.1.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vasptools-0.6.1-py3.6.egg | Legacy Egg format | - | - | Details for vasptools-0.6.1-py3.6.egg |
| vasptools-0.6.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for vasptools-0.6.1-py2.py3-none-any.whl |
Total release size: 104.5 kB
Release files / vasptools-0.6.1.tar.gz
| Download URL | vasptools-0.6.1.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ead95eb5c40e52faaa3794b82497145f190ec7741006b6e662517d79226dced
|
|
BLAKE2b-256 checksum How to use checksums |
98c20949f0ac681ce76b88094ce434101c808d79c6159fe506d9c7c22d90eb1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.6.4
|
Release files / vasptools-0.6.1-py3.6.egg
| Download URL | vasptools-0.6.1-py3.6.egg |
|---|---|
| Size | 58.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
8dc2e2326092c7f59ec81af12ec3937ac5a84f54cd87230bf39ffdcc4f0f9e73
|
|
BLAKE2b-256 checksum How to use checksums |
cf54bf556ab0410107be38067b5bdadc240509cbda0f4c4085300ef42d024591
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.6.4
|
Release files / vasptools-0.6.1-py2.py3-none-any.whl
| Download URL | vasptools-0.6.1-py2.py3-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8c355fca7a52246bdeebe25b52fc0a6f480aa68c8d88e5f58858b2ee26f619a0
|
|
BLAKE2b-256 checksum How to use checksums |
ba78cb0e2bcd8e5b3eea7c203ec7958aa96ca7e4735a3f9466cc378ab8722706
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.6.4
|
Security for vasptools 0.6.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.