{ "info": { "author": "peakbreaker", "author_email": "andershurum@gmail.compile", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "\n[![pipeline status](https://gitlab.com/peakbreaker/MockQuerPy/badges/master/pipeline.svg)](https://gitlab.com/peakbreaker/MockQuerPy/commits/master)\n[![coverage report](https://gitlab.com/peakbreaker/MockQuerPy/badges/master/coverage.svg)](https://gitlab.com/peakbreaker/MockQuerPy/commits/master)\n\n## MockQuerPy\n\nThis project implements a mocking library for quick and easy testing of google\nbigquery based python projects\n\n![bigquery](./bigquery.png)\n\n### Getting started\n\nInstructions on getting a local developement copy on your machine\n\n#### Using the Lib in your project\n\n**Basic use:**\n\n1. `$ pip install mockquerpy`\n2. Use either the context manager or decorator in your tests:\n\n```python\nfrom mockquerpy import MockQuerPy, mockquerpy_wrap\n\nwith MockQuerPy(TEST_DATA) as bigquery:\n print('bigquery inside here is a mockobject')\n\n@mockquerpy_wrap\ndef test_my_bq_implementation(bigquery):\n print('bigquery inside here is a mockobject')\n MockQuerPy.set_test_data(MY_TEST_DATA)\n```\n\nSee the project [documentation](#) for more // TODO\n\n#### Developing the library\n\n##### Prereq\n- Python 3.7 or higher\n\n##### Instructions\n\n**Developing the library**:\n1. Set up a python virtualenv `$ virtualenv venv && source venv/bin/activate`\n2. Install the dependencies `$ pip install -r requirements.txt`\n\n### Testing\n\nProject is being tested using the pytest framework. This is also added to the\nCI pipeline.\n\n`$ pytest .`\n\n### Deploying\n\nDeployment is and should be handled by the CD pipeline to the project, but can\nbe done manually:\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/peakbreaker/MockQuerPy", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "mockquerpy", "package_url": "https://pypi.org/project/mockquerpy/", "platform": "", "project_url": "https://pypi.org/project/mockquerpy/", "project_urls": { "Homepage": "https://gitlab.com/peakbreaker/MockQuerPy" }, "release_url": "https://pypi.org/project/mockquerpy/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "A google bigquery client library mocker", "version": "0.1.0" }, "last_serial": 4777992, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "ead7f72fe9c53ceec2b4ab856651da87", "sha256": "a9f962f6f9b9e71a4b8a4983631444de7c3d6b17458bbc354c684bb8dee9f2ea" }, "downloads": -1, "filename": "MockQuerPy-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ead7f72fe9c53ceec2b4ab856651da87", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6914, "upload_time": "2019-02-04T13:45:57", "url": "https://files.pythonhosted.org/packages/f8/24/6a38e9677387766410d3271fdac30f94184b3bc23353e1846904ccf00593/MockQuerPy-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9a94a5c908445869c955a91345a98044", "sha256": "7092633cab19cd7e55520959b9be3a2edb7af33aaecf016ffad554ac60ba767e" }, "downloads": -1, "filename": "MockQuerPy-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9a94a5c908445869c955a91345a98044", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4747, "upload_time": "2019-02-04T13:45:59", "url": "https://files.pythonhosted.org/packages/fc/7f/62f0198d0b3effa6f063cd881222eb0c59dff5ee7d2cc55be0edcf17ed94/MockQuerPy-0.0.1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "d1f46295e4588a1f35c8a184bf86b8f3", "sha256": "5ecb28a5eef5b95a3145468b151ffcb4ad7332e437435df62e5fa6ca8b36af64" }, "downloads": -1, "filename": "mockquerpy-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d1f46295e4588a1f35c8a184bf86b8f3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6971, "upload_time": "2019-02-04T14:53:36", "url": "https://files.pythonhosted.org/packages/43/d0/0daf3a47b4b15ce30839173b5ce1421427445c3b1d239707c77daf65c4d8/mockquerpy-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7ee037f0cc543f4ec103e1ed618e4227", "sha256": "4574ea83a8bd8afade2678abfcf63ae73178cb399675f3e189cbdc335e7c303b" }, "downloads": -1, "filename": "mockquerpy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7ee037f0cc543f4ec103e1ed618e4227", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4772, "upload_time": "2019-02-04T14:53:37", "url": "https://files.pythonhosted.org/packages/af/12/232e518fa6d9b6c233877e58aef679c3dd9a5597aa3dfa68a052e062b460/mockquerpy-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d1f46295e4588a1f35c8a184bf86b8f3", "sha256": "5ecb28a5eef5b95a3145468b151ffcb4ad7332e437435df62e5fa6ca8b36af64" }, "downloads": -1, "filename": "mockquerpy-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d1f46295e4588a1f35c8a184bf86b8f3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6971, "upload_time": "2019-02-04T14:53:36", "url": "https://files.pythonhosted.org/packages/43/d0/0daf3a47b4b15ce30839173b5ce1421427445c3b1d239707c77daf65c4d8/mockquerpy-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7ee037f0cc543f4ec103e1ed618e4227", "sha256": "4574ea83a8bd8afade2678abfcf63ae73178cb399675f3e189cbdc335e7c303b" }, "downloads": -1, "filename": "mockquerpy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7ee037f0cc543f4ec103e1ed618e4227", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4772, "upload_time": "2019-02-04T14:53:37", "url": "https://files.pythonhosted.org/packages/af/12/232e518fa6d9b6c233877e58aef679c3dd9a5597aa3dfa68a052e062b460/mockquerpy-0.1.0.tar.gz" } ] }