{ "info": { "author": "lcd1232", "author_email": "malexey1984@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Database" ], "description": ".. image:: https://badge.fury.io/py/django-postgrespool2.svg\n :target: https://badge.fury.io/py/django-postgrespool2\n\nDjango-PostgresPool2\n====================\n\nThis is a fork of original `django-postgrespool `_.\n\n\nInstallation\n------------\n\nInstalling Django-PostgresPool2 is simple, with pip::\n\n $ pip install django-postgrespool2\n\n\nUsage\n-----\n\nUsing Django-PostgresPool2 is simple, just set ``django_postgrespool2`` as your connection engine:\n\n::\n\n DATABASES = {\n 'default': {\n 'ENGINE': 'django_postgrespool2'\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_postgrespool2')}\n\n\nEverything should work as expected.\n\nConfiguration\n-------------\n\nOptionally, you can provide pool class to construct the pool (default ``sqlalchemy.pool.QueuePool``) or additional options to pass to SQLAlchemy's pool creation.\n\n::\n\n DATABASE_POOL_CLASS = 'sqlalchemy.pool.QueuePool'\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``.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lcd1232/django-postgrespool2", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-postgrespool2", "package_url": "https://pypi.org/project/django-postgrespool2/", "platform": "", "project_url": "https://pypi.org/project/django-postgrespool2/", "project_urls": { "Homepage": "https://github.com/lcd1232/django-postgrespool2" }, "release_url": "https://pypi.org/project/django-postgrespool2/1.0.0/", "requires_dist": null, "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "Postgres Connection Pooling for Django.", "version": "1.0.0" }, "last_serial": 5805412, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "4d14927ee2d865bf93d126982afa5567", "sha256": "55de48c00a22b091c50502b3b1b82424c859b828c3561543a1b0635306c0c151" }, "downloads": -1, "filename": "django_postgrespool2-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4d14927ee2d865bf93d126982afa5567", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6147, "upload_time": "2017-09-14T11:47:08", "url": "https://files.pythonhosted.org/packages/d0/40/2aa06d03a08a3eaabc370aaf8749de382422e2782e3f2192bd8fcd52b3ad/django_postgrespool2-0.1.0-py2.py3-none-any.whl" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "73f4ac04fe45db3598509444d0af24cb", "sha256": "1203da9163cf1af22179379465095a827dce4f7b5eeb8dea370ae665bf668b9c" }, "downloads": -1, "filename": "django-postgrespool2-0.2.0.tar.gz", "has_sig": false, "md5_digest": "73f4ac04fe45db3598509444d0af24cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4963, "upload_time": "2018-02-13T13:53:15", "url": "https://files.pythonhosted.org/packages/a5/58/03dca1ad3f9692440f2a7f1a7ce5f2b15faf919a453ef72192496e539dee/django-postgrespool2-0.2.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "a161030fefbaf583f596839d8a3a4041", "sha256": "c7686236bf7e110acaa4a3d80239e56cd0624755a13e280a55a5bf55009fa1e8" }, "downloads": -1, "filename": "django-postgrespool2-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a161030fefbaf583f596839d8a3a4041", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 7374, "upload_time": "2019-09-09T20:19:56", "url": "https://files.pythonhosted.org/packages/85/11/16ee1747583451cd10d8db5af45e69cea471329f2d4e9fa03d9f625da128/django-postgrespool2-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a161030fefbaf583f596839d8a3a4041", "sha256": "c7686236bf7e110acaa4a3d80239e56cd0624755a13e280a55a5bf55009fa1e8" }, "downloads": -1, "filename": "django-postgrespool2-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a161030fefbaf583f596839d8a3a4041", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 7374, "upload_time": "2019-09-09T20:19:56", "url": "https://files.pythonhosted.org/packages/85/11/16ee1747583451cd10d8db5af45e69cea471329f2d4e9fa03d9f625da128/django-postgrespool2-1.0.0.tar.gz" } ] }