Skip to main content

Simple web server stub for testing purposes (with a lot of dependencies)

Project description

Simple Mock Server

Build Status PyPI

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

Server configuration is done with configuration yaml file:

debug: true
server_port: 5449 

pg_bd_url: 'localhost:9999'
pg_database: 'users'
pg_username: 'admin'
pg_password: 'qwertyui!'

Default location of configuration file is /etc/too-simple/config.yml, this can be changed using --config argument

Debug mode is switched using --debug argument and enabled by default

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for too-simple-server, version 0.2.5
Filename, size File type Python version Upload date Hashes
Filename, size too_simple_server-0.2.5-py3-none-any.whl (6.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page