## Introduction
CatHub provides an interface to the Surface Reactions database on [Catalysis-Hub.org](http://www.catalysis-hub.org).
The module includes a command line interface that can be used to access and upload data. A short guide is given below. We refer to the [catalysis-hub documentation](http://docs.catalysis-hub.org/en/latest/tutorials/upload.html) for details on how to submit data.
## Using the cathub cli
Run cathub from the command line:
cathub –help
or with any of its sub-commands:
cathub reactions –help
## Examples
Querying the Surface Reactions database in Python:
from cathub.cathubsql import CathubSQL
# To get data on catalysis-hub.org db = CathubSQL()
# Data from local cathub .db file db = CathubSQL(‘filename.db’)
Get reactions in pandas dataframe:
- dataframe = db.get_dataframe(pub_id=’PengRole2020’,
include_atoms=False, include_atoms=True, # include atoms in dataframe #include_atoms=’PengRole2020.db’, # save atoms to local db reactants=[‘COgas’], products=[‘COstar’], elements=[‘Cu’, ‘Al’], #surface_composition=’Cu’, # match specific composition facet = ‘100’ )
Get atomic structure seperately:
# Get atoms for one reaction_id taken from dataframe atoms_list = db.get_atoms_for_reaction(reaction_id)
# Get atoms for entire dataset atoms_list = db.get_atoms_for_publication(pub_id=’PengRole2020’)
Quick view of atomic structures on Catalysis Hub with ase db CLI:
cathub ase ‘CuAg pub_id=PengRole2020’
## Uploading data
Organizing a general folder into a structured folder:
cathub organize <folderame> -a <ads1,ads2> -c <dft-code> -x <xc-functional> -f <facet> -S <crystal structure>
As an alternative to cathub organize, create an empty organized folderstructure for dropping files yourself. First create a template and edit it, then create the folders.
cathub make_folders –create-template <template> cathub make_folders <template>
Reading folders into a local .db file:
cathub folder2db <foldername>
Sending the data to the Catalysis Hub server:
cathub db2server <dbfile>
Metadata
Release files for Cathub 0.1.7
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 |
|---|---|---|---|---|
| Cathub-0.1.7.tar.gz | 63.6 kB | Without provenance | Details for Cathub-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Cathub-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for Cathub-0.1.7-py3-none-any.whl |
Total release size: 146.0 kB
Release files / Cathub-0.1.7.tar.gz
| Download URL | Cathub-0.1.7.tar.gz |
|---|---|
| Size | 63.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b9bd2f71f36198872313f363de63fc849d77d0f4dba6082cec4cb7f4cb413f6
|
|
BLAKE2b-256 checksum How to use checksums |
85aded57485732f6e48848874f02eb13c797d6eb7f3040e0979b39b4838d923a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.5
|
Release files / Cathub-0.1.7-py3-none-any.whl
| Download URL | Cathub-0.1.7-py3-none-any.whl |
|---|---|
| Size | 82.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
056b1cbc5effec3b689fbea94d40ca0a103861d3655672a4abe46fab974fd346
|
|
BLAKE2b-256 checksum How to use checksums |
35c3fc3d40a6b8013792b40de1ccb0ee602ed99d05bb0fb1ce1ef7fe68e091c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.5
|
Security for Cathub 0.1.7
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.