CP2K-Parser 2.0.0
A package for converting CP2K input files into PLAMS compatible dictionaries.
Installation
CP2K-Parser can be installed as following:
PyPi: pip install CP2K-Parser --upgrade
Usage
>>> import cp2kparser
>>> filename = 'my_cp2k_input.inp'
>>> print(open(filename).read())
&FORCE_EVAL
&DFT
BASIS_SET_FILE_NAME /path/to/basis
&MGRID
CUTOFF 400
NGRIDS 4
&END
&POISSON
&END
&LOCALIZE T
&END
POTENTIAL_FILE_NAME /path/to/potential
&QS
METHOD GPW
&END
&SCF
EPS_SCF 1e-06
MAX_SCF 200
&END
&XC
&XC_FUNCTIONAL PBE
&END
&END
&END
&SUBSYS
&CELL
A 16.11886919 0.07814137 -0.697284243
B -0.215317662 4.389405268 1.408951791
C -0.216126961 1.732808365 9.748961085
PERIODIC XYZ
&END
&KIND C
BASIS_SET DZVP-MOLOPT-SR-GTH-q4
POTENTIAL GTH-PBE-q4
&END
&KIND H
BASIS_SET DZVP-MOLOPT-SR-GTH-q1
POTENTIAL GTH-PBE-q1
&END
&TOPOLOGY
COORD_FILE_NAME ./geometry.xyz
COORDINATE XYZ
&END
&END
&END
&GLOBAL
PRINT_LEVEL LOW
PROJECT example
RUN_TYPE ENERGY_FORCE
&END
>>> cp2k_dict = cp2kparser.read_input(filename)
>>> print(cp2k_dict)
{'force_eval':
{'dft':
{'basis_set_file_name': '/path/to/basis',
'mgrid': {'cutoff': 400, 'ngrids': 4},
'poisson': {},
'localize T': {},
'potential_file_name': '/path/to/potential',
'qs': {'method': 'GPW'},
'scf': {'eps_scf': '1e-06', 'max_scf': 200},
'xc': {'xc_functional PBE': {}}},
'subsys':
{'cell': {'a': '16.11886919 0.07814137 -0.697284243', 'b': '-0.215317662 4.389405268 1.408951791', 'c': '-0.216126961 1.732808365 9.748961085', 'periodic': 'XYZ'},
'kind C': {'basis_set': 'DZVP-MOLOPT-SR-GTH-q4', 'potential': 'GTH-PBE-q4'},
'kind H': {'basis_set': 'DZVP-MOLOPT-SR-GTH-q1', 'potential': 'GTH-PBE-q1'},
'topology': {'coord_file_name': './geometry.xyz', 'coordinate': 'XYZ'}}},
'global': {'print_level': 'LOW', 'project': 'example', 'run_type': 'ENERGY_FORCE'}}
Metadata
Release files for CP2K-Parser 2.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 | Provenance | Actions |
|---|---|---|---|---|
| CP2K-Parser-2.0.0.tar.gz | 12.0 kB | Without provenance | Details for CP2K-Parser-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| CP2K_Parser-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for CP2K_Parser-2.0.0-py3-none-any.whl |
Total release size: 23.9 kB
Release files / CP2K-Parser-2.0.0.tar.gz
| Download URL | CP2K-Parser-2.0.0.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a63c0125d4e0d617f2cb98e57131fb2050bf5150235b9f63f3e6fd3f4497ef2
|
|
BLAKE2b-256 checksum How to use checksums |
baaf3f93d99a1deb1864a7a63992cf821b7dc7031e91dd6c2bfaca6740d37281
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / CP2K_Parser-2.0.0-py3-none-any.whl
| Download URL | CP2K_Parser-2.0.0-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce04d9beabde387bd6c62aa1cdfab96e8dbbaaefc87b298fd916983c3c43ff6e
|
|
BLAKE2b-256 checksum How to use checksums |
99bb81a70781d1eaa1acfda1052bc3ba89bed8398e57dd465c5b4716f0e84838
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for CP2K-Parser 2.0.0
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.