Skip to main content

Lightweight tool designed to simulate web API endpoints.

Project description

Mockerinho

Build GitLicense

Mockerinho banner

A tool designed to simulate HTTP-based APIs for development and testing purposes.

Installation

You can install this package using pip

pip install mockerinho

Usage

Run the utility and specify simulations configurations directory (host and port are optional)

mockerinho -H 127.0.0.1 \
           -p 3000 \
           -D data/examples/simulations

Send request to the simulator

curl -i \
     -X POST http://127.0.0.1:3000/users \
     -H 'Content-Type: application/json' \
     -d '{"name": "Alex"}'

Get response from the simulator

HTTP/1.1 201 CREATED
Content-Type: application/json
Content-Length: 18
Connection: Keep-Alive

{ "name": "Alex" }

For more information about simulation configuration, see the simulation configuration reference.

Author

Mikhail Eremeev

License

MIT

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

mockerinho-0.2.1.tar.gz (8.4 kB view details)

Uploaded Source

File details

Details for the file mockerinho-0.2.1.tar.gz.

File metadata

  • Download URL: mockerinho-0.2.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.6

File hashes

Hashes for mockerinho-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6ca1bcfe57fa0f30d81686993d697a02ddf05e61c9abdedc9b9cfb41ce803366
MD5 79ab736032539ef9728af906322ae0b6
BLAKE2b-256 217d99a7e74d645324be0ad8d3f420a84f4199f712082bd15a4c3aad0e8f7efd

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