Metadata-Version: 2.1
Name: r2dt-client
Version: 0.1.8
Summary: R2DT API Client
Home-page: https://github.com/anayden/r2dt-client
Author-Email: Alexey Naiden <r2dt@anaiden.ru>
License: MIT
Classifier: Development Status :: 4 - Beta
Project-URL: Changelog, https://github.com/anayden/r2dt-client/releases
Project-URL: Homepage, https://github.com/anayden/r2dt-client
Project-URL: Repository, https://github.com/anayden/r2dt-client
Requires-Python: <4.0,>=3.9
Requires-Dist: diskcache<6.0.0,>=5.6.3
Requires-Dist: httpx<1.0.0,>=0.26.0
Requires-Dist: yarl<2.0.0,>=1.9.4
Requires-Dist: ipython; extra == "widgets"
Requires-Dist: ipywidgets; extra == "widgets"
Provides-Extra: widgets
Description-Content-Type: text/markdown

# R2DT API Client

[![PyPI](https://img.shields.io/pypi/v/r2dt-client.svg)][pypi_]
[![Status](https://img.shields.io/pypi/status/r2dt-client.svg)][status]
[![Python Version](https://img.shields.io/pypi/pyversions/r2dt-client)][python version]
[![License](https://img.shields.io/pypi/l/r2dt-client)][license]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]

[pypi_]: https://pypi.org/project/r2dt-client/
[status]: https://pypi.org/project/r2dt-client/
[python version]: https://pypi.org/project/r2dt-client
[read the docs]: https://r2dt-client.readthedocs.io/
[tests]: https://github.com/anayden/r2dt-client/actions?workflow=Tests
[codecov]: https://app.codecov.io/gh/anayden/r2dt-client
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black

## Features

- TODO

## Requirements

- Python 3.9+
- [pdm] 2.0.0+

## Installation

You can install _R2DT API Client_ via [pip] from [PyPI]:

```console
$ pip install r2dt-client
```

## Usage

Example usage in the code:

```python
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:

```jupyter
!pip install r2dt_client[widget]

from r2dt_client import setup, draw

setup(email="YOUR_EMAIL")
draw(
    ">S box leader))\nCTCTTATCGAGAGTTGGGCGAGGGATTTGGCCTTTTGACCCCAAAAGCAACCGACCGTAATTCCATTGTGAAATGGGGCGCATTTTTTTCGCGCCGAGACGCTGGTCTCTTAAGGCACGGTGCTAATTCCATTCAGATCTGATCTGAGAGATAAGAG")
```

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## 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.