Metadata-Version: 2.1
Name: too-simple-server
Version: 0.1.0
Summary: Simple web server stub for testing purposes (with a lot of dependencies)
License: Apache-2.0
Author: Anton Kachurin
Author-email: anton.kachurin@t-systems.com
Requires-Python: >=3.6.1,<4.0.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Requires-Dist: flask (>=1.1,<2.0)
Requires-Dist: flask-restful (>=0.3.7,<0.4.0)
Requires-Dist: lockfile (>=0.12.2,<0.13.0)
Requires-Dist: peewee (>=3.9,<4.0)
Requires-Dist: psycopg2 (>=2.8,<3.0)
Requires-Dist: python-daemon (>=2.2,<3.0)
Requires-Dist: requests (>=2.22,<3.0)
Requires-Dist: wsgiserver (>=1.3,<2.0)
Description-Content-Type: text/markdown

### Simple Mock Server

[![Build Status](https://travis-ci.com/outcatcher/Simple-Mock-Webserver.svg?branch=master)](https://travis-ci.com/outcatcher/Simple-Mock-Webserver)

This is single-purpose web server having 2 endpoints:

`/entities` — for listing all existing entities

`/entity`, `/entity/<uuid>` — for creating and retrieving existing entities

Server can use either `DEBUG` sqlite DB or postgresql database configured via environment variables:
 * `PG_DB_URL`
 * `PG_DATABASE`
 * `PG_USERNAME`
 * `PG_PASSWORD`

Debug mode is switched using `DEBUG` env variable and enabled by default

