{ "info": { "author": "zhouyl", "author_email": "81438567@qq.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "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", "Programming Language :: Python :: Implementation", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "ConnectionPool\n##############\n\nThread-safe connection pool for python\n\nExamples\n========\n\nCreate a pool\n---------------\n\n.. code-block:: python\n\n import memcache\n from connection_pool import ConnectionPool\n\n # via create function\n def create_memcache_client():\n return memcache.Client(['127.0.0.1:11211'])\n\n pool = ConnectionPool(create=create_memcache_client,\n max_size=10, max_usage=10000, idle=60, ttl=120)\n\n # via lambda\n pool = ConnectionPool(create=lambda: memcache.Client(['127.0.0.1:11211']),\n max_size=10)\n\n # via functools.partial\n from functools import partial\n pool = ConnectionPool(create=partial(memcache.Client, ['127.0.0.1:11211']),\n max_size=10)\n\n # using a connection\n with pool.item() as memcache:\n memcache.set('foo', 'bar')\n\nLicense\n=======\n\nhe MIT License (MIT). Please see License File for more information.\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/zhouyl/ConnectionPool", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "connection-pool", "package_url": "https://pypi.org/project/connection-pool/", "platform": "", "project_url": "https://pypi.org/project/connection-pool/", "project_urls": { "Homepage": "https://github.com/zhouyl/ConnectionPool" }, "release_url": "https://pypi.org/project/connection-pool/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "thread safe connection pool", "version": "0.0.2" }, "last_serial": 3948502, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "0e2214de0adcf082a2e47d0c6c75b814", "sha256": "42abeaf5f7e31b20d462ba2470ec75d2643238ad1bb3a651edd2250ff80db2ce" }, "downloads": -1, "filename": "connection_pool-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0e2214de0adcf082a2e47d0c6c75b814", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 1614, "upload_time": "2018-06-08T06:45:16", "url": "https://files.pythonhosted.org/packages/70/8f/80468ace3f04dc0c5f7b2f04c2b4dbc6a54f2cbb38ce1037b997da67f7b9/connection_pool-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f94a044738e169e48329831372b74fe5", "sha256": "fb80382c6edf1755f4f02b8db7b4e25b33cb3c613b3de69fbae76ad6ec8134a1" }, "downloads": -1, "filename": "connection_pool-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f94a044738e169e48329831372b74fe5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1476, "upload_time": "2018-06-08T06:45:17", "url": "https://files.pythonhosted.org/packages/0e/e8/57b0c8a0356bfb97b3d9da340fd94e017582c4531f20a5e3102c2c43dc1b/connection_pool-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "0cf5d3a450c7f33714c7e74dab79764e", "sha256": "b20648cb502cd9ccce0d975660e66a2716828ab5d483bb3a6b1c3862d9e20f58" }, "downloads": -1, "filename": "connection_pool-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0cf5d3a450c7f33714c7e74dab79764e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3737, "upload_time": "2018-06-11T00:55:22", "url": "https://files.pythonhosted.org/packages/35/9d/0b32b82ec09b709014e55caedab71351dff09c723d962e8d5ce4c81c5802/connection_pool-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f68c4f1b11339fcae4b985eef03d0c8d", "sha256": "651d21707c8d2b257899901d7cff62af132f57d05cd264897fcd1da89f2e026e" }, "downloads": -1, "filename": "connection_pool-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f68c4f1b11339fcae4b985eef03d0c8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3433, "upload_time": "2018-06-11T00:55:23", "url": "https://files.pythonhosted.org/packages/1f/4e/8793aa72c98f77a8f93730c68771974920eed80c9f50864d5782000a4ac5/connection_pool-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0cf5d3a450c7f33714c7e74dab79764e", "sha256": "b20648cb502cd9ccce0d975660e66a2716828ab5d483bb3a6b1c3862d9e20f58" }, "downloads": -1, "filename": "connection_pool-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0cf5d3a450c7f33714c7e74dab79764e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3737, "upload_time": "2018-06-11T00:55:22", "url": "https://files.pythonhosted.org/packages/35/9d/0b32b82ec09b709014e55caedab71351dff09c723d962e8d5ce4c81c5802/connection_pool-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f68c4f1b11339fcae4b985eef03d0c8d", "sha256": "651d21707c8d2b257899901d7cff62af132f57d05cd264897fcd1da89f2e026e" }, "downloads": -1, "filename": "connection_pool-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f68c4f1b11339fcae4b985eef03d0c8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3433, "upload_time": "2018-06-11T00:55:23", "url": "https://files.pythonhosted.org/packages/1f/4e/8793aa72c98f77a8f93730c68771974920eed80c9f50864d5782000a4ac5/connection_pool-0.0.2.tar.gz" } ] }