{"repo":"pajachiet/pymongo-schema","free":true,"listed":false,"github":"https://github.com/pajachiet/pymongo-schema","clone":"git clone https://github.com/pajachiet/pymongo-schema.git","description":"A schema analyser for MongoDB, written in Python.","language":"Python","stars":81,"topics":["mongodb","schema","json"],"license":"LGPL-3.0","category":"databases-storage","readme_excerpt":"pymongo-schema A schema analyser for MongoDB, written in Python. This tool allows you to extract your application's schema, directly from your MongoDB data . It comes with powerful schema manipulation and export functionalities . It will be particularly useful when you inherit a data dump, and want to quickly learn how the data is structured. pymongo-schema allows to map your MongoDB data model to a relational (SQL) data model. This greatly helps to configure mongo-connector-postgresql, a tool to synchronize data from MongoDB to a target PostgreSQL database. It also helps you to compare different versions of your data model . This tools is inspired by variety, with the following enhancement - extract the hierarchical structure of the schema - versatile output options : json, yaml, tsv, markdown or htlm - finer grained types . ex: INTEGER, DOUBLE rather than NUMBER - filtering of the output schema, using a namespace as defined by mongo-connector - mapping to a relational schema - comparison of successive schema Install You can install latest stable version PyPi : Or directly from github : Usage Command line To display full usage, with options description, run: Python package pymongo schema modules can also be imported to be used directly inside python code : Fore more details, refer to modules and functions docstrings. Examples First, lets populate a collection in test database from mongo shell db.users.insert({name: \"Tom\", bio: \"A nice guy.\", pets: [\"monkey\", \"fish\"], someWei","default_branch":null,"files":null,"tree":[],"storefront":"/r/pajachiet","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pajachiet/pymongo-schema/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}