Skip to main content

R2DT API Client

Project description

R2DT API Client

PyPI [Status][status] Static Badge

[License][license]

[pre-commit][pre-commit] [Black][black]

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 [MIT license][license], 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.9.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

r2dt_client-0.1.9-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file r2dt_client-0.1.9.tar.gz.

File metadata

  • Download URL: r2dt_client-0.1.9.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for r2dt_client-0.1.9.tar.gz
Algorithm Hash digest
SHA256 0f7d04609801139e02245608a323b052e2475279f5a1b8440091bde76ccfd0dd
MD5 cc210506f7cb510eb046ca528f8f63a4
BLAKE2b-256 9900880f0f505af3f21740425dfe7c63546f15d436801bc4ba3c157c8f65c16e

See more details on using hashes here.

File details

Details for the file r2dt_client-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: r2dt_client-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for r2dt_client-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e82d0d6f63daa77ae7dbe35063984c2d3184bd1ad53930e258b9043b765ee3b7
MD5 dd0a6c7eb0f08b2ba3c163436280558a
BLAKE2b-256 b8a19d520b5167ba0b387dd4e5f22111eb02fee3ef1b5af8c97dbca42858a83b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page