core_explore_periodic_table_app
core_explore_periodic_table_app is a Django app.
Quick start
1. Add “core_explore_periodic_table_app” to your INSTALLED_APPS setting
INSTALLED_APPS = [
...
'core_explore_periodic_table_app',
]
2. Include the core_explore_periodic_table_app URLconf in your project urls.py
re_path(r'^explore/periodic_table/', include("core_explore_periodic_table_app.urls")),
3. Configure the Search Operators
Configure the Search by periodic table app by adding search operators pointing to chemical elements in the CDCS data. Start by adding a search operator:
import requests
payload = {
"name": "chemical",
"xpath_list": [
"/experiment/experimentType/tracerDiffusivity/diffusingSpecies/element",
"/experiment/experimentType/tracerDiffusivity/material/Composition/constituents/constituent/element"
]
}
requests.post(
SERVER_URI + "/explore/keyword/rest/search_operators/", data=payload, auth=(USER, PASSWORD)
)
Then, tell the periodic table app to use one or many search operators by adding mappings:
import requests
payload = {
"search_operator": "5f49048f3b3689f92cb84f41"
}
requests.post(
SERVER_URI + "/explore/periodic_table/rest/search_operators_mapping/", data=payload, auth=(USER, PASSWORD)
)
Metadata
Release files for core-explore-periodic-table-app 2.23.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| core_explore_periodic_table_app-2.23.0.tar.gz | 32.0 kB | Details |
Release files / core_explore_periodic_table_app-2.23.0.tar.gz
| Download URL | core_explore_periodic_table_app-2.23.0.tar.gz |
|---|---|
| Size | 32.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53a3235b4216411c97e63ff6c7df2a907ca4673520b589c4d286ffa46ee53347
|
|
BLAKE2b-256 checksum How to use checksums |
c25ccbca9245898a146bde8a5176c0a6203afc9ea564bfa0591964ce0b8ec8e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|