Skip to main content

mockry - A rich mock server you have searched for

Project description

mockry

A simple but rich mock HTTP server you have searched for.

  • Easy to start. Get the docker package and start hacking in a minutes.
  • Easy to use. Create a simple JSON with your mock data and pass it as param to mockry.
  • Rich. Parse input CSV, convert it to JSON, send it at some URL and return the combined result? It's just a small things mockry can do for you. No programming required.

Installation

Docker

mockery should be used as a standalone application inside a Docker container.

Pull the official image from Docker Hub:

$ docker pull glibin/mockry:latest
$ docker run -p 7777:7777 -it glibin/mockry

To use your custom schema create and edit application.json file and link containing directory to your container:

$ docker run -p 7777:7777 -v /path/to/application/json/dir:/data -it glibin/mockry

Or you can build your own image:

$ docker build -t mockry .
$ docker run -p 7777:7777 -it mockry

From the source

Python 3.7+ is required to run mockry. You can install it from python.org or with your OS package manager.

$ python3.7 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ python -m mockry

Possible options:

Option Description Default
--host=<host> Host to bind the server 127.0.0.1
--port=<port> Port to bind the server 7777
--json=<path_to_json> Path to application json file application.json
--debug=<mode> Debug mode (if true the changes in application json file would be automatically applied) true
--help Show all available options

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

mockry-0.0.3.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file mockry-0.0.3.tar.gz.

File metadata

  • Download URL: mockry-0.0.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for mockry-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0efa506ce8a8ee90c362691064d0dc623667e9a255c4de16efa6561984814702
MD5 7c568544a9bbfa2b3b358d1db7b3a436
BLAKE2b-256 687722088b8872ca6d35090e27b8a09bcc9aacdfbc6b75629878c4524942302e

See more details on using hashes here.

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