{ "info": { "author": "tanghd", "author_email": "hand515@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "#python-thrift-pool\r\n\r\n#base on\uff1a\r\n* python2.7\r\n* thrift 0.9.2 thrift lib\r\n\r\n#change 2014-12-05 :\r\n* dependency thrift 0.9.2 while using thrift-TMultiplexedProtocol\r\n\r\n#usage\r\n\r\n##install \r\n\tpip install thriftpl\r\n\r\n## using\r\nlook at tests/test.py\r\n
\r\n\r\n# -*- coding: utf-8 -*-\r\n\r\nimport os,sys\r\n\r\nfrom thriftpl.client import ThriftClientPool,ThriftClientConfig,HostAndPort,ThriftPoolConfig\r\nfrom test import TestService\r\n\r\naddress = HostAndPort(\"127.0.0.1\",9090)\r\npoolConfig = ThriftPoolConfig(minPoolSize=1,maxPoolSize=10,maxWait=500)\r\nclientConfig = ThriftClientConfig(clientInterface=TestService.Client)\r\npool = ThriftClientPool(clientConfig,poolConfig,address)\r\n\r\nclient = pool.getClient()\r\nprint client.test(\"123\")\r\nprint client.test(\"1234\")\r\nprint client.test(\"1235\")\r\n\r\nprint pool.getClient().test(\"abc\")\r\nprint pool.getClient().test(\"abcd\")\r\nprint pool.getClient().test(\"abce\")\r\n\r\n",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "http://git.oschina.net/hand515/python-thrift-pool",
"keywords": null,
"license": "LGPL",
"maintainer": null,
"maintainer_email": null,
"name": "thriftpl",
"package_url": "https://pypi.org/project/thriftpl/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/thriftpl/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "http://git.oschina.net/hand515/python-thrift-pool"
},
"release_url": "https://pypi.org/project/thriftpl/0.2.0/",
"requires_dist": null,
"requires_python": null,
"summary": "a thrift client pool for python",
"version": "0.2.0"
},
"last_serial": 1561301,
"releases": {
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "7e84b93be12ff7347201e5b323009556",
"sha256": "09d0c32186294a5960d28b2f973b571c292ab78ff861c2016255ef0570d4f39e"
},
"downloads": -1,
"filename": "thriftpl-0.1.0.zip",
"has_sig": false,
"md5_digest": "7e84b93be12ff7347201e5b323009556",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7166,
"upload_time": "2015-05-21T14:58:11",
"url": "https://files.pythonhosted.org/packages/47/66/4b1a5f1a92c8a9c21748674bc6bab9db7d841c2879e08aedabee3a33bfa6/thriftpl-0.1.0.zip"
}
],
"0.2.0": [
{
"comment_text": "",
"digests": {
"md5": "8ca20d9bb4a21473b736267b6631b7c2",
"sha256": "6e6fb0f5491933039b635e86c35d1a8fdb4fc0ebae5dfd536ba386026a74ff20"
},
"downloads": -1,
"filename": "thriftpl-0.2.0.zip",
"has_sig": false,
"md5_digest": "8ca20d9bb4a21473b736267b6631b7c2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8184,
"upload_time": "2015-05-25T10:38:28",
"url": "https://files.pythonhosted.org/packages/12/a3/4a2d2a633d2389b37a3fab015a1655bd7a36119adc6d1d2276e61fad33a6/thriftpl-0.2.0.zip"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "8ca20d9bb4a21473b736267b6631b7c2",
"sha256": "6e6fb0f5491933039b635e86c35d1a8fdb4fc0ebae5dfd536ba386026a74ff20"
},
"downloads": -1,
"filename": "thriftpl-0.2.0.zip",
"has_sig": false,
"md5_digest": "8ca20d9bb4a21473b736267b6631b7c2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8184,
"upload_time": "2015-05-25T10:38:28",
"url": "https://files.pythonhosted.org/packages/12/a3/4a2d2a633d2389b37a3fab015a1655bd7a36119adc6d1d2276e61fad33a6/thriftpl-0.2.0.zip"
}
]
}