This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: see mofdb-client package
mofdb-client
A typed lightweight client wrapping the mofdb api.
Installation
python3 -m pip install mofdb_client
Example
from mofdb_client import fetch
for mof in fetch(vf_min=0.5, vf_max=0.99):
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 UTEWUM_clean has 2 isotherms and elements ['Cu', 'H', 'C', 'N']
This mof's cif file starts with: '_audit_creation_date 2014-07-02'
Mof ZECKID_clean has 1 isotherms and elements ['Cu', 'H', 'C', 'N', 'O']
This mof's cif file starts with: '_audit_creation_date 2014-07-02'
Mof AQOMAW_clean has 2 isotherms and elements ['N', 'C', 'H', 'Co', 'Cl', 'O']
This mof's cif file starts with: '_cell_length_a 18.8345'
Mof AQOLOJ_clean has 2 isotherms and elements ['N', 'C', 'H', 'Co', 'Cl']
This mof's cif file starts with: '_cell_length_a 18.794'
Mof SENWOZ_clean has 2 isotherms and elements ['Zn', 'H', 'C', 'O']
This mof's cif file starts with: '_audit_creation_date 2014-07-02'
Mof IYUCIQ_clean has 2 isotherms and elements ['Dy', 'O', 'N', 'C', 'H']
This mof's cif file starts with: '_cell_length_a 29.162'
Mof ORUKET_clean has 2 isotherms and elements ['P', 'O', 'N', 'C', 'H', 'Mg']
This mof's cif file starts with: '_cell_length_a 18.571'
...
Parameters
fetch supports a number of arguements
- mofid: str
- mofkey: str
- vf_min: float
- vf_max: float
- lcd_min: float
- lcd_max: float
- pld_min: float
- pld_max: float
- sa_m2g_min: float
- sa_m2g_max: float
- sa_m2cm3_min: float
- sa_m2cm3_max: float
- limit: int
Design Note
fetch is lazy because mofDB is large. Be sure to loop over it with for mof in fetch() and NOT for mof in list(fetch()) since
building the list will download all the mofs before it starts processing and this will be very slow and may well run out of memory.
Compatibility
Tested on Python 3.9 likely to work on any 3.x.
Future Enhancements:
- Retries for transient network failures with exponential backoff
Metadata
Release files for mofdb-client-n8ta 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mofdb_client-n8ta-0.0.2.tar.gz | 6.0 kB | Without provenance | Details for mofdb_client-n8ta-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mofdb_client_n8ta-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for mofdb_client_n8ta-0.0.2-py3-none-any.whl |
Total release size: 12.8 kB
Release files / mofdb_client-n8ta-0.0.2.tar.gz
| Download URL | mofdb_client-n8ta-0.0.2.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed815e380d861c6839cbc923b57f3b9ac6dda1f1d17a076284f004b2ddd368db
|
|
BLAKE2b-256 checksum How to use checksums |
daa88a5db47d709953a5c1ac20209f0fcfbb984b4e94aa7decd9e5fa5e8c8dcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/24.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / mofdb_client_n8ta-0.0.2-py3-none-any.whl
| Download URL | mofdb_client_n8ta-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91ad2d4b4d7699d53f97d21552f0d56777ee44766fbad95827ddb38e5339a75c
|
|
BLAKE2b-256 checksum How to use checksums |
21f67495e581d7974442e5607bce97b11cd62bc51bc11675315ee02e6a469511
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/24.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Security for mofdb-client-n8ta 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.