{ "info": { "author": "hanks", "author_email": "zhouhan315@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Copyright (c) 2016 hanks\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nDescription: |Build Status| |Coverage Status|\n \n pg diff\n =======\n \n A simple tool to diff serveral properties of schemas in two postgresql\n databases.\n \n Now supported diff options are:\n \n - table\\_name\n - table\\_count\n - table\\_schema\n - row\\_count\n - table\\_size\n - index\\_size\n - ``table_total_size``\n - sequence\n \n Why\n ===\n \n Recently I worked on database migration things, and very need a tool to\n analyze the consistency between source and target database. So I make\n this tool to some simple comparison, and it looks good to me:)\n \n Prerequisite\n ============\n \n You need to install ``postgresql`` firstly, because ``pg_diff`` will use\n ``psycopg2`` to execute some commands.\n \n Installation\n ============\n \n ``pip install pg_diff``\n \n Usage\n =====\n \n ``pg_diff --type=table_count 'host=source dbname=test user=postgres password=secret port=5432' 'host=target dbname=test user=postgres password=secret port=5432' --verbose``\n \n ::\n \n Usage:\n pg_diff --type=T_NAME SOURCE_DSN TARGET_DSN [--verbose]\n pg_diff -h | --help\n pg_diff --version\n \n Arguments:\n SOURCE_DSN dsn for source database, like \"host=xxx dbname=test user=postgres password=secret port=5432\"\n TARGET_DSN dsn for target database, like \"host=xxx dbname=test user=postgres password=secret port=5432\"\n \n Options:\n --type=T_NAME Type name to compare in category, valid input likes: table_name, table_count, table_schema, row_count, table size. index size, table_total_size, sequence\n -h --help Show help info.\n --verbose Show verbose information.\n --version Show version.\n \n Implementation\n ==============\n \n Mainly using libraries below to make this tool:\n \n - docopt==0.6.2\n - schema==0.6.5\n - deepdiff==2.5.1\n - psycopg2==2.6.2\n \n And I use some SQL to query the status of schema, like table size, index\n size and etc.\n \n Contribution\n ============\n \n #. Fork the repository on GitHub.\n #. Make a branch off of master and commit your changes to it.\n #. Run the tests with ``tox``\n \n - Either use ``tox`` to build against all supported Python versions (if\n you have them installed) or use ``tox -e py{version}`` to test\n against a specific version, e.g., ``tox -e py27`` or ``tox -e py33``.\n \n #. Submit a Pull Request to the master branch on GitHub.\n \n If you\u2019d like to have a development environment for ``pg_diff``, you\n should create a virtualenv and then do ``pip install -e .`` from within\n the directory.\n \n Lisence\n =======\n \n MIT Lisence\n \n .. |Build Status| image:: https://travis-ci.org/hanks/pg_diff.svg?branch=master\n :target: https://travis-ci.org/hanks/pg_diff\n .. |Coverage Status| image:: https://coveralls.io/repos/github/hanks/pg_diff/badge.svg?branch=master\n :target: https://coveralls.io/github/hanks/pg_diff?branch=master\nKeywords: pg_diff postgresql diff\nPlatform: UNKNOWN\nClassifier: Topic :: Utilities\nClassifier: Development Status :: 5 - Production/Stable\nClassifier: License :: OSI Approved :: MIT License\nClassifier: Programming Language :: Python :: 2\nClassifier: Programming Language :: Python :: 2.6\nClassifier: Programming Language :: Python :: 2.7\nClassifier: Intended Audience :: Developers\nClassifier: Operating System :: OS Independent\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/hanks/pg_diff", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "pg-diff", "package_url": "https://pypi.org/project/pg-diff/", "platform": "", "project_url": "https://pypi.org/project/pg-diff/", "project_urls": { "Homepage": "https://github.com/hanks/pg_diff" }, "release_url": "https://pypi.org/project/pg-diff/0.2.1/", "requires_dist": [ "deepdiff (>=2.5.1)", "docopt (>=0.6.2)", "psycopg2 (>=2.6.2)", "schema (>=0.6.5)" ], "requires_python": "", "summary": "a simple tool to diff schemas in two postgresql database", "version": "0.2.1" }, "last_serial": 2576395, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "2088c3c789cb5783f642ab891ffecd1d", "sha256": "42146a77fcdf2071580090af5b8698a4620b41913f96da2ffbc7941e4efd6bb8" }, "downloads": -1, "filename": "pg_diff-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2088c3c789cb5783f642ab891ffecd1d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9926, "upload_time": "2016-11-27T05:27:31", "url": "https://files.pythonhosted.org/packages/98/e9/9d92465122bf4d937cd0d5a52fcd18b14662fa595e4ea1202bccab1aaafc/pg_diff-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "12891d40e38e336a3deed88024705404", "sha256": "57804ab6b2c632dc2e5bd002d89397ee7955141498523ad4bf769f11a38b4291" }, "downloads": -1, "filename": "pg_diff-0.1.1.tar.gz", "has_sig": false, "md5_digest": "12891d40e38e336a3deed88024705404", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7105, "upload_time": "2016-11-27T05:27:33", "url": "https://files.pythonhosted.org/packages/bc/99/be557bd28040d1bb63df86dccb7910fd1db65f3efb12decf13d0173d5868/pg_diff-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "8cab7c2d8aedd08f554a3cdb71309d18", "sha256": "9df305fb0be13685f567c5ddc17d824c8785ff68e7d6fdecf78c19c795b73228" }, "downloads": -1, "filename": "pg_diff-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8cab7c2d8aedd08f554a3cdb71309d18", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10139, "upload_time": "2017-01-16T02:15:49", "url": "https://files.pythonhosted.org/packages/36/b7/63839d65e0380a431705535c3c9959e688a7c39e6b10ac045e6ea0501cb9/pg_diff-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4cd35c1ecfcae9fe564def11b6507191", "sha256": "94dfe57a7361a3e0b76d3888e5f47f5501108c3a1914b5a0452ec6fb2acb0ba4" }, "downloads": -1, "filename": "pg_diff-0.2.0.tar.gz", "has_sig": false, "md5_digest": "4cd35c1ecfcae9fe564def11b6507191", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7677, "upload_time": "2017-01-16T02:15:51", "url": "https://files.pythonhosted.org/packages/a5/33/ca838a648bcaa6e7b544b077f80c89edac07f4e297d33b31dab6d684d66c/pg_diff-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b5b159e63fd28de7bcaa4b68f74d28ea", "sha256": "cad5e9a95b2c9e4cdf7e8804f284f26ff7d14e6ac617c03399454be8f05ca79c" }, "downloads": -1, "filename": "pg_diff-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b5b159e63fd28de7bcaa4b68f74d28ea", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10156, "upload_time": "2017-01-16T02:19:46", "url": "https://files.pythonhosted.org/packages/9e/c7/0a039608aee980bcef3eb05dd7fd94bcd6293ba004d10c037bd0a8eecf45/pg_diff-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d3da97dbe848ba38db281bd615abd136", "sha256": "4c7e1f286bd02cd44df614a5704debcf21f6c8dee75c11b468287146f9d9a76a" }, "downloads": -1, "filename": "pg_diff-0.2.1.tar.gz", "has_sig": false, "md5_digest": "d3da97dbe848ba38db281bd615abd136", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7693, "upload_time": "2017-01-16T02:19:47", "url": "https://files.pythonhosted.org/packages/79/44/fb672143fa4fd0311265bdb480a8e77eae1c19abddc2cf3903566771259b/pg_diff-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b5b159e63fd28de7bcaa4b68f74d28ea", "sha256": "cad5e9a95b2c9e4cdf7e8804f284f26ff7d14e6ac617c03399454be8f05ca79c" }, "downloads": -1, "filename": "pg_diff-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b5b159e63fd28de7bcaa4b68f74d28ea", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10156, "upload_time": "2017-01-16T02:19:46", "url": "https://files.pythonhosted.org/packages/9e/c7/0a039608aee980bcef3eb05dd7fd94bcd6293ba004d10c037bd0a8eecf45/pg_diff-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d3da97dbe848ba38db281bd615abd136", "sha256": "4c7e1f286bd02cd44df614a5704debcf21f6c8dee75c11b468287146f9d9a76a" }, "downloads": -1, "filename": "pg_diff-0.2.1.tar.gz", "has_sig": false, "md5_digest": "d3da97dbe848ba38db281bd615abd136", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7693, "upload_time": "2017-01-16T02:19:47", "url": "https://files.pythonhosted.org/packages/79/44/fb672143fa4fd0311265bdb480a8e77eae1c19abddc2cf3903566771259b/pg_diff-0.2.1.tar.gz" } ] }