{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "\nThis project was based on `django-postgrespool `_ + `django-postgrespool2(forked) `_ (both are not working in my production env) and `django-db-pool(outdated as fck) `_.\n\n\nDjango-DBPool\n=============\n\nThis is a simple Postgres Connection Pooling backed for Django 1.4+ (possibly, haven't checked), powered by SQLAlchemy and psycopg2.\n\n\nUsage\n-----\n\nUsing Django-PostgresPool is simple, just set ``django_postgrespool`` as your connection engine:\n\n::\n\n DATABASES = {\n 'default': {\n 'ENGINE': 'django_postgrespool'\n\n\nIf you're using the `dj-database-url `_ module:\n\n::\n\n import dj_database_url\n\n DATABASES = {'default': dj_database_url.config(engine='django_postgrespool')}\n\nIf you're using `south `_:\n\n::\n\n SOUTH_DATABASE_ADAPTERS = {\n 'default': 'south.db.postgresql_psycopg2'\n }\n\n\nEverything should work as expected.\n\n\nInstallation\n------------\n\nInstalling Django-PostgresPool is simple, with pip::\n\n $ pip install django-dbpool\n\nConfiguration\n-------------\n\nOptionally, you can provide additional options to pass to SQLAlchemy's pool creation::\n\n DATABASE_POOL_ARGS = {\n 'max_overflow': 10,\n 'pool_size': 5,\n 'recycle': 300\n }\n\nHere's a basic explanation of two of these options:\n\n* **pool_size** \u2013 The *minimum* number of connections to maintain in the pool.\n* **max_overflow** \u2013 The maximum *overflow* size of the pool. This is not the maximum size of the pool.\n\nThe total number of \"sleeping\" connections the pool will allow is ``pool_size``.\nThe total simultaneous connections the pool will allow is ``pool_size + max_overflow``.\n\nAs an example, databases in the `Heroku Postgres `_ starter tier have a maximum connection limit of 20. In that case your ``pool_size`` and ``max_overflow``, when combined, should not exceed 20.\n\nCheck out the official `SQLAlchemy Connection Pooling `_ docs to learn more about the optoins that can be defined in ``DATABASE_POOL_ARGS``.\n\nDjango 1.3 Support\n------------------\n\ndjango-postgrespool currently supports Django 1.4 and greater. See `this ticket `_ for 1.3 support.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/chrysls/django-dbpool", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-dbpool", "package_url": "https://pypi.org/project/django-dbpool/", "platform": "", "project_url": "https://pypi.org/project/django-dbpool/", "project_urls": { "Homepage": "https://github.com/chrysls/django-dbpool" }, "release_url": "https://pypi.org/project/django-dbpool/0.1.0/", "requires_dist": [ "psycopg2", "sqlalchemy" ], "requires_python": "", "summary": "Postgresql + PostGIS Connection Pooling for Django.", "version": "0.1.0" }, "last_serial": 4264785, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "54067440481a7337a079f3f737887076", "sha256": "eb2822a85fe01a13165fb428c3fa1e0f55e62afd6662c03a19f98cddb7307f6c" }, "downloads": -1, "filename": "django_dbpool-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "54067440481a7337a079f3f737887076", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5999, "upload_time": "2018-09-12T12:22:02", "url": "https://files.pythonhosted.org/packages/ab/ed/535cc484fb19ff95b0f11301753b7a93669384d40187d1d818b6a5dcc2cd/django_dbpool-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5574037c059c22f10d9dfa22f7bee3e", "sha256": "83e56652bb040950673b51911fae8b136b63c1fd2374ec954dc7b6c9743beda7" }, "downloads": -1, "filename": "django-dbpool-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e5574037c059c22f10d9dfa22f7bee3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4945, "upload_time": "2018-09-12T12:22:03", "url": "https://files.pythonhosted.org/packages/9d/c4/0e2dda5d4851833b0fc6fdc74995c3592b0e49f951958751e9583c67d6e9/django-dbpool-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "54067440481a7337a079f3f737887076", "sha256": "eb2822a85fe01a13165fb428c3fa1e0f55e62afd6662c03a19f98cddb7307f6c" }, "downloads": -1, "filename": "django_dbpool-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "54067440481a7337a079f3f737887076", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5999, "upload_time": "2018-09-12T12:22:02", "url": "https://files.pythonhosted.org/packages/ab/ed/535cc484fb19ff95b0f11301753b7a93669384d40187d1d818b6a5dcc2cd/django_dbpool-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5574037c059c22f10d9dfa22f7bee3e", "sha256": "83e56652bb040950673b51911fae8b136b63c1fd2374ec954dc7b6c9743beda7" }, "downloads": -1, "filename": "django-dbpool-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e5574037c059c22f10d9dfa22f7bee3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4945, "upload_time": "2018-09-12T12:22:03", "url": "https://files.pythonhosted.org/packages/9d/c4/0e2dda5d4851833b0fc6fdc74995c3592b0e49f951958751e9583c67d6e9/django-dbpool-0.1.0.tar.gz" } ] }