R2DT API Client
Project description
R2DT API Client
Features
- Access to the R2DT API via Python
- Display R2DT widget in Jupyter Notebook
Requirements
- Python 3.9+
- pdm 2.0.0+
Installation
You can install R2DT API Client via [pip] from [PyPI]:
$ pip install r2dt-client
Usage
Example usage in the code:
from time import sleep
from r2dt_client import setup, submit, update_status_for, fetch_results_for
setup(email="YOUR_EMAIL")
job = submit(
">S box leader))\nCTCTTATCGAGAGTTGGGCGAGGGATTTGGCCTTTTGACCCCAAAAGCAACCGACCGTAATTCCATTGTGAAATGGGGCGCATTTTTTTCGCGCCGAGACGCTGGTCTCTTAAGGCACGGTGCTAATTCCATTCAGATCTGATCTGAGAGATAAGAG")
while not job.done:
update_status_for(job)
sleep(5)
fetch_results_for(job)
print(job.results['fasta'])
Using the widget via Jupyter Notebook:
!pip install r2dt_client
from r2dt_client import setup, draw
setup(email="YOUR_EMAIL")
draw(
">S box leader))\nCTCTTATCGAGAGTTGGGCGAGGGATTTGGCCTTTTGACCCCAAAAGCAACCGACCGTAATTCCATTGTGAAATGGGGCGCATTTTTTTCGCGCCGAGACGCTGGTCTCTTAAGGCACGGTGCTAATTCCATTCAGATCTGATCTGAGAGATAAGAG")
License
Distributed under the terms of the Apache 2.0, R2DT API Client is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
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
r2dt_client-0.1.10.tar.gz
(9.3 kB
view details)
Built Distribution
File details
Details for the file r2dt_client-0.1.10.tar.gz
.
File metadata
- Download URL: r2dt_client-0.1.10.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d35da6a2bea338ebb5b6648c99bfcdf8add36b3c5bcc69dc75661c419bfaeb2f |
|
MD5 | 94ff74c4a44e8198b832ca6fd47afe9f |
|
BLAKE2b-256 | 6dfedc2763cc16d66bcabac8718f61ceba49930a805d4184ee80825788f2f4b7 |
File details
Details for the file r2dt_client-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: r2dt_client-0.1.10-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e23dc3d3ed87e16d4539afc0de5d2ce2c51d7b415eb2951996d4e833e6a3b7d |
|
MD5 | 6b404b906385975baa9e4c01c1b32b0d |
|
BLAKE2b-256 | 544b37a5e44979e16ddb91ef318defcd0b978a43dd10b16268e23569e9803ea4 |