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.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

too_simple_server-0.2.5-py3-none-any.whl (6.6 kB view hashes)

Uploaded py3

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