All Downloads are FREE. Search and download functionalities are using the official Maven repository.

python-fastapi.README.mustache Maven / Gradle / Ivy

There is a newer version: 6.2.1.2
Show newest version
# OpenAPI generated FastAPI server

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: {{appVersion}}
{{^hideGenerationTimestamp}}
- Build date: {{generatedDate}}
{{/hideGenerationTimestamp}}
- Build package: {{generatorClass}}

## Requirements.

Python >= 3.7

## Installation & Usage

To run the server, please execute the following from the root directory:

```bash
pip3 install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port {{serverPort}}
```

and open your browser at `http://localhost:{{serverPort}}/docs/` to see the docs.

## Running with Docker

To run the server on a Docker container, please execute the following from the root directory:

```bash
docker-compose up --build
```

## Tests

To run the tests:

```bash
pip3 install pytest
PYTHONPATH=src pytest tests
```




© 2015 - 2024 Weber Informatics LLC | Privacy Policy