Schema-based tools and interfaces for Quantum Espresso data
Project description
The qeschema package provides tools for converting XML data produced by the Quantum ESPRESSO suite of codes (ESPRESSO: opEn-Source Package for Research in Electronic Structure, Simulation and Optimization).
Requirements
Installation
You can install the library with pip in a Python 3.7+ environment:
pip install qeschema
If you need HDF5 utilities and/or the YAML format, install the extra features using the appropriate command from these alternatives:
pip install qeschema[HDF5] pip install qeschema[YAML] pip install qeschema[HDF5,YAML]
Usage
Define you data document using:
>>> import qeschema
>>> pw_document = qeschema.PwDocument()
and then read XML data from a file processed by the corresponding application of Quantum ESPRESSO suite:
>>> pw_document.read("tests/examples/pw/Si.xml")
Loaded data can be decoded to Python data dictionary or written to JSON or YAML formats:
>>> xml_data = pw_document.to_dict()
>>> json_data = pw_document.to_json()
License
This software is distributed under the terms of the MIT License. See the file ‘LICENSE’ in the root directory of the present distribution, or http://opensource.org/licenses/MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qeschema-1.5.2.tar.gz
.
File metadata
- Download URL: qeschema-1.5.2.tar.gz
- Upload date:
- Size: 199.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 281b80b1b535e95e17404065977f5f25d245d451fcd3c520712eb08eb49154e2 |
|
MD5 | 496d2495320aee50d4a38c390de30f06 |
|
BLAKE2b-256 | 3c57e280f33a2084579883e88a5283dfa249559a4458fea8799a494c92888527 |
File details
Details for the file qeschema-1.5.2-py3-none-any.whl
.
File metadata
- Download URL: qeschema-1.5.2-py3-none-any.whl
- Upload date:
- Size: 162.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d145d2391a0ee7e6c093013b3f99e3c37d3d447868adf1c46a9c00e5007d564d |
|
MD5 | 3456c72b86e47cde6858af1d1c3a4be6 |
|
BLAKE2b-256 | 4bfcafe8ff7987430763696f9a358768d25e762f4c84b3c079dec98ead8ff835 |