
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Mockpy is a python open source line utility to quickly create mock servers on Mac OS X.
Mockpy is a python open source line utility to quickly create mock servers on Mac OS X. Mockpy is inspired by wiremock and uses libmproxy for the proxy functionality.
mockpy works by reading a list of configuration files in the YAML format, it uses these configurations to match the http request received and return an http response based on the matched YAML file configuration.
Mockpy can be installed as a python wheel using pip
or as a standalone binary using homebrew
Make sure you have pip installed.
Run the following to install mockpy
pip install mockpy
Install using brew tap
brew tap oarrabi/tap
brew install mockpy
Bellow is a description of the basic operations that mockpy
provides, for a more complete understanding please refer to the wikis.
Initialize a the current folder by running:
mockpy init
This will create two folders:
inout
: this folder will contains a list of mapping YAML files, each YAML file represents an request and response operation.
res
: resource folder contains the static HTML, JSON, Images and static files returned as part of the mocking process.
To understand the YAML file format, please refer to the documentation.
The mock server can be started as a standalone web server, or as a proxy server.
Use mockpy start
to start the standalone web server, this will setup a server on the default port. Visit 127.0.0.1:9090
to check the mock server.
To start mockpy in proxy server mode use mockpy start -x
. This command does the following:
FAQs
Mockpy is a python open source line utility to quickly create mock servers on Mac OS X.
We found that mockpy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.