API Reference - API Client
pyepisuite.api_client
EpiSuiteAPIClient
Source code in src/pyepisuite/api_client.py
search(query_term, time_out=10)
Search the EPISuite API with a query term (SMILES, CAS, or chemical name).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query_term
|
str
|
The term to search for. |
required |
time_out
|
int
|
The time out for the request. |
10
|
Returns:
Type | Description |
---|---|
List[Chemical]: A list of Chemical instances. |
Source code in src/pyepisuite/api_client.py
submit(cas='', smiles='')
Submit a CAS number or SMILES string to the EPISuite API.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cas
|
str
|
The CAS number of the chemical. |
''
|
smiles
|
str
|
The SMILES string of the chemical. |
''
|
Returns:
Name | Type | Description |
---|---|---|
dict |
The JSON response from the API. |
Raises:
Type | Description |
---|---|
ValueError
|
If neither 'cas' nor 'smiles' is provided. |