Skip to main content

CIF file retriever form pymatgen

Project description

CIFretriver

This python app retrieves data from the Materialproject API

  1. Make sure to get MP API KEY: https://materialsproject.org/open;
  2. Install requirements with python -m pip install -r requirements.txt or look at https://pymatgen.org/installation.html if you have any installation issues or MacOS;
  3. Run main.py module, it will demand the API KEY you've got and then creates config.json file required for API authentification;
  4. Insert "pretty formula" aka "SnO2" or "TiO2", then a query will be got;
  5. You can save the query with the name 'pretty formula'.csv into the 'csv_data_set_for_elements' directory if you chose to, that will be created or updated automatically;
  6. Then you can insert a material_id, this will retrieve you the conventional standard structure .cif file for requested material;
  7. You can also plot material bandstructure; If you using linux try: sudo apt-get install python3-tk;

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

cif_retriever-1.0.0.tar.gz (16.8 kB view hashes)

Uploaded Source

Built Distribution

cif_retriever-1.0.0-py3-none-any.whl (17.6 kB view hashes)

Uploaded Python 3

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