d3tales-api 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- d3tales_api-0.2.0/LICENSE +21 -0
- d3tales_api-0.2.0/MANIFEST.in +3 -0
- d3tales_api-0.2.0/PKG-INFO +110 -0
- d3tales_api-0.2.0/README.md +57 -0
- d3tales_api-0.2.0/d3tales_api/Calculators/__init__.py +0 -0
- d3tales_api-0.2.0/d3tales_api/Calculators/calculators.py +935 -0
- d3tales_api-0.2.0/d3tales_api/Calculators/ocelot_transform.py +425 -0
- d3tales_api-0.2.0/d3tales_api/Calculators/plotters.py +308 -0
- d3tales_api-0.2.0/d3tales_api/Calculators/utils.py +154 -0
- d3tales_api-0.2.0/d3tales_api/D3database/__init__.py +0 -0
- d3tales_api-0.2.0/d3tales_api/D3database/back2front.py +891 -0
- d3tales_api-0.2.0/d3tales_api/D3database/d3database.py +476 -0
- d3tales_api-0.2.0/d3tales_api/D3database/dft_calculation_list.py +80 -0
- d3tales_api-0.2.0/d3tales_api/D3database/restapi.py +280 -0
- d3tales_api-0.2.0/d3tales_api/D3database/schema2class.py +59 -0
- d3tales_api-0.2.0/d3tales_api/D3database/schema2model.py +186 -0
- d3tales_api-0.2.0/d3tales_api/Processors/__init__.py +0 -0
- d3tales_api-0.2.0/d3tales_api/Processors/expflow_parser.py +306 -0
- d3tales_api-0.2.0/d3tales_api/Processors/info_from_smiles.py +128 -0
- d3tales_api-0.2.0/d3tales_api/Processors/parser_dft.py +518 -0
- d3tales_api-0.2.0/d3tales_api/Processors/parser_echem.py +495 -0
- d3tales_api-0.2.0/d3tales_api/Processors/parser_ir.py +2 -0
- d3tales_api-0.2.0/d3tales_api/Processors/parser_nlp.py +281 -0
- d3tales_api-0.2.0/d3tales_api/Processors/parser_uvvis.py +110 -0
- d3tales_api-0.2.0/d3tales_api/Processors/processing_firetasks.py +339 -0
- d3tales_api-0.2.0/d3tales_api/Processors/utils.py +66 -0
- d3tales_api-0.2.0/d3tales_api/Workflows/D3TaLES_FW.py +81 -0
- d3tales_api-0.2.0/d3tales_api/Workflows/Gaussian.py +485 -0
- d3tales_api-0.2.0/d3tales_api/Workflows/Gromacs.py +0 -0
- d3tales_api-0.2.0/d3tales_api/Workflows/Initialize.py +90 -0
- d3tales_api-0.2.0/d3tales_api/Workflows/ParamSet.py +55 -0
- d3tales_api-0.2.0/d3tales_api/Workflows/__init__.py +0 -0
- d3tales_api-0.2.0/d3tales_api/Workflows/utils.py +375 -0
- d3tales_api-0.2.0/d3tales_api/Workflows/wf_writer.py +344 -0
- d3tales_api-0.2.0/d3tales_api/Workflows/wtuning.py +404 -0
- d3tales_api-0.2.0/d3tales_api/__init__.py +10 -0
- d3tales_api-0.2.0/d3tales_api/database_info.py +79 -0
- d3tales_api-0.2.0/d3tales_api.egg-info/PKG-INFO +110 -0
- d3tales_api-0.2.0/d3tales_api.egg-info/SOURCES.txt +52 -0
- d3tales_api-0.2.0/d3tales_api.egg-info/dependency_links.txt +1 -0
- d3tales_api-0.2.0/d3tales_api.egg-info/requires.txt +31 -0
- d3tales_api-0.2.0/d3tales_api.egg-info/top_level.txt +1 -0
- d3tales_api-0.2.0/requirements.txt +32 -0
- d3tales_api-0.2.0/setup.cfg +4 -0
- d3tales_api-0.2.0/setup.py +33 -0
- d3tales_api-0.2.0/tests/test_back2front_cv.py +20 -0
- d3tales_api-0.2.0/tests/test_back2front_gaus.py +43 -0
- d3tales_api-0.2.0/tests/test_back2front_nlp.py +11 -0
- d3tales_api-0.2.0/tests/test_back_insert_cv.py +34 -0
- d3tales_api-0.2.0/tests/test_back_insert_gaus.py +28 -0
- d3tales_api-0.2.0/tests/test_back_insert_nlp.py +31 -0
- d3tales_api-0.2.0/tests/test_expflow_processing.py +10 -0
- d3tales_api-0.2.0/tests/test_front_insert.py +25 -0
- d3tales_api-0.2.0/tests/test_insert_parameters.py +47 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Risko Research Group
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: d3tales_api
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: API for parsing, database connection, and property calculations for D3taLES project
|
|
5
|
+
Home-page: https://github.com/D3TaLES/d3tales_api
|
|
6
|
+
Author: Rebekah Duke
|
|
7
|
+
Author-email: d3tales@gmail.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Bug Tracker, https://github.com/D3TaLES/d3tales_api/issues
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: articledownloader>=9.1.1
|
|
13
|
+
Requires-Dist: atomate>=1.0.3
|
|
14
|
+
Requires-Dist: autologging>=1.3.2
|
|
15
|
+
Requires-Dist: cclib>=1.7.2
|
|
16
|
+
Requires-Dist: dbstep>=1.0.0
|
|
17
|
+
Requires-Dist: Django>=2.2.28
|
|
18
|
+
Requires-Dist: dotty_dict>=1.3.1
|
|
19
|
+
Requires-Dist: elsapy>=0.5.1
|
|
20
|
+
Requires-Dist: FireWorks>=2.0.3
|
|
21
|
+
Requires-Dist: inflection>=0.5.1
|
|
22
|
+
Requires-Dist: interruptingcow>=0.8
|
|
23
|
+
Requires-Dist: jsonschema>=3.2.0
|
|
24
|
+
Requires-Dist: matplotlib>=3.1.3
|
|
25
|
+
Requires-Dist: monty>=2022.9.9
|
|
26
|
+
Requires-Dist: nanoid>=2.0.0
|
|
27
|
+
Requires-Dist: numpy>=1.23.5
|
|
28
|
+
Requires-Dist: pandas>=1.5.1
|
|
29
|
+
Requires-Dist: paramiko>=3.0.0
|
|
30
|
+
Requires-Dist: Pillow>=9.3.0
|
|
31
|
+
Requires-Dist: Pint>=0.20.1
|
|
32
|
+
Requires-Dist: PubChemPy>=1.0.4
|
|
33
|
+
Requires-Dist: pymongo>=3.12.3
|
|
34
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
35
|
+
Requires-Dist: python_jsonschema_objects>=0.4.1
|
|
36
|
+
Requires-Dist: rdkit>=2022.9.1
|
|
37
|
+
Requires-Dist: requests>=2.28.1
|
|
38
|
+
Requires-Dist: scipy>=1.8.0
|
|
39
|
+
Requires-Dist: seaborn>=0.12.1
|
|
40
|
+
Requires-Dist: selfies>=2.1.1
|
|
41
|
+
Requires-Dist: setuptools>=60.2.0
|
|
42
|
+
Requires-Dist: tqdm>=4.64.1
|
|
43
|
+
Dynamic: author
|
|
44
|
+
Dynamic: author-email
|
|
45
|
+
Dynamic: description
|
|
46
|
+
Dynamic: description-content-type
|
|
47
|
+
Dynamic: home-page
|
|
48
|
+
Dynamic: license
|
|
49
|
+
Dynamic: license-file
|
|
50
|
+
Dynamic: project-url
|
|
51
|
+
Dynamic: requires-dist
|
|
52
|
+
Dynamic: summary
|
|
53
|
+
|
|
54
|
+
# D<sup>3</sup>TaLES API
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
API designed for the [D<sup>3</sup>TaLES project](https://d3tales.as.uky.edu/). Includes
|
|
59
|
+
data processing, database access functions, and property calculators.
|
|
60
|
+
|
|
61
|
+
## [Website with full documentation for the D<sup>3</sup>TaLES API can be found here](https://d3tales.github.io/d3tales_api/).
|
|
62
|
+
|
|
63
|
+
## Modules
|
|
64
|
+
This API contains three modules:
|
|
65
|
+
* `D3database`: Interface for interacting with the D<sup>3</sup>TaLES databases. Includes
|
|
66
|
+
queries, data insertion with validation, and a REST API interface.
|
|
67
|
+
* `Processors`: Processing code for extracting data from computational and experimental
|
|
68
|
+
data files as well as [ExpFlow](https://d3tales.as.uky.edu/expflow) run objects.
|
|
69
|
+
* `Calculators`: Property calculators and plotters for cyclic voltammetry
|
|
70
|
+
* `Workflows`: Fireworks workflow for the D<sup>3</sup>TaLES databases high throughput workflows
|
|
71
|
+
|
|
72
|
+
## Installation
|
|
73
|
+
|
|
74
|
+
### PIP Install
|
|
75
|
+
This module can be installed with pip install by running the following code:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
pip install git+https://github.com/d3tales/d3tales_api.git
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
>**Installation Notes**:
|
|
82
|
+
> * If your python version is greater than 3.8, then you will need to install
|
|
83
|
+
>[pymatgen](https://pymatgen.org/) directly into the environment you are working in. It is best to use
|
|
84
|
+
>[conda](https://anaconda.org/conda-forge/pymatgen) for this.
|
|
85
|
+
> * If you plan to use any NLP parsers, you will need to install [ChemDataExtractor2](https://github.com/CambridgeMolecularEngineering/chemdataextractor2)
|
|
86
|
+
> with `pip install ChemDataExtractor2`. Dependency conflicts make it necessary to install separately.
|
|
87
|
+
|
|
88
|
+
### Environment Variables
|
|
89
|
+
Note that many operation require a `DB_INFO_FILE` environment variable. This environment variable
|
|
90
|
+
should be a path to a JSON file containing connection information for the databases. The keys should
|
|
91
|
+
be the database names such as `frontend`, `backend`, `expflow`, and `fireworks`. An example
|
|
92
|
+
can be found at [db_info_ex.json](db_info_ex.json).
|
|
93
|
+
|
|
94
|
+
To set this variable run:
|
|
95
|
+
```bash
|
|
96
|
+
export DB_INFO_FILE=$PWD/db_infos_ex.json
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
You can also set a `GROUP_FILE` environment variable. This should point to a json
|
|
100
|
+
file containing source_group tag names. This is **optional**.
|
|
101
|
+
|
|
102
|
+
To set this variable run:
|
|
103
|
+
```bash
|
|
104
|
+
export GROUP_FILE=$PWD/group_file_ex.json
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
REST API (`d3tales_api.restapi.RESTAPI`) will use `UPLOAD_USER` and `UPLOAD_PASS` environment
|
|
108
|
+
variables if `username` and `password` arguments are not provided. These environment variables
|
|
109
|
+
can be set in the same was as the `DB_INFO_FILE` variable.
|
|
110
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# D<sup>3</sup>TaLES API
|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
API designed for the [D<sup>3</sup>TaLES project](https://d3tales.as.uky.edu/). Includes
|
|
6
|
+
data processing, database access functions, and property calculators.
|
|
7
|
+
|
|
8
|
+
## [Website with full documentation for the D<sup>3</sup>TaLES API can be found here](https://d3tales.github.io/d3tales_api/).
|
|
9
|
+
|
|
10
|
+
## Modules
|
|
11
|
+
This API contains three modules:
|
|
12
|
+
* `D3database`: Interface for interacting with the D<sup>3</sup>TaLES databases. Includes
|
|
13
|
+
queries, data insertion with validation, and a REST API interface.
|
|
14
|
+
* `Processors`: Processing code for extracting data from computational and experimental
|
|
15
|
+
data files as well as [ExpFlow](https://d3tales.as.uky.edu/expflow) run objects.
|
|
16
|
+
* `Calculators`: Property calculators and plotters for cyclic voltammetry
|
|
17
|
+
* `Workflows`: Fireworks workflow for the D<sup>3</sup>TaLES databases high throughput workflows
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
### PIP Install
|
|
22
|
+
This module can be installed with pip install by running the following code:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install git+https://github.com/d3tales/d3tales_api.git
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
>**Installation Notes**:
|
|
29
|
+
> * If your python version is greater than 3.8, then you will need to install
|
|
30
|
+
>[pymatgen](https://pymatgen.org/) directly into the environment you are working in. It is best to use
|
|
31
|
+
>[conda](https://anaconda.org/conda-forge/pymatgen) for this.
|
|
32
|
+
> * If you plan to use any NLP parsers, you will need to install [ChemDataExtractor2](https://github.com/CambridgeMolecularEngineering/chemdataextractor2)
|
|
33
|
+
> with `pip install ChemDataExtractor2`. Dependency conflicts make it necessary to install separately.
|
|
34
|
+
|
|
35
|
+
### Environment Variables
|
|
36
|
+
Note that many operation require a `DB_INFO_FILE` environment variable. This environment variable
|
|
37
|
+
should be a path to a JSON file containing connection information for the databases. The keys should
|
|
38
|
+
be the database names such as `frontend`, `backend`, `expflow`, and `fireworks`. An example
|
|
39
|
+
can be found at [db_info_ex.json](db_info_ex.json).
|
|
40
|
+
|
|
41
|
+
To set this variable run:
|
|
42
|
+
```bash
|
|
43
|
+
export DB_INFO_FILE=$PWD/db_infos_ex.json
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You can also set a `GROUP_FILE` environment variable. This should point to a json
|
|
47
|
+
file containing source_group tag names. This is **optional**.
|
|
48
|
+
|
|
49
|
+
To set this variable run:
|
|
50
|
+
```bash
|
|
51
|
+
export GROUP_FILE=$PWD/group_file_ex.json
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
REST API (`d3tales_api.restapi.RESTAPI`) will use `UPLOAD_USER` and `UPLOAD_PASS` environment
|
|
55
|
+
variables if `username` and `password` arguments are not provided. These environment variables
|
|
56
|
+
can be set in the same was as the `DB_INFO_FILE` variable.
|
|
57
|
+
|
|
File without changes
|