Skip to main content

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.

Project description

Simple Flask Stub Server

Test package with tox

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

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

Also, the samples directory 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.

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

The package can be installed by running:

pip install flask-stub-server

To upgrade the package, use:

pip install --upgrade flask-stub-server

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

flask-stub-server-0.1.5a1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

flask_stub_server-0.1.5a1-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page