{ "info": { "author": "Bernhard Maeser", "author_email": "bernhard.maeser@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "======\npyque\n======\n\npythonic devops toolbelt.\n\nconsider this beta.\nits dogfed and somehow tested, but shipped without warranty\n\nAPI MIGHT CHANGE UNTIL V 1.0 (yes i am serious)\n\n------------\nRequirements\n------------\n\nfor MySQL support:\n\n- MySQL-python>=1.2.4\n- mysqldump\n\nfor PostgreSQL support:\n\n- psycopg2>=2.5\n- pg_dump\n\n------------\nInstallation\n------------\n\nwith pip: ::\n \n $ pip install pyque\n\nor: ::\n \n $ easy_install pyque\n\nor checkout from github: ::\n\n $ git clone https://github.com/bmaeser/pyque.git\n $ cd pyque\n $ python setup.py install\n\n-------\nExample\n-------\n\nCreate a gziped MySQL dump of every database on localhost for user 'backupuser'.\nchmod backup to 400 and rotate it away and keep 7 versions of this backup: ::\n\n import os\n\n from pyque.db.mysql import db_list, dump\n from pyque.sh import gzip, chmod\n from pyque.utils import rotate\n\n username = 'backupuser'\n password = 'test'\n tmppath = '/tmp'\n backupdir = '/tmp/backups'\n excludes = ['performance_schema', 'information_schema']\n\n for db in db_list(username = username, password=password):\n if db in excludes:\n continue\n dumpfilename = os.path.join(tmppath,db) + '.sql'\n dump(dumpfilename, dbname=db, username=username, password=password)\n retcode, output, newfilepath = gzip(dumpfilename)\n chmod(newfilepath, '400')\n rotate(newfilepath, backupdir, max_versions=7)\n\n----------\nContribute\n----------\n\ncontributions welcome\n\npull-request please and/or create a issue on github\n\n-------\nLICENCE\n-------\n\nThe MIT License (MIT)\nCopyright \u00a9 2013 Bernhard M\u00e4ser, http://bmaeser.io\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \u201cSoftware\u201d), 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\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \u201cAS IS\u201d, 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\nTHE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bmaeser/pyque", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pyque", "package_url": "https://pypi.org/project/pyque/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyque/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bmaeser/pyque" }, "release_url": "https://pypi.org/project/pyque/0.4.0/", "requires_dist": null, "requires_python": null, "summary": "pythonic devops toolbelt", "version": "0.4.0" }, "last_serial": 797586, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "af1dfd4c7ce9813c8c049bd54497b633", "sha256": "a9f89712b5210f031c02e29488efe1a252140e91e6dc0162c9a2e65805fe5072" }, "downloads": -1, "filename": "pyque-0.0.1.tar.gz", "has_sig": false, "md5_digest": "af1dfd4c7ce9813c8c049bd54497b633", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2122, "upload_time": "2013-03-26T17:01:25", "url": "https://files.pythonhosted.org/packages/28/4a/c896c7b649b510af03f514d82d505dbdaa453e90751196632a44ae60dc87/pyque-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "a520702a6e1638c8987ed62505faee6a", "sha256": "043d7ae505216589278c1829004e52395066b42102039dcbc6b9f4427599b81b" }, "downloads": -1, "filename": "pyque-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a520702a6e1638c8987ed62505faee6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3387, "upload_time": "2013-04-03T12:47:16", "url": "https://files.pythonhosted.org/packages/02/30/1adeaca5ae059f821e819afbce58f22ba2cdc7300dda0ccf90fe526de3af/pyque-0.0.2.tar.gz" } ], "0.1": [ { "comment_text": "", "digests": { "md5": "e6a79999be0e3d4b2ee7ccda8bdf58f1", "sha256": "c2edb995340bec7e92ac0b81509c34b5d35e65a89a2b1f5d5f2358963eaf7ba0" }, "downloads": -1, "filename": "pyque-0.1.tar.gz", "has_sig": false, "md5_digest": "e6a79999be0e3d4b2ee7ccda8bdf58f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3563, "upload_time": "2013-04-05T13:59:13", "url": "https://files.pythonhosted.org/packages/f3/87/dd71aa31411e43970371cd9a0ef5ace30aa3c0e7dfcf3c917891bec7558c/pyque-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4367a17578f2f9d957a15e943f8ed394", "sha256": "f76f64d8114d54707738133350396d21939bf2e6a7f2cacdd46afac49ce7b988" }, "downloads": -1, "filename": "pyque-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4367a17578f2f9d957a15e943f8ed394", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3785, "upload_time": "2013-04-05T14:01:31", "url": "https://files.pythonhosted.org/packages/45/32/2664d72825a163ecf5c1b739735fd7f8187a57e72245eb0a68b14bdb7f63/pyque-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "6d36b6440daa4edcc012bd59b3b9e4ff", "sha256": "a4ac9a8dfab1c7ce417f19c1faac32a786053e8007c94e4c80980881d41a2831" }, "downloads": -1, "filename": "pyque-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6d36b6440daa4edcc012bd59b3b9e4ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4338, "upload_time": "2013-04-29T15:58:05", "url": "https://files.pythonhosted.org/packages/e3/47/60f564163059991448ed47ac87db067a2360a1bb7bd5dd3a2830a857c62b/pyque-0.2.0.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "4774d1d6e82318eee28ae9cea414628e", "sha256": "ebba692f949845e513181b7652727117c00341f8e7b98af55a0398c7400ccaa5" }, "downloads": -1, "filename": "pyque-0.3.tar.gz", "has_sig": false, "md5_digest": "4774d1d6e82318eee28ae9cea414628e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4525, "upload_time": "2013-05-01T15:04:42", "url": "https://files.pythonhosted.org/packages/75/cf/e53c850d56df72c9e1b64d0ea76240faa36ad4003f2a31f46a63d3c23263/pyque-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "d1ab211b212fec6986c862d51ef4edd3", "sha256": "1de9f750231e4634d3a9f9dcb0ff5b24be28dff51eefa76df2e23fcf45980955" }, "downloads": -1, "filename": "pyque-0.3.1.tar.gz", "has_sig": false, "md5_digest": "d1ab211b212fec6986c862d51ef4edd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5004, "upload_time": "2013-05-03T15:37:54", "url": "https://files.pythonhosted.org/packages/11/7c/29785ccf25bd2ecb55734ee1e46654264e3e7630036039ad6bb441742954/pyque-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "acda1717de2af1524deb196b872ee663", "sha256": "f79efce00da5c92529c22b24aafe27470bd73d0df0d49875866bcd84da2dcf33" }, "downloads": -1, "filename": "pyque-0.3.2.tar.gz", "has_sig": false, "md5_digest": "acda1717de2af1524deb196b872ee663", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5217, "upload_time": "2013-05-03T16:37:06", "url": "https://files.pythonhosted.org/packages/ef/49/0a496afdf1dd6c8a2e7a5c21f51de679db64141c623034fcba874e2cdb12/pyque-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "1aed12f24252ed0dc87c09782436d776", "sha256": "57e7033b86a3fc70c542d569ba4a93c3f1fbc35b74ab219e839395dc92d87a21" }, "downloads": -1, "filename": "pyque-0.3.3.tar.gz", "has_sig": false, "md5_digest": "1aed12f24252ed0dc87c09782436d776", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5460, "upload_time": "2013-05-08T16:12:27", "url": "https://files.pythonhosted.org/packages/07/18/a90c0e451b623d1b4ce972cfc350d44ca4b1a50f2408000432a9fb845615/pyque-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "2d4d6f48297fc92591c7363a0bb20c39", "sha256": "f75ed5748e4c58ece3e62e84f8ef90fb1773a91b58bfb81c27b99d21c8ab48c0" }, "downloads": -1, "filename": "pyque-0.3.4.tar.gz", "has_sig": false, "md5_digest": "2d4d6f48297fc92591c7363a0bb20c39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5475, "upload_time": "2013-05-09T14:46:52", "url": "https://files.pythonhosted.org/packages/35/aa/5907703de18e32c8257429ecdce919b3433f9cf8b8012b9f68f2e4617a41/pyque-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "9d5e38f8a9cb9b72808149126cce59e4", "sha256": "4ba8679c9f83be4e7771417cde83300a8b01ae1d2b27b19f72e63020abca4e90" }, "downloads": -1, "filename": "pyque-0.3.5.tar.gz", "has_sig": false, "md5_digest": "9d5e38f8a9cb9b72808149126cce59e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5495, "upload_time": "2013-05-15T16:16:06", "url": "https://files.pythonhosted.org/packages/f6/04/72bb70e60e74304516ec3ed379241cce1ff0d75c5f14b4044ded4e83d011/pyque-0.3.5.tar.gz" } ], "0.3.6": [ { "comment_text": "", "digests": { "md5": "10c998ffd10cd2656078d4fa3b38c028", "sha256": "d1327c1f509884b3e5a61fc86773f348818d8d15041652cffe2334287a6ae0e9" }, "downloads": -1, "filename": "pyque-0.3.6.tar.gz", "has_sig": false, "md5_digest": "10c998ffd10cd2656078d4fa3b38c028", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5491, "upload_time": "2013-05-15T16:19:28", "url": "https://files.pythonhosted.org/packages/53/21/1781a69f83218e707c7f4451bed38a88b1000fb1708247d031a436cb8681/pyque-0.3.6.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "89019f0f6a265562b5e96a56cf7c74cd", "sha256": "f5000e4fe0ebc9aadc5ba45460c7769b7d3a64b7da936268fbab750b771a648d" }, "downloads": -1, "filename": "pyque-0.4.0.tar.gz", "has_sig": false, "md5_digest": "89019f0f6a265562b5e96a56cf7c74cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5711, "upload_time": "2013-06-10T12:34:29", "url": "https://files.pythonhosted.org/packages/8e/b6/e07855d1746bfff9923efdc812343198a1bbc93dc1534c9d568d8ecf0e17/pyque-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "89019f0f6a265562b5e96a56cf7c74cd", "sha256": "f5000e4fe0ebc9aadc5ba45460c7769b7d3a64b7da936268fbab750b771a648d" }, "downloads": -1, "filename": "pyque-0.4.0.tar.gz", "has_sig": false, "md5_digest": "89019f0f6a265562b5e96a56cf7c74cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5711, "upload_time": "2013-06-10T12:34:29", "url": "https://files.pythonhosted.org/packages/8e/b6/e07855d1746bfff9923efdc812343198a1bbc93dc1534c9d568d8ecf0e17/pyque-0.4.0.tar.gz" } ] }