Python client for the onepot API
Project description
onepot-python
Python client for the onepot API.
Installation
uv add onepot
# or
pip install onepot
Usage
from onepot import Client
client = Client(api_key="your-api-key")
response = client.search(
smiles_list=["Cc1c(C(=O)Nc2ccc(N3CC(C)OC(C)C3)nc2)cccc1-c1ccc(OC(F)(F)F)cc1", ...],
max_results=10,
include_chemistry_risk_score=True,
)
Pricing
Credits are charged per SMILES in the query:
| Option | Credits per SMILES |
|---|---|
| Base search | 1 |
include_chemistry_risk=True |
5 |
include_chemistry_risk_score=True |
10 |
Response Format
{
"queries": [
{
"query_smiles": "Cc1c(C(=O)Nc2ccc(N3CC(C)OC(C)C3)nc2)cccc1-c1ccc(OC(F)(F)F)cc1",
"query_inchikey": "VZZJRYRQSPEMTK-CALCHBBNSA-N",
"results": [
{
"chemistry_risk": "medium", # if include_chemistry_risk=True
"chemistry_risk_score": 0.5, # if include_chemistry_risk_score=True
"inchikey": "VZZJRYRQSPEMTK-UHFFFAOYSA-N",
"price_usd": 590,
"similarity": 1.0,
"smiles": "Cc1c(C(=O)Nc2ccc(N3CC(C)OC(C)C3)nc2)cccc1-c1ccc(OC(F)(F)F)cc1",
"supplier_risk": "high",
},
...
]
},
...
],
"credits_used": 10,
"credits_remaining": 990
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onepot-0.1.2.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onepot-0.1.2.tar.gz.
File metadata
- Download URL: onepot-0.1.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e37bf76826dfcd75fe6bd184360b7432707a086483f051ac41f303e12ac7fb9a
|
|
| MD5 |
e3612714f9a41f2efb1336e84d6b1f35
|
|
| BLAKE2b-256 |
2776493ec017c2d284bbe01aabd4b4c1afd1489fc1d4e023e06726fc7a9b6c39
|
File details
Details for the file onepot-0.1.2-py3-none-any.whl.
File metadata
- Download URL: onepot-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc73ebf51b1e5bfdc4b0720bef35538316aa8b14a6d1ad9208b57c6fedb2eba1
|
|
| MD5 |
2f1f72b5325b50367ba081ddb2e5363f
|
|
| BLAKE2b-256 |
677b029b10d92bdc6b37f3efd181965b1925d489735b2fa4ec1635e22ba278e5
|