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.5+

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

Installation

You can install the library with pip in a Python 3.5+ 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:

import qeschema
pw_document = qeschema.PwDocument()
>>> 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:

import qeschema
import os
os.chdir('..')
pw_document = qeschema.PwDocument("tests/examples/pw/Al001_relax_bfgs.xml")
>>> 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.0.0.tar.gz (35.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: qeschema-1.0.0.tar.gz
  • Upload date:
  • Size: 35.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9

File hashes

Hashes for qeschema-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a497c9963a037279cdad960331f67dfb846c10fd91bf278466e5c590a5061b92
MD5 87843efacffa7c283b97b77ad22e7d28
BLAKE2b-256 497df8b3162e929c6d38dfba9bbc7f3e20d76e17006981effacff98cbcea3d2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qeschema-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 44.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9

File hashes

Hashes for qeschema-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63ac62a806e30531a110ae15df42b41a3214212ad52a23445c87f7d90756654d
MD5 23ce22cb3519d5d9f2273e9b5afc43b7
BLAKE2b-256 87423fef2342dd17575eee43a9530e66e8ba7da18465fa07d68e071a01252713

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