Home > python > mocka

mocka

The goal of mocka is to make it easy to “mock an API”. If you want to serve some text, json, or echo a request: mocka enables quick testing.

  • Hackathon: give your buddy an endpoint with a statically served JSON.
  • Server-to-server: viewing how a request looks like.
  • Send your custom response: use pdb to drop in a request and return a response manually.

Features

  • Easy to use, just a command line required 😉
  • Asynchronous.
  • Serve different types of data.
  • Automatically supports GET/POST/HEAD/OPTIONS.
  • Pipe data to mocka to serve it: cat some.json | mocka

https://github.com/kootenpv/mocka

Source:
http://www.pycoders.com

Advertisements
Categories: python
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: