flask-stub-server-0.1.5a1
توضیحات
This package provides the user with an easy to use endpoint generator, which that exposes endpoints that are defined through a config JSON file. Additionally, data files can be added and linked to return richer data.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flask-stub-server-0.1.5a1 |
| نام | flask-stub-server |
| نسخه کتابخانه | 0.1.5a1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Daniel Heinze |
| ایمیل نویسنده | daniel.heinze@microsoft.com |
| آدرس صفحه اصلی | https://github.com/starlord-daniel/flask-stub-server |
| آدرس اینترنتی | https://pypi.org/project/flask-stub-server/ |
| مجوز | MIT |
# Simple Flask Stub Server
[](https://github.com/starlord-daniel/flask-stub-server/actions/workflows/ci-pr.yml)
Provides the user with a Docker container, that exposes endpoints, which can be configured via json file.
## Get Started with Flask
[Documentation on the Flask website](https://flask.palletsprojects.com/en/1.1.x/installation/)
## Configure your server
The file `endpoints.json` is used to configure the server endpoints.
To learn more about the format of the configuration file, please take a look at [Configuring the server endpoints](docs/configure-endpoints.md)
Also, the [samples directory](samples/README.md) shows examples on how to configure and quickly use your own endpoint server.
## Development
This project uses a virtual environment for development.
More information can be found on the [Flask installation website](https://flask.palletsprojects.com/en/1.1.x/installation/#virtual-environments).
## Testing
For testing, this project uses `tox`. The tox.ini configures 2 environments: lint and py39.
To only run linting, use: `tox -e lint`
To only run the tests with pytest, use: `tox -e py39`
## Package
View the package [flask-stub-server on pypi](https://pypi.org/project/flask-stub-server/)
The package can be installed by running:
```bash
pip install flask-stub-server
```
To upgrade the package, use:
```bash
pip install --upgrade flask-stub-server
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.1.2 | Flask |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl flask-stub-server-0.1.5a1:
pip install flask-stub-server-0.1.5a1.whl
نصب پکیج tar.gz flask-stub-server-0.1.5a1:
pip install flask-stub-server-0.1.5a1.tar.gz