Use the package

Documentation on Github here

$ python3 -m pip install mofdb_client
from mofdb_client import fetch
# Fetch all mofs with void fraction >= 0.5 and <= 0.99
# Convert all isotherm loading units to mmol/g and all pressures to atmospheres
for mof in fetch(vf_min=0.5, vf_max=0.99, loading_unit="mmol/g", pressure_unit="atm"):
    print(f"Mof {mof.name} has {len(mof.isotherms)} isotherms and elements {[str(e) for e in mof.elements]}")
    print(f"This mof's cif file starts with: '{mof.cif.splitlines()[1]}'")
Mof hMOF-6 has 6 isotherms and elements ['Zn', 'O', 'C', 'H', 'F']
This mof's cif file starts with: '_audit_creation_method	'MofGen! by Chris Wilmer''
Mof hMOF-0 has 6 isotherms and elements ['Zn', 'O', 'C', 'H']
This mof's cif file starts with: '_audit_creation_method	'MofGen! by Chris Wilmer''
Mof hMOF-3 has 6 isotherms and elements ['Zn', 'O', 'C', 'H', 'F']
This mof's cif file starts with: '_audit_creation_method	'MofGen! by Chris Wilmer''
Mof hMOF-9 has 6 isotherms and elements ['Zn', 'O', 'C', 'H', 'F']
This mof's cif file starts with: '_audit_creation_method	'MofGen! by Chris Wilmer''
Mof hMOF-12 has 6 isotherms and elements ['Zn', 'O', 'C', 'H', 'F']
This mof's cif file starts with: '_audit_creation_method	'MofGen! by Chris Wilmer''
Mof hMOF-15 has 6 isotherms and elements ['Zn', 'O', 'C', 'H', 'F']
This mof's cif file starts with: '_audit_creation_method	'MofGen! by Chris Wilmer''
...
  
This python package is at least 3x faster than using the paginated API and we HIGHLY recommend you use it. If the package doesn't fit your needs for some reason

API Routes & Supported URL Parameters

Versioning

Mofdb downloads are tagged with a version to help ensure results are reproducable even after content in mofdb changes. Each version corresponds to a git commit in this repository If you want to get an old version of mofdb simply clone that repo

      git clone https://github.com/snurr-group/mofdb-x-archive.git
      git checkout YOUR_VERSION
    
Versions can be found in each mof's json file under the mofdb_version property as well as in the file name of all bulk downloads and database downloads.