Home > python > 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.


  • 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



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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: