Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mockry

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mockry

mockry - A rich mock server you have searched for

  • 0.0.3
  • PyPI
  • Socket score

Maintainers
1

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:

OptionDescriptionDefault
--host=<host>Host to bind the server127.0.0.1
--port=<port>Port to bind the server7777
--json=<path_to_json>Path to application json fileapplication.json
--debug=<mode>Debug mode (if true the changes in application json file would be automatically applied)true
--helpShow all available options

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc