{ "info": { "author": "Eleme Lab", "author_email": "imaralla@icloud.com", "bugtrack_url": null, "classifiers": [], "description": "takumi_client\n=============\n\n.. image:: https://travis-ci.org/elemepi/takumi-client.svg?branch=master\n :target: https://travis-ci.org/elemepi/takumi-client\n\n\nThrift client pool for Takumi.\n\nInstall\n-------\n\n.. code:: bash\n\n $ pip install takumi-client\n\nUsage\n-----\n\nThis module relies on `takumi-config `_ for settings.\n\n- ``CLIENT_SETTINGS``\n\n * service: required, service name defined in thrift file\n * thrift_file: required, existing thrift file path\n * pool_size: optional, connection pool size, default 30\n * timeout: optional, connection timeout, default 30s\n * check_time: optional, time interval for checking failed connections, default 10s\n * hosts: optional, a list of hosts: [('hostname', port)]\n * extra args: vary for different hosts extensions\n\n\nExample settings:\n\n.. code:: python\n\n CLIENT_SETTINGS = {\n 'demo': {\n 'service': 'PingService',\n 'thrift_file': 'ping.thrift',\n 'hosts': [\n ('localhost', 1990),\n ('localhost', 8010),\n ('localhost', 1890)\n ]\n }\n }\n\nTo get a pool:\n\n.. code:: python\n\n from takumi_client import clients\n\n pool = clients['demo']\n\n\nTo invoke an api:\n\n.. code:: python\n\n with pool.client_ctx() as c:\n c.ping()", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/elemepi/takumi-client", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "takumi-client", "package_url": "https://pypi.org/project/takumi-client/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/takumi-client/", "project_urls": { "Homepage": "https://github.com/elemepi/takumi-client" }, "release_url": "https://pypi.org/project/takumi-client/0.1.3/", "requires_dist": [ "takumi-ext", "takumi-config", "takumi-thrift", "thriftpy", "schema" ], "requires_python": "", "summary": "Thrift client pool for Takumi", "version": "0.1.3" }, "last_serial": 2803529, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d70b3caac5b4d0da3f307c28d0e62080", "sha256": "1d49433d08c2c5580899f89aa2237ac727c56911657563ad7055fd5a8e28c1ce" }, "downloads": -1, "filename": "takumi_client-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d70b3caac5b4d0da3f307c28d0e62080", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8595, "upload_time": "2017-03-10T08:10:00", "url": "https://files.pythonhosted.org/packages/6a/80/1a9ba33f39e62533aa92ea102e6bebc6db412d97d64f43d3e71019ea8546/takumi_client-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9ce6b5769273eaeee313ca83b401f689", "sha256": "c9f2873769d8d050a830650d6b0fb83210c7411e522824f4a92e52fd8c0a6365" }, "downloads": -1, "filename": "takumi_client-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9ce6b5769273eaeee313ca83b401f689", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5159, "upload_time": "2017-03-10T08:10:01", "url": "https://files.pythonhosted.org/packages/06/aa/57d1a542ebb0e71f5cb9b2e96cb86d3a4e9f9550e17d890ad17ea69439d9/takumi_client-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "5a8bc8ec9a23dd78aad5308a83cd9242", "sha256": "31b48ffda8f742cf8f082a2576b3826e3159986b8a16a34cd09900610ac2061c" }, "downloads": -1, "filename": "takumi_client-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5a8bc8ec9a23dd78aad5308a83cd9242", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6111, "upload_time": "2017-03-14T08:32:23", "url": "https://files.pythonhosted.org/packages/91/47/1e16c10178b1ce0bb3ce3c1e6b28caff782f0b60697ad5802a89407ea7a0/takumi_client-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "83c6a7b3a5d8a45c26c7229de83f76ed", "sha256": "d986dec5de16cf20dfc537287e88ce637bff98ae800f5b454466e546ccb5e279" }, "downloads": -1, "filename": "takumi_client-0.1.1.tar.gz", "has_sig": false, "md5_digest": "83c6a7b3a5d8a45c26c7229de83f76ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4016, "upload_time": "2017-03-14T08:32:27", "url": "https://files.pythonhosted.org/packages/7d/17/fb676a9b85d0429a92b1b752ec505c496461c68f137d56ca14207733fa84/takumi_client-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "008f0a9ca734aa4725d89b1b0835d4aa", "sha256": "03dabb813b049fb0c1718a532b3ea9bab192c3a7c9570e67e9f194285d4f709c" }, "downloads": -1, "filename": "takumi_client-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "008f0a9ca734aa4725d89b1b0835d4aa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6937, "upload_time": "2017-04-12T09:42:52", "url": "https://files.pythonhosted.org/packages/2d/95/bbd2c99e973ce7c5104d54cbaecffc629be811d10c88f251d8404d6b70f9/takumi_client-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3d2a912ea835c40f4930a8307a3086b2", "sha256": "a8f6e9e26dda703cdf716edcd659aa945c5da41a25278591f3bd995b5eb926fc" }, "downloads": -1, "filename": "takumi_client-0.1.2.tar.gz", "has_sig": false, "md5_digest": "3d2a912ea835c40f4930a8307a3086b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4481, "upload_time": "2017-04-12T09:42:54", "url": "https://files.pythonhosted.org/packages/09/d3/052cb43af98f0281917f7915da5d24798b6489d060dc5ec4d533565b9734/takumi_client-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "1673eedd68692e3944e0ad268dd32ee4", "sha256": "12300842892fb8cd4bde58cda4406a5547a7ed8e62fc91b0898b6d3fc5b8bdf8" }, "downloads": -1, "filename": "takumi_client-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1673eedd68692e3944e0ad268dd32ee4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7200, "upload_time": "2017-04-14T10:39:45", "url": "https://files.pythonhosted.org/packages/5a/e6/3a826c88bc80dfab6cea8b7ba891f7c6ac4a697e6fdfee26b08327566a4f/takumi_client-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "871b79d3ddc11ecba1df6c0e26a4048f", "sha256": "474644739d909c1b0cfff22c4192a364b2cce7b277c29beff0600243e2d5a9c4" }, "downloads": -1, "filename": "takumi_client-0.1.3.tar.gz", "has_sig": false, "md5_digest": "871b79d3ddc11ecba1df6c0e26a4048f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4784, "upload_time": "2017-04-14T10:39:47", "url": "https://files.pythonhosted.org/packages/23/61/3c27e6aa9edb0f11d3ba4d6001d168b3f9b332153a5e69dfebf7d1b16a5c/takumi_client-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1673eedd68692e3944e0ad268dd32ee4", "sha256": "12300842892fb8cd4bde58cda4406a5547a7ed8e62fc91b0898b6d3fc5b8bdf8" }, "downloads": -1, "filename": "takumi_client-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1673eedd68692e3944e0ad268dd32ee4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7200, "upload_time": "2017-04-14T10:39:45", "url": "https://files.pythonhosted.org/packages/5a/e6/3a826c88bc80dfab6cea8b7ba891f7c6ac4a697e6fdfee26b08327566a4f/takumi_client-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "871b79d3ddc11ecba1df6c0e26a4048f", "sha256": "474644739d909c1b0cfff22c4192a364b2cce7b277c29beff0600243e2d5a9c4" }, "downloads": -1, "filename": "takumi_client-0.1.3.tar.gz", "has_sig": false, "md5_digest": "871b79d3ddc11ecba1df6c0e26a4048f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4784, "upload_time": "2017-04-14T10:39:47", "url": "https://files.pythonhosted.org/packages/23/61/3c27e6aa9edb0f11d3ba4d6001d168b3f9b332153a5e69dfebf7d1b16a5c/takumi_client-0.1.3.tar.gz" } ] }