{ "info": { "author": "Omar Abdelhafith", "author_email": "o.arrabi@me.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "# Mockpy\n\n[![Build Status](https://travis-ci.org/oarrabi/mockpy.svg?branch=master)](https://travis-ci.org/oarrabi/mockpy)\n\nMockpy is a python open source line utility to quickly create mock servers on Mac OS X.\nMockpy is inspired by wiremock and uses libmproxy for the proxy functionality.\n\nmockpy 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.\n\n# Why mockpy\n- You want a very lightweight utility to quickly create a mock API\n- No need to edit your app code as it uses proxy mocking\n- Works on top of proven technology ([mitmproxy](https://mitmproxy.org/) and [cherrypi](http://www.cherrypy.org/))\n- Update to the mock API are picked up from files without the need to start/restart the server again.\n\n# Installation\n\nMockpy can be installed as a python wheel using `pip` or as a standalone binary using `homebrew`\n\n## Installing with pip\n\nMake sure you have [pip](https://pip.pypa.io/en/latest/installing.html) installed.\n\nRun the following to install mockpy\n\n pip install mockpy\n\n## Installing using brew\nInstall using brew tap\n\n brew tap oarrabi/tap\n brew install mockpy\n\n# Usage\n\nBellow is a description of the basic operations that `mockpy` provides, for a more complete understanding please refer to [the wikis](https://github.com/oarrabi/mockpy/wiki).\n\n## Initialize a directory\nInitialize a the current folder by running:\n\n mockpy init\nThis will create two folders: \n\n`inout`: this folder will contains a list of mapping YAML files, each YAML file represents an request and response operation.\n\n`res`: resource folder contains the static HTML, JSON, Images and static files returned as part of the mocking process.\n\nTo understand the YAML file format, please refer to the documentation.\n\n## Start the mock server\nThe mock server can be started as a standalone web server, or as a proxy server.\n\n### Standalone web server\nUse `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.\n\n### Proxy web server\nTo start mockpy in proxy server mode use `mockpy start -x`. This command does the following:\n- Starts a proxy server on '127.0.0.1:9090'\n- Sets the macs HTTP/HTTPS settings to the created proxy server.\n\n\n\n\nHistory\n-------\n\n0.1.0 (2015-01-11)\n---------------------\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/oarrabi/mockpy", "keywords": "mockpy", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "mockpy", "package_url": "https://pypi.org/project/mockpy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mockpy/", "project_urls": { "Homepage": "https://github.com/oarrabi/mockpy" }, "release_url": "https://pypi.org/project/mockpy/0.1.7/", "requires_dist": [ "mock", "cherrypy", "termcolor", "watchdog", "netlib", "mitmproxy" ], "requires_python": null, "summary": "Mockpy is a python open source line utility to quickly create mock servers on Mac OS X.", "version": "0.1.7" }, "last_serial": 1615652, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f9ffcbbeb7ae712003c72dd77c7484df", "sha256": "7a75680828b614d2534f9f0dc4cad6fbd7a4de57321578eca327b7ed2f4d4f32" }, "downloads": -1, "filename": "mockpy-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "f9ffcbbeb7ae712003c72dd77c7484df", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 18892, "upload_time": "2015-06-28T22:11:42", "url": "https://files.pythonhosted.org/packages/10/52/68d122ab24c42df7a902116fbef86b668a2682ac02302997faf93e28e217/mockpy-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3811ae6c217aa0d644080be5a50b6b31", "sha256": "f0eabd5b3cdfbf616dfcf1177bffdf3a7b042786a23f5afb623b6859cf572044" }, "downloads": -1, "filename": "mockpy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3811ae6c217aa0d644080be5a50b6b31", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 136346, "upload_time": "2015-06-28T22:11:47", "url": "https://files.pythonhosted.org/packages/78/ff/cc49fc9f80b481055a60a8a405094ad178b65e5107a6aeffdb10e0e6e4ca/mockpy-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "16ca97036c735773f78306937753ed66", "sha256": "7f166e4876d6591600db502062bdca877f3ed1bb4ff5c9917b7463d5dd001d0a" }, "downloads": -1, "filename": "mockpy-0.1.1.macosx-10.10-x86_64.tar.gz", "has_sig": false, "md5_digest": "16ca97036c735773f78306937753ed66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25393, "upload_time": "2015-06-28T22:28:22", "url": "https://files.pythonhosted.org/packages/36/32/dfdc0979846b0d61bc80caac07d4d8b35772acdcbfe8a7c61615e857d1b1/mockpy-0.1.1.macosx-10.10-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "257cf87ca0a8e1ca13ea775e5159a905", "sha256": "9a6a227d2dad9235f643e613f6d7436d447d1fd35847e2dfb2b0ed53d32bc8bc" }, "downloads": -1, "filename": "mockpy-0.1.1-py2.7.egg", "has_sig": false, "md5_digest": "257cf87ca0a8e1ca13ea775e5159a905", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 36699, "upload_time": "2015-06-28T22:28:18", "url": "https://files.pythonhosted.org/packages/95/df/b93f9c9f54808b43d0741a46ac3820b3746cbbab4b256b579437e5142d2e/mockpy-0.1.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "8be929ceaf2f257ed60865800cb0bda9", "sha256": "4f3af7ddfccae4a3b0f759db085cb9e85065e39a4212580af237398254042970" }, "downloads": -1, "filename": "mockpy-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "8be929ceaf2f257ed60865800cb0bda9", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 18894, "upload_time": "2015-06-28T22:28:14", "url": "https://files.pythonhosted.org/packages/57/69/a45ec6a6e54d1aa3871e0bbbbf2708251d4d25a31a1f54b2f12f42215249/mockpy-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05a302e5c8c13516d5032ef4f52baa48", "sha256": "7bd1dcb3af238cb6c431dfc9fcc474ea4c3a336a493f39a1bb25866abb59930f" }, "downloads": -1, "filename": "mockpy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "05a302e5c8c13516d5032ef4f52baa48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 136358, "upload_time": "2015-06-28T22:28:26", "url": "https://files.pythonhosted.org/packages/74/c5/8f0438312deeac099f99ef0c0c740ef4c8336844789d1de58f18033bbee2/mockpy-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "578700a0847d30dc593188166243e184", "sha256": "1c60cadcaf961ae79b981887345f810a1fd4b16b3186d175ee30149599ce54be" }, "downloads": -1, "filename": "mockpy-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "578700a0847d30dc593188166243e184", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 18165, "upload_time": "2015-06-28T22:48:24", "url": "https://files.pythonhosted.org/packages/87/94/b59459a3ef64a7a7d9a3a2227d492c288640c9fa75e4e6b8a6b3b29de80c/mockpy-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "497d06d9e1baf7a1ced18b401340b48e", "sha256": "cf2a067cd41530637e60062c1e5d1f4ea56afa79b459869f149d3c10052bbffd" }, "downloads": -1, "filename": "mockpy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "497d06d9e1baf7a1ced18b401340b48e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10494, "upload_time": "2015-06-28T22:48:27", "url": "https://files.pythonhosted.org/packages/5f/45/e3d0cd874c81cfff91fb370f9dcd22de2151f495b7865409f81718e2b30f/mockpy-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "915d26affbff8d55111552ff2905f8b1", "sha256": "da61f6611a81c149ba76f878f3429800474b8c51344d0e99c7394a1ed8a7e24a" }, "downloads": -1, "filename": "mockpy-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "915d26affbff8d55111552ff2905f8b1", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 18155, "upload_time": "2015-06-28T22:52:37", "url": "https://files.pythonhosted.org/packages/7c/5c/17e2bf404eaa87c530a64b574d7ee7b7149ea006a2d8cc661772375b4fb1/mockpy-0.1.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a59acb53f9ad91cb346e48792bc30ad3", "sha256": "c009411ea8bdbc9b4e11638516902670d826e50f899ee7303e85331cf8725e92" }, "downloads": -1, "filename": "mockpy-0.1.3.tar.gz", "has_sig": false, "md5_digest": "a59acb53f9ad91cb346e48792bc30ad3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10484, "upload_time": "2015-06-28T22:52:41", "url": "https://files.pythonhosted.org/packages/9f/cb/996d18b4fc4e05a639f5e5db248731d276f7e8c38de2cde742cff88ed92e/mockpy-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "8f9ab33410942c44f8c3ffc137d9a5f0", "sha256": "d087b715e11f18e46944b604056e1ba0a53ea529c99a72e5b7e2d35be99e7d13" }, "downloads": -1, "filename": "mockpy-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "8f9ab33410942c44f8c3ffc137d9a5f0", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 18168, "upload_time": "2015-06-28T22:59:52", "url": "https://files.pythonhosted.org/packages/31/1e/8b81a8e7653728e5042b9b226bb57914cb2ee570a8cab093d356d3e70251/mockpy-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4e45c0f476ba9b15ca8829e1094360f9", "sha256": "47125eebd789b336b1e3fe5c31d6e153858383fafe9846f93272171f38a09d09" }, "downloads": -1, "filename": "mockpy-0.1.4.tar.gz", "has_sig": false, "md5_digest": "4e45c0f476ba9b15ca8829e1094360f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10488, "upload_time": "2015-06-28T22:59:55", "url": "https://files.pythonhosted.org/packages/ee/9d/3b3c74b27675be9d0619bfc3a55be497972a049cc7d6630b50f4fad46e1f/mockpy-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "a16be1aa907cd33f69d052b121fe230b", "sha256": "0aad83aa6cae199717abc4342aef0cd5686c4a02446c90e06f5a470760dc4e4f" }, "downloads": -1, "filename": "mockpy-0.1.5-py2-none-any.whl", "has_sig": false, "md5_digest": "a16be1aa907cd33f69d052b121fe230b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 17938, "upload_time": "2015-06-30T23:58:04", "url": "https://files.pythonhosted.org/packages/0b/e1/e580505f09860054469aacdd3eae3e865e8bef7c61cc7726ad32e1885b92/mockpy-0.1.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0cc4308a6ab4dcf71c3038de55df7e05", "sha256": "2cb0c2903ea34512d0363d831f3bcb5d25be4d448dd56b21748ad6d7a2028df1" }, "downloads": -1, "filename": "mockpy-0.1.5.tar.gz", "has_sig": false, "md5_digest": "0cc4308a6ab4dcf71c3038de55df7e05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10825, "upload_time": "2015-06-30T23:58:08", "url": "https://files.pythonhosted.org/packages/ca/28/494d9125df8b446698770d575d5db8ddb190a81daee1dcd30c668516fb16/mockpy-0.1.5.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "4413d5038e1a67a0f29b55546008ffa0", "sha256": "e3c65aa3268719d07fe0d7d036fa7f57de4133a8f4fdd3889a88887d29dd8696" }, "downloads": -1, "filename": "mockpy-0.1.7-py2-none-any.whl", "has_sig": false, "md5_digest": "4413d5038e1a67a0f29b55546008ffa0", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 19806, "upload_time": "2015-07-02T00:27:37", "url": "https://files.pythonhosted.org/packages/38/f0/9d8e2008e4e2532fae45a19d2fdb8bb89632c36028721076bc1fb4237385/mockpy-0.1.7-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "74a79e02c3dc112cd7090a5137c68284", "sha256": "7ac6a1e25540ee28c975d154999b2196401d8f7ca0c4293caf77ba9fcff17808" }, "downloads": -1, "filename": "mockpy-0.1.7.tar.gz", "has_sig": false, "md5_digest": "74a79e02c3dc112cd7090a5137c68284", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12058, "upload_time": "2015-07-02T00:27:41", "url": "https://files.pythonhosted.org/packages/09/51/ad57dff53fdb5794e0cb136b5bd3325b055bfb2f54962aaabda67567a959/mockpy-0.1.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4413d5038e1a67a0f29b55546008ffa0", "sha256": "e3c65aa3268719d07fe0d7d036fa7f57de4133a8f4fdd3889a88887d29dd8696" }, "downloads": -1, "filename": "mockpy-0.1.7-py2-none-any.whl", "has_sig": false, "md5_digest": "4413d5038e1a67a0f29b55546008ffa0", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 19806, "upload_time": "2015-07-02T00:27:37", "url": "https://files.pythonhosted.org/packages/38/f0/9d8e2008e4e2532fae45a19d2fdb8bb89632c36028721076bc1fb4237385/mockpy-0.1.7-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "74a79e02c3dc112cd7090a5137c68284", "sha256": "7ac6a1e25540ee28c975d154999b2196401d8f7ca0c4293caf77ba9fcff17808" }, "downloads": -1, "filename": "mockpy-0.1.7.tar.gz", "has_sig": false, "md5_digest": "74a79e02c3dc112cd7090a5137c68284", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12058, "upload_time": "2015-07-02T00:27:41", "url": "https://files.pythonhosted.org/packages/09/51/ad57dff53fdb5794e0cb136b5bd3325b055bfb2f54962aaabda67567a959/mockpy-0.1.7.tar.gz" } ] }