{ "info": { "author": "Jeff Balogh and Josh", "author_email": "josh@devops.center", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Environment :: Web Environment :: Mozilla", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "``standby`` provides a Django database router useful in master-standby deployments.\n\n\nMasterStandbyRouter\n-----------------\n\nWith ``standbydb.MasterStandbyRouter`` all read queries will go to a standby\ndatabase; all inserts, updates, and deletes will go to the ``default``\ndatabase.\n\nFirst, define ``STANDBY_DATABASES`` in your settings. It should be a list of\ndatabase aliases that can be found in ``DATABASES``::\n\n DATABASES = {\n 'default': {...},\n 'standby-1': {...},\n 'standby-2': {...},\n }\n STANDBY_DATABASES = ['standby-1', 'standby-2']\n\nThen put ``standbydb.MasterStandbyRouter`` into DATABASE_ROUTERS::\n\n DATABASE_ROUTERS = ('standbydb.MasterStandbyRouter',)\n\nThe standby databases will be chosen in round-robin fashion.\n\nIf you want to get a connection to a standby in your app, use\n``standbydb.get_standby``::\n\n from django.db import connections\n import standbydb\n\n connection = connections[standbydb.get_standby()]\n\n\nRunning the Tests\n-----------------\n\nTo run the tests, you'll need to install the development requirements::\n\n pip install -r requirements.txt\n ./run.sh test", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/devopscenter/django-standby-router", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-standbydb-router", "package_url": "https://pypi.org/project/django-standbydb-router/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-standbydb-router/", "project_urls": { "Homepage": "https://github.com/devopscenter/django-standby-router" }, "release_url": "https://pypi.org/project/django-standbydb-router/0.2/", "requires_dist": null, "requires_python": null, "summary": "Round-robin standbydb router for Django.", "version": "0.2" }, "last_serial": 1569345, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "bc4b5bd5f23ceebdf5dbaa515cce562b", "sha256": "2b40dbcb66e687e32a8555d6a1be62864d6ae4074560c0acb12a3a83e81e267a" }, "downloads": -1, "filename": "django-standbydb-router-0.1.tar.gz", "has_sig": false, "md5_digest": "bc4b5bd5f23ceebdf5dbaa515cce562b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3616, "upload_time": "2015-05-30T21:16:45", "url": "https://files.pythonhosted.org/packages/14/21/f392314d91918842f7e309a619a2274fbc58a80d0018b7ab81a293d6d971/django-standbydb-router-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "13cc5f817ce99579ef5fd4f2a0b83652", "sha256": "77d425368a9f328701a5757371e9666cc63f2c0e2bb8f8f88177a311ab0d2cb6" }, "downloads": -1, "filename": "django-standbydb-router-0.2.tar.gz", "has_sig": false, "md5_digest": "13cc5f817ce99579ef5fd4f2a0b83652", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3586, "upload_time": "2015-05-30T21:21:05", "url": "https://files.pythonhosted.org/packages/e2/fd/a035988d77eadb76043bbeb0e64a0c1903ca88ce04dfe67e427b599ae0b2/django-standbydb-router-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "13cc5f817ce99579ef5fd4f2a0b83652", "sha256": "77d425368a9f328701a5757371e9666cc63f2c0e2bb8f8f88177a311ab0d2cb6" }, "downloads": -1, "filename": "django-standbydb-router-0.2.tar.gz", "has_sig": false, "md5_digest": "13cc5f817ce99579ef5fd4f2a0b83652", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3586, "upload_time": "2015-05-30T21:21:05", "url": "https://files.pythonhosted.org/packages/e2/fd/a035988d77eadb76043bbeb0e64a0c1903ca88ce04dfe67e427b599ae0b2/django-standbydb-router-0.2.tar.gz" } ] }