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.1.0.tar.gz (36.9 kB view details)

Uploaded Source

Built Distribution

qeschema-1.1.0-py3-none-any.whl (44.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qeschema-1.1.0.tar.gz
  • Upload date:
  • Size: 36.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for qeschema-1.1.0.tar.gz
Algorithm Hash digest
SHA256 50f01531ffdeb7cce4687a198a0338141f22a872a0367227bef264f6de5fc01d
MD5 d14288e18fb1bb9b6ccf01cc687cb4f0
BLAKE2b-256 f8dd3b4dc586f93be01aadbeed949f5316cfa88569a6f8f185f25022b8180159

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qeschema-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 44.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for qeschema-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c282b2f0c3eb6144596a126f2cbbc0af877e2ccd757d8e67fe44b7e1e727cda
MD5 cf7388c9b8435fb450e6097a9a92337f
BLAKE2b-256 0a551a424d76ec13e9ffce59d64a8a42ec9a30d87fa41f99f9bfb24c19a1fc9e

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