Metadata-Version: 2.1
Name: deciphon-api
Version: 0.2.2
Summary: RESTful API for Deciphon scheduler
Home-page: https://github.com/EBI-Metagenomics/deciphon-api
License: MIT
Keywords: deciphon,api
Author: Danilo Horta
Author-email: danilo.horta@pm.me
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: bcbio-gff
Requires-Dist: biopython
Requires-Dist: build
Requires-Dist: cffi
Requires-Dist: fastapi
Requires-Dist: loguru
Requires-Dist: pooch
Requires-Dist: pydantic[dotenv]
Requires-Dist: python-multipart
Requires-Dist: toml (>=0.9,<0.10)
Requires-Dist: uvicorn
Requires-Dist: xxhash
Project-URL: Repository, https://github.com/EBI-Metagenomics/deciphon-api
Description-Content-Type: text/markdown

# deciphon-api

## Install

```bash
pip install deciphon-api
```

## Production

```bash
uvicorn deciphon_api.main:app.api --host 127.0.0.1 --port 8000
```

## Development

Make sure you have [Poetry](https://python-poetry.org/docs/).

Enter

```bash
poetry install
poetry shell
```

to setup and activate a Python environment associated with the project.
Then enter

```bash
uvicorn deciphon_api.main:app.api --reload
```

to start the API.

Tests can be performed by entering

```bash
pytest
```

while the corresponding Python environment created by Poetry is active.

## Settings

Copy the file [.env.example](.env.example) to your working directory and rename it to `.env`.
Edit it accordingly.
The rest of the configuration can be tuned by `uvicorn` options.

