{ "info": { "author": "Shay Palachy", "author_email": "shay.palachy@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "mongozen\n########\n|PyPI-Status| |PyPI-Versions| |Build-Status| |Codecov| |LICENCE|\n\nMongoDB utilities for Python.\n\n.. code-block:: python\n\n from mongozen.util import export_collection\n export_collection(collection_obj, '~/dump.json')\n\n.. contents::\n\n.. section-numbering::\n\n\nInstallation\n============\n\n.. code-block:: bash\n\n pip install mongozen\n\n\nUse\n===\n\n``mongozen`` is divided into three sub-packages, by functionality:\n\nmatchop\n-------\n\nDefines a ``Matchop`` class representing a pymongo matching operator. It extends the standard Python ``dict``, provides a smart representation of a MongoDB matching operator with well-defined and optimized ``&`` and ``|`` operators. For example:\n\n.. code-block:: python\n\n from mongozen.matchop import Matchop\n match_dateint = Matchop({'dateInt': {'$gt': 20161203}})\n match_dateint_and_id = match_dateint & {'user_id': 12}\n print(match_dateint_and_id)\n\nwill output\n\n.. code-block:: python\n\n {'user_id': 12, 'dateInt': {'$gt': 20161203}}\n\nWhile\n\n.. code-block:: python\n\n match_dateint = Matchop({'dateInt': {'$gt': 20161203}})\n match_dateint_updated = match_dateint & {'dateInt': {'$gt': 20161208}}\n print(match_dateint_updated)\n\nwill output\n\n.. code-block:: python\n\n { {'dateInt': {'$gt': 20161208}} }\n\n\nqueries\n-------\n\nContains some usefull queries.\n\nutil\n----\n\nContains utility functions, like Python wrappers for MongoDB command-line tools.\n\n\nContributing\n============\n\nPackage author and current maintainer is Shay Palachy (shay.palachy@gmail.com); You are more than welcome to approach him for help. Contributions are very welcomed.\n\nInstalling for development\n----------------------------\n\nClone:\n\n.. code-block:: bash\n\n git clone git@github.com:shaypal5/mongozen.git\n\n\nInstall in development mode:\n\n.. code-block:: bash\n\n cd mongozen\n pip install -e .[test]\n # or, if you use pipenv\n pipenv install --dev\n\n\nRunning the tests\n-----------------\n\nTo run the tests use:\n\n.. code-block:: bash\n\n pytest\n # or, if you use pipenv\n pipenv run pytest\n\n\nAdding documentation\n--------------------\n\nThe project is documented using the `numpy docstring conventions`_, which were chosen as they are perhaps the most widely-spread conventions that are both supported by common tools such as Sphinx and result in human-readable docstrings. When documenting code you add to this project, follow `these conventions`_.\n\n.. _`numpy docstring conventions`: https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt\n.. _`these conventions`: https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt\n\nAdditionally, if you update this ``README.rst`` file, use ``python setup.py checkdocs`` (or ``pipenv run`` the same command) to validate it compiles.\n\n\nCredits\n=======\n\nCreated by Shay Palachy (shay.palachy@gmail.com).\n\n\n.. |PyPI-Status| image:: https://img.shields.io/pypi/v/mongozen.svg\n :target: https://pypi.python.org/pypi/mongozen\n\n.. |PyPI-Versions| image:: https://img.shields.io/pypi/pyversions/mongozen.svg\n :target: https://pypi.python.org/pypi/mongozen\n\n.. |Build-Status| image:: https://travis-ci.org/shaypal5/mongozen.svg?branch=master\n :target: https://travis-ci.org/shaypal5/mongozen\n\n.. |LICENCE| image:: https://img.shields.io/github/license/shaypal5/mongozen.svg\n :target: https://github.com/shaypal5/mongozen/blob/master/LICENSE\n\n.. |Codecov| image:: https://codecov.io/github/shaypal5/mongozen/coverage.svg?branch=master\n :target: https://codecov.io/github/shaypal5/mongozen?branch=master\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/shaypal5/mongozen", "keywords": "mongodb", "license": "", "maintainer": "", "maintainer_email": "", "name": "mongozen", "package_url": "https://pypi.org/project/mongozen/", "platform": "any", "project_url": "https://pypi.org/project/mongozen/", "project_urls": { "Homepage": "https://github.com/shaypal5/mongozen" }, "release_url": "https://pypi.org/project/mongozen/0.0.6/", "requires_dist": null, "requires_python": "", "summary": "MongoDB utilities for Python", "version": "0.0.6" }, "last_serial": 3574918, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "6875a5544f69b5c6df81932498774667", "sha256": "364dc8099ea645a1cd3ea3231292d2f96a7689b4a89da23724b36479a453c6ae" }, "downloads": -1, "filename": "mongozen-0.0.3.tar.gz", "has_sig": false, "md5_digest": "6875a5544f69b5c6df81932498774667", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 136642, "upload_time": "2017-10-10T23:02:18", "url": "https://files.pythonhosted.org/packages/b5/f3/40b19f13b9f3995e779a369b3c81d59b4ec26a1a1bf947e32b7fb21d474f/mongozen-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "1659745e28aea1c58e6648f153971cf5", "sha256": "dded8c468c54ead3a1b23fc19e4bcbee63b68350335dbcbf775569ec408dc0a3" }, "downloads": -1, "filename": "mongozen-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1659745e28aea1c58e6648f153971cf5", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 206324, "upload_time": "2017-12-13T16:09:27", "url": "https://files.pythonhosted.org/packages/20/fe/b40d2e1f2919d3e0f63e6908c73b511b212570bb7be24cc87d7fd3f8b0e6/mongozen-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "275db39a89ea760fc96ecfba759aa337", "sha256": "abac24b285dc180025b99e60c865d9a97aa0c7f31f906f3f58fb04f773644c1d" }, "downloads": -1, "filename": "mongozen-0.0.4.tar.gz", "has_sig": false, "md5_digest": "275db39a89ea760fc96ecfba759aa337", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 149560, "upload_time": "2017-12-13T16:09:22", "url": "https://files.pythonhosted.org/packages/6b/6b/1c0f871e22fe2059443bd999adf9a765d6346763706806326d0641dd3959/mongozen-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "55be8afb7d9003697050a28cf1c0083c", "sha256": "69f37e8f6012a93dca4a4b7b5aa16616e498485fd77a8e0c1de6ace345473dab" }, "downloads": -1, "filename": "mongozen-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "55be8afb7d9003697050a28cf1c0083c", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 75854, "upload_time": "2018-02-05T00:18:26", "url": "https://files.pythonhosted.org/packages/20/64/360b5d41c694cd30c2d7a5058916880d4fce13963825dad848d9a6b8a955/mongozen-0.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ed3b04538efd27eff41064d29420d7d2", "sha256": "ba19680a63cb9ac41bdae0dfe171fc4caaf8226b99ee847f5bcfa105cc80cb65" }, "downloads": -1, "filename": "mongozen-0.0.5.tar.gz", "has_sig": false, "md5_digest": "ed3b04538efd27eff41064d29420d7d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 74074, "upload_time": "2018-02-05T00:18:24", "url": "https://files.pythonhosted.org/packages/73/94/bde258dc2ce741962f90167c3a550bb41f964eee594b0044baa0a97092e3/mongozen-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "ac4ec57887d96e5ee09f2c1fd38dfea9", "sha256": "74d67f5c51f773d77dcaaa1765f40debcfd736ea65efb5c0d050b2dce71db5aa" }, "downloads": -1, "filename": "mongozen-0.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ac4ec57887d96e5ee09f2c1fd38dfea9", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 56603, "upload_time": "2018-02-12T13:58:14", "url": "https://files.pythonhosted.org/packages/be/99/56ae66982a21bbb56fd4f844919eca8f2b4667048809d89c8627e378ccd9/mongozen-0.0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "59fb138f83fa44ead478baa6b7ec6b37", "sha256": "8d9395f76b8bfe99733bcfbc76fd7a4e3ad491275ac8e0028bba4c21acb99471" }, "downloads": -1, "filename": "mongozen-0.0.6.tar.gz", "has_sig": false, "md5_digest": "59fb138f83fa44ead478baa6b7ec6b37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58439, "upload_time": "2018-02-12T13:58:12", "url": "https://files.pythonhosted.org/packages/5d/8f/0cb3f81eef1045cfd4a34657370331a8a19437f57052a73ed45fe7541e6f/mongozen-0.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ac4ec57887d96e5ee09f2c1fd38dfea9", "sha256": "74d67f5c51f773d77dcaaa1765f40debcfd736ea65efb5c0d050b2dce71db5aa" }, "downloads": -1, "filename": "mongozen-0.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ac4ec57887d96e5ee09f2c1fd38dfea9", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 56603, "upload_time": "2018-02-12T13:58:14", "url": "https://files.pythonhosted.org/packages/be/99/56ae66982a21bbb56fd4f844919eca8f2b4667048809d89c8627e378ccd9/mongozen-0.0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "59fb138f83fa44ead478baa6b7ec6b37", "sha256": "8d9395f76b8bfe99733bcfbc76fd7a4e3ad491275ac8e0028bba4c21acb99471" }, "downloads": -1, "filename": "mongozen-0.0.6.tar.gz", "has_sig": false, "md5_digest": "59fb138f83fa44ead478baa6b7ec6b37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58439, "upload_time": "2018-02-12T13:58:12", "url": "https://files.pythonhosted.org/packages/5d/8f/0cb3f81eef1045cfd4a34657370331a8a19437f57052a73ed45fe7541e6f/mongozen-0.0.6.tar.gz" } ] }