Skip to main content

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

Metadata

Release files for mockry 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mockry 0.0.3
File Size Uploaded Provenance Actions
mockry-0.0.3.tar.gz 6.1 kB Without provenance Details for mockry-0.0.3.tar.gz

Release files / mockry-0.0.3.tar.gz

Download URL mockry-0.0.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0efa506ce8a8ee90c362691064d0dc623667e9a255c4de16efa6561984814702
BLAKE2b-256 checksum
How to use checksums
687722088b8872ca6d35090e27b8a09bcc9aacdfbc6b75629878c4524942302e
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for mockry 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page