Python client for the local QSAR Toolbox Web API
Project description
PyQSARToolbox
A Python interface to the OECD QSAR Toolbox. It only works on Windows since it is the only operating system for which QSAR Toolbox is released.
Installation
Install it with pip:
pip install git+https://github.com/USEtox/PyQSARToolbox.git
For developers, you can clone the repository, and run
pip install -e .
The main dependency is the requests package. Other dependencies (now and in the future) are the usual scientific Python packages, e.g. numpy, pandas, etc.
The QSAR Toolbox can be downloaded for free. I recommend installing VEGA and OPERA add-ons, which can be downloaded via the toolbox. They will need a working Java installation. I have Java on my system and everything worked out of the box. If you encounter any problems, contact me.
Calling QSAR Toolbox from Python
The class QSARToolbox provides an interface to the web API of the QSAR Toolbox. It can be used locally by running the QSAR Toolbox WebSuite program that is installed with the QSAR Toolbox. After running it, the user can connect to a local host at http://127.0.0.1:[port] where the port can be a different value given by the program in the following message:
WebAPI running on port [port]
where [port] is a 4 or 5 digit integer (may be different on your system).
Using the API is quite straightforward with some practical issues that I have discovered and try to clarify in this notebook.
Getting started
Start the QSAR Toolbox WebSuite and wait for the port number to appear. Then load the class QSARTooolbox and create a QSARToolbox object:
from pyqsartoolbox import QSARTooolbox
qs = QSARToolbox(port=51946)
api_version = qs.webapi_version()
toolbox_version = qs.toolbox_version()
print(f"API version: {api_version}")
print(f"Toolbox version: {toolbox_version}")
Documents
API documents are here. You can also look at the notebooks folder to find notebooks with extensive examples of the usage of this package for real world problems.
Citations
Please cite it as
Eftekhari, Ali A., PyQSARToolbox: a Python interface to the OECD QSAR Toolbox, https://usetox.github.io/PyQSARToolbox/, 2025
Endpoints
You can obtain experimental data and estimations for many physicochemical properties, environmental health, fate, and transport, and ecotoxicological information, as depicted in the following graph:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 pyqsartoolbox-0.1.0.tar.gz.
File metadata
- Download URL: pyqsartoolbox-0.1.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03b3fff178b028e255a30c2c5e3afb8ec255e07cd4d7c5a971fc69415fbccd5e
|
|
| MD5 |
4ad40f5e8bfe77e80a690774a873287b
|
|
| BLAKE2b-256 |
062d538b380ae9e4a1fec4aac27c54030770cf1a16a6240aee6390a843a697a8
|
File details
Details for the file pyqsartoolbox-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyqsartoolbox-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
961030bc17242afe529e151f82668473bf044f1eb1e6d23153a3059c4c461ce7
|
|
| MD5 |
ce54265d564cb527b632c8a3c83ed70e
|
|
| BLAKE2b-256 |
a3811122920904faf9d9fe246f20b56970be83cd2b4600d9afd62bfe9dd32224
|