Skip to main content

R2DT API Client

Project description

R2DT API Client

PyPI Status Static Badge

GitHub License pre-commit 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 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.11.tar.gz (9.3 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.11-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: r2dt_client-0.1.11.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for r2dt_client-0.1.11.tar.gz
Algorithm Hash digest
SHA256 c06a7684e25feda6abff0fa27e1343ec2e9820e401136a26db2624cc72799da8
MD5 b444c0d273139e93d5a1ecba55efdde6
BLAKE2b-256 607dc32fe02244a135fb05312c10027a4f21179481ef1e36c1712221d81c2725

See more details on using hashes here.

Provenance

The following attestation bundles were made for r2dt_client-0.1.11.tar.gz:

Publisher: release.yml on r2dt-bio/r2dt-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: r2dt_client-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for r2dt_client-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 caf74dc8fc909a8b3394925f0ee586cd55450d2328b43013197ffeeaefc98e4b
MD5 a6a8f7a7ef255081566ed2c3e21d0aad
BLAKE2b-256 e7d105458cb93aabc21de00403537fe676a4361f3fc891cf2b6070a70af1ddd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for r2dt_client-0.1.11-py3-none-any.whl:

Publisher: release.yml on r2dt-bio/r2dt-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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