Skip to main content

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

  • Python 3.6+

  • xmlschema (Python library for processing XML Schema based documents)

Installation

You can install the library with pip in a Python 3.6+ environment:

pip install qeschema

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/Al001_relax_bfgs.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()

Authors

Davide Brunato Pietro Delugas Giovanni Borghi

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qeschema-1.2.0.tar.gz (154.5 kB view details)

Uploaded Source

Built Distribution

qeschema-1.2.0-py3-none-any.whl (44.7 kB view details)

Uploaded Python 3

File details

Details for the file qeschema-1.2.0.tar.gz.

File metadata

  • Download URL: qeschema-1.2.0.tar.gz
  • Upload date:
  • Size: 154.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.10.0

File hashes

Hashes for qeschema-1.2.0.tar.gz
Algorithm Hash digest
SHA256 e3a679aa56a7ac448bbf650958f9c2fdc6fa55b01a8b4775d3c83f270c60c998
MD5 72bb237b8a03289ca7ad84487ed20e9b
BLAKE2b-256 d3b469a55004c5334b7bb426f3cae50295faa9c5a2f916fe75664e383a0e2a25

See more details on using hashes here.

File details

Details for the file qeschema-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: qeschema-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 44.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.10.0

File hashes

Hashes for qeschema-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2f4efc767aa4c2685b9c5249401a5d7cfad3ba84308215dd3c94fe1d71b3e11
MD5 0b95b365dee7196fa7dd513978678bed
BLAKE2b-256 9d46742112297d26d641b2d5cd8879cb533e1dd642dab65c3019052beb9806fa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page