Start a local mock API from a cURL command in one line. No config files, no Postman export — paste the curl, get a server.
pip install git+https://github.com/etailup/curlmock.gitOr locally:
git clone https://github.com/etailup/curlmock.git
cd curlmock
pip install -e .# Mock a GET endpoint with a default JSON response
curlmock 'curl https://api.example.com/users'
# Return a custom response file
curlmock 'curl -X POST https://api.example.com/users' -r response.json
# Echo mode — see exactly what your client sends
curlmock 'curl -X POST https://api.example.com/users' --echoThen point your app at http://127.0.0.1:8787:
curl http://127.0.0.1:8787/usersTerminal 1
curlmock 'curl https://api.example.com/v1/status' -r examples/status.json --port 8787Terminal 2
curl http://127.0.0.1:8787/v1/statusresponse.json
{
"status": "ok",
"version": "1.0.0"
}Frontend and integration work often starts before the backend exists. curlmock turns any cURL into a working local endpoint so you can unblock development immediately.
MIT