git clone https://github.com/the-ahuja-lab/SynGlue.git
SynGlue API Client
SynGlue is a minimal Python client for the SynGlue web API at https://synglue.ahujalab.iiitd.edu.in/. It allows you to submit design and screen jobs, check job status, and download results programmatically.
Installation
Install the package and its only dependency:
pip install synglue requests
Usage Example
from synglue import SynGlue
# Initialize the client
client = SynGlue()
# Submit a design job
design_result = client.submit_design(target="EGFR", threshold=80)
print("Design job response:", design_result)
# Check design job status
design_status = client.design_status(job_id=design_result["job_id"])
print("Design job status:", design_status)
# Download design results (when job is complete)
# client.download_design(job_id=design_result["job_id"], out_path="design_results.zip")
# --- SCREENING EXAMPLE ---
# Submit a screen job with a list of molecules
molecules = [
{"name": "Aspirin", "smiles": "CC(=O)Oc1ccccc1C(=O)O"},
{"name": "Imatinib", "smiles": "CC1=CC=CC=C1"}
]
screen_result = client.submit_screen(molecules=molecules)
print("Screen job response:", screen_result)
# Check screen job status
screen_status = client.screen_status(job_id=screen_result["job_id"])
print("Screen job status:", screen_status)
# Download screen results (when job is complete)
# client.download_screen(job_id=screen_result["job_id"], out_path="screen_results.csv")
Methods
submit_design(target, threshold=75.0)design_status(job_id)download_design(job_id, out_path)submit_screen(molecules)submit_screen_csv(csv_path)screen_status(job_id)download_screen(job_id, out_path)health_check()
See the source code for full method documentation.
Prerequisites
- Python 3.7 or higher
- requests (for API calls)
License
SynGlue is licensed under the MIT License. See LICENSE for more details.
Dependencies
Prerequisites
- Python 3.7 or higher
- requests (for API calls)
Install the required package:
pip install requests
No other dependencies are required for the SynGlue API client.
License
SynGlue is licensed under the MIT License. See LICENSE for more details.
Metadata
Release files for synglue 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| synglue-0.1.4.tar.gz | 3.9 kB | Without provenance | Details for synglue-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| synglue-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for synglue-0.1.4-py3-none-any.whl |
Total release size: 8.4 kB
Release files / synglue-0.1.4.tar.gz
| Download URL | synglue-0.1.4.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
536bf68572bbbbe06ba1a2244ad114490fb6ccb23a1f0077264124e1da2bd0f1
|
|
BLAKE2b-256 checksum How to use checksums |
be3490750c0e3125f973db5c26d7dee217067dfb7c8ec7438c5c7219b7cd076f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.20
|
Release files / synglue-0.1.4-py3-none-any.whl
| Download URL | synglue-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0795d63d3166a59777a9780f21381f95a1a07b93c74ce4ec986c841246bd08e1
|
|
BLAKE2b-256 checksum How to use checksums |
2f514b47e9de46bdf6fd95e1c997c7d616cd3ba64256cf3c25b1079ab8e71c80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.20
|
Security for synglue 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.