{ "info": { "author": "Martin Maillard", "author_email": "self@martin-maillard.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python", "Topic :: Database" ], "description": "# Schema extractor for MongoDB\r\n\r\nMongo-inspector is a Python library that analyses the data of a MongoDB\r\ndatabase to extract its \"schema\" (I know...).\r\n\r\n## Installation\r\n\r\n $ pip install mongo-inspector\r\n\r\n## Usage\r\n\r\n import mongo_inspector\r\n schema = mongo_inspector.extract_schema(\r\n db_name='mydb',\r\n host='myhost', # optional: default 'localhost'\r\n port=xxxx # optional: default 27017\r\n )\r\n\r\nThe returned schema looks like that:\r\n\r\n {\r\n u'SomeCollection': [\r\n Attribute(name=u'id', types=[u'String']),\r\n Attribute(name=u'someattribute', types=[u'String'])\r\n ],\r\n u'AnotherCollection': [\r\n Attribute(name=u'_id', types=[u'ObjectId']),\r\n Attribute(name=u'someattr', types=[u'Object']),\r\n Attribute(name=u'someattr.nested', types=[u'Number']),\r\n Attribute(name=u'somelist', types=[u'Array']),\r\n Attribute(name=u'somelist.__item__', types=[u'Object']),\r\n Attribute(name=u'somelist.__item__.nested',\r\n types=[u'String', u'Number'])\r\n ]\r\n }\r\n\r\n`Attribute(name, types)` is just a `nametuple`. Each attribute can have\r\nseveral types.\r\n\r\n## Future\r\n\r\n* It might be usefull to return a tree instead of 'point-separated'\r\n nested keys.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/martinmaillard/mongo-inspector", "keywords": "mongodb", "license": "Copyright 2013 Martin Maillard\r\n\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.", "maintainer": null, "maintainer_email": null, "name": "mongo-inspector", "package_url": "https://pypi.org/project/mongo-inspector/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mongo-inspector/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/martinmaillard/mongo-inspector" }, "release_url": "https://pypi.org/project/mongo-inspector/0.2/", "requires_dist": null, "requires_python": null, "summary": "Schema extractor for MongoDB.", "version": "0.2" }, "last_serial": 826281, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3349ebc64a8b4e735ee9c1fa589ebec2", "sha256": "5108d0b5716058012904d9338b86febe164658ce20397b7014ed1cd0959f8ce5" }, "downloads": -1, "filename": "mongo-inspector-0.1.tar.gz", "has_sig": false, "md5_digest": "3349ebc64a8b4e735ee9c1fa589ebec2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3908, "upload_time": "2013-06-28T12:36:23", "url": "https://files.pythonhosted.org/packages/30/5a/b85e7ae4d1a6d2050118917e632734c9e8c21814570a41f1623aff0f4c7c/mongo-inspector-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "44bb834436d442af48ca53f501b742e4", "sha256": "9021874dd3a34faf3be7e227822fd55bf7552f4f78b1f5035fa542416eafa742" }, "downloads": -1, "filename": "mongo-inspector-0.2.tar.gz", "has_sig": false, "md5_digest": "44bb834436d442af48ca53f501b742e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3525, "upload_time": "2013-07-27T15:35:58", "url": "https://files.pythonhosted.org/packages/97/00/b8ee442402e7df8b631c4358aec18f7dcfba46741e0b792942e071b83719/mongo-inspector-0.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "7bf1764b73e4d64243f43c530a456820", "sha256": "8f3dbdddfe9e78840607f6b1d6a3407f24c4f6014f8ad895a7df3f8209c06f4c" }, "downloads": -1, "filename": "mongo-inspector-0.2.zip", "has_sig": false, "md5_digest": "7bf1764b73e4d64243f43c530a456820", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5819, "upload_time": "2013-07-27T15:35:54", "url": "https://files.pythonhosted.org/packages/a2/8b/24fabfe36580c0f8ade495ada9e714c9802d61624f6ee11f812994870a78/mongo-inspector-0.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "44bb834436d442af48ca53f501b742e4", "sha256": "9021874dd3a34faf3be7e227822fd55bf7552f4f78b1f5035fa542416eafa742" }, "downloads": -1, "filename": "mongo-inspector-0.2.tar.gz", "has_sig": false, "md5_digest": "44bb834436d442af48ca53f501b742e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3525, "upload_time": "2013-07-27T15:35:58", "url": "https://files.pythonhosted.org/packages/97/00/b8ee442402e7df8b631c4358aec18f7dcfba46741e0b792942e071b83719/mongo-inspector-0.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "7bf1764b73e4d64243f43c530a456820", "sha256": "8f3dbdddfe9e78840607f6b1d6a3407f24c4f6014f8ad895a7df3f8209c06f4c" }, "downloads": -1, "filename": "mongo-inspector-0.2.zip", "has_sig": false, "md5_digest": "7bf1764b73e4d64243f43c530a456820", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5819, "upload_time": "2013-07-27T15:35:54", "url": "https://files.pythonhosted.org/packages/a2/8b/24fabfe36580c0f8ade495ada9e714c9802d61624f6ee11f812994870a78/mongo-inspector-0.2.zip" } ] }