{ "info": { "author": "Thibault de Balthasar", "author_email": "contact@thibaultdebalt.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Financial and Insurance Industry", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Utilities" ], "description": "# Insight-pyclient\n\nThis package allows to interact with the Bitpay's [Insight-API](https://github.com/bitpay/insight-api). The \ngenerated documentation is available [there](https://tdebalt.github.io/insight-pyclient/).\n\n## Usage\n\nIn order to use the api, an instance of InsightApi must pe instantiated. \nIt takes as parameter the location of the API (with a slash at the end).\n\n`api = InsightApi('http://local.lan/api')`\n\nThe module allows (or will) access to all the APIs methods. For more \ndetails about the content or whatever, you can go see the origin\ndocumentation. The code is also documented so you can go there for \nmore details. The following content will just list the prototypes\n callable methods.\n\n### Block\n\n* `Block get_block(Sting blockHash)`\n* `String get_block_hash(int blockHeight)`\n* `String get_raw_block(String blockHash)`\n* `[Block], length, BlockSummaryPagination get_block_summaries(int maxNumber, String date)`\n\n### Transaction\n\n* `Transaction get_transaction(String transaction_hash)`\n* `String get_raw_transaction(String transaction hash)`\n\n### Address\n\n* `Address get_address(String address, Bool no_transactions=False, int transaction_from=None, int transaction_to=None)`\n* `Int/Float get_address_balance(String address, Boolean inSatoshis=False)`\n* `Int/Float get_address_total_received(String address, Boolean inSatoshis=False)`\n* `Int/Float get_address_total_sent(String address, Boolean inSatoshis=False)`\n* `Int/Float get_address_unconfirmed_balance(String address, Boolean inSatoshis=False)`\n* `[UnspentOutput] get_unsent_output_for_many(String[] addresses)`\n* `[UnspentOutput] get_unsent_outputs(String address)`\n* `[Transaction], totalReturned, returnedFrom, returnedTo get_transaction_for_addresses(String[] addresses, int transaction_from=None, int transaction_to=None)`\n* `[Transaction] get_all_transactions_for_address(String address)`\n\n## Advances uses\n\nWhile using the package, you may want to customize some things. There \nare multiple attributes that allows you to do that. To use it, you may\nchange some values of your InsightApi instance.\n\n### General\n\n* `timeout`: To define how many time it is going to take before the\nrequest timeout. Is 20 seconds by default.\n\n### Authentication\n\nThe basic and digest authentication are supported. If both are activated\nthe script will prioritize the digest authentication.\n\n* `basicAuth`: Activates the basic authentication, false by default\n* `digestAuth`: Activates the digest authentication, false by default\n* `userName`: Must be set if the authentication is enabled\n* `password`: Must be set if the authentication is enabled\n\n### Try hard mode\n\nSometimes, having an answer is really important. In this purpose, the \ntry mode allows to continue making requests to the service until a valid \nreturn code is given. Each time the request fails, the time to wait \nbefore making a request again is configurable.\n\n* `try_hard`: False by default, allows to enable or disable the mode\n* `time_multiplier`: Each time the request fails, the time to wait will\n be multiplicated by this value\n* `max_wait_time`: The maximum time (in seconds) to wait between two \nrequests\n* `verbose_try_hard`: If set to True, will print the exception\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tdebalt/insight-pyclient", "keywords": "bitpay bitcoin api", "license": "GNU GENERAL PUBLIC LICENSE Version 3", "maintainer": "", "maintainer_email": "", "name": "insight_pyclient", "package_url": "https://pypi.org/project/insight_pyclient/", "platform": "", "project_url": "https://pypi.org/project/insight_pyclient/", "project_urls": { "Homepage": "https://github.com/tdebalt/insight-pyclient" }, "release_url": "https://pypi.org/project/insight_pyclient/0.1.4/", "requires_dist": null, "requires_python": "", "summary": "A client for Bitpay Insight API", "version": "0.1.4" }, "last_serial": 2239564, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "002a2d5941b2c85e667fbccbd92630ff", "sha256": "8f2ca41e2ca82d6bfae3b8d9c02a0847f9565969a78468eebd9ef030f1151c43" }, "downloads": -1, "filename": "insight_pyclient-0.1.tar.gz", "has_sig": false, "md5_digest": "002a2d5941b2c85e667fbccbd92630ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7959, "upload_time": "2016-07-19T17:27:43", "url": "https://files.pythonhosted.org/packages/98/26/3097cfe8e54f061126fd01a108254484b0041abdee3808afa1887c055f6c/insight_pyclient-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c59d1252043c58a2da10c42dcfd861da", "sha256": "aa5f1d9c0cef68b451fff012695bdde406bf69f5cd5f91c122b96d729d45a9fb" }, "downloads": -1, "filename": "insight_pyclient-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "c59d1252043c58a2da10c42dcfd861da", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 13167, "upload_time": "2016-07-19T17:57:05", "url": "https://files.pythonhosted.org/packages/56/27/4210b108c84f9ffea96c4d3d4d7ec5d156c1e49ac0a9c570ad798ee4e9b9/insight_pyclient-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6ef5a4131f2b557f380a6b841d46a684", "sha256": "b4c61db2a10539563cce1c7f0a5696ad77a52e872382cc1a2c9cf1f4d915edd6" }, "downloads": -1, "filename": "insight_pyclient-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6ef5a4131f2b557f380a6b841d46a684", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7958, "upload_time": "2016-07-19T17:57:08", "url": "https://files.pythonhosted.org/packages/a7/4c/ac99fcde92a866ba882ec7e0bb40d291d01ba29ab53fa06f409277c031be/insight_pyclient-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "6b2ca0fb2cf879716c7e774f5a7432de", "sha256": "80764715e384bef70cb33b5f9e25036dac05cf788844164283cf1910b9a237ad" }, "downloads": -1, "filename": "insight_pyclient-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "6b2ca0fb2cf879716c7e774f5a7432de", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 13166, "upload_time": "2016-07-19T17:59:02", "url": "https://files.pythonhosted.org/packages/cd/69/c4c1b918c4abfc5b6762ecb3dc24bffa2da4ebbdab982f096c71c7e91a23/insight_pyclient-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "88325edf4e64eeb1689bc01177d259ee", "sha256": "9134cfd7a1803ddd4fe97c89f327487d4b8d51ee4235e8fa917019c92555fa9c" }, "downloads": -1, "filename": "insight_pyclient-0.1.2.tar.gz", "has_sig": false, "md5_digest": "88325edf4e64eeb1689bc01177d259ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7965, "upload_time": "2016-07-19T17:59:05", "url": "https://files.pythonhosted.org/packages/1a/1b/8cbea3f4f8046f308c6e4f871eb17986b1d5b922119d8603dcfe5994b07d/insight_pyclient-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "8c52d343f7079fcd1432ef5f6bdc58ab", "sha256": "f7d81defd334a434a2f2980f930701f0e6c13fa6a8be86c69f9fb64941ab17a1" }, "downloads": -1, "filename": "insight_pyclient-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "8c52d343f7079fcd1432ef5f6bdc58ab", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 13185, "upload_time": "2016-07-20T09:45:11", "url": "https://files.pythonhosted.org/packages/70/df/2b8f0d9d052787870efec03706be34caa1f3126261392cab69c7e97dc7b7/insight_pyclient-0.1.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4c6f414c86172f9c6eb5af5a9c64d938", "sha256": "71689939fd5ba95d40d1a869d9c1de30459b7a73b654935e6c6543f50d5800ca" }, "downloads": -1, "filename": "insight_pyclient-0.1.3.tar.gz", "has_sig": false, "md5_digest": "4c6f414c86172f9c6eb5af5a9c64d938", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7944, "upload_time": "2016-07-20T09:45:13", "url": "https://files.pythonhosted.org/packages/f6/5c/f3e08c425721731608cdba2ffc0591d3ea0f9eaea6401e1892083bceb525/insight_pyclient-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "ce4a89fa01783671fe57dd03cf8d6e3d", "sha256": "759ed7de278582cf76278588542dcbf44f216acad13ae3c36d84816fd2d5fc2e" }, "downloads": -1, "filename": "insight_pyclient-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "ce4a89fa01783671fe57dd03cf8d6e3d", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 13448, "upload_time": "2016-07-23T10:23:46", "url": "https://files.pythonhosted.org/packages/d3/ba/27d30930b7c9a67af6956563694418457ed0a1aa4a445ef58f4e212f2fe9/insight_pyclient-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b2eedf0b6fce9704b2b4e9f9f6325175", "sha256": "c7eb5099875773fe28881c1bfb1badb1954055fff4824d960b8cc5aabf552b6b" }, "downloads": -1, "filename": "insight_pyclient-0.1.4.tar.gz", "has_sig": false, "md5_digest": "b2eedf0b6fce9704b2b4e9f9f6325175", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8180, "upload_time": "2016-07-23T10:23:49", "url": "https://files.pythonhosted.org/packages/b9/67/9adf1b38ba1c407647bc7a65e8e06a93df154798d97b424616b86ba37db4/insight_pyclient-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ce4a89fa01783671fe57dd03cf8d6e3d", "sha256": "759ed7de278582cf76278588542dcbf44f216acad13ae3c36d84816fd2d5fc2e" }, "downloads": -1, "filename": "insight_pyclient-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "ce4a89fa01783671fe57dd03cf8d6e3d", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 13448, "upload_time": "2016-07-23T10:23:46", "url": "https://files.pythonhosted.org/packages/d3/ba/27d30930b7c9a67af6956563694418457ed0a1aa4a445ef58f4e212f2fe9/insight_pyclient-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b2eedf0b6fce9704b2b4e9f9f6325175", "sha256": "c7eb5099875773fe28881c1bfb1badb1954055fff4824d960b8cc5aabf552b6b" }, "downloads": -1, "filename": "insight_pyclient-0.1.4.tar.gz", "has_sig": false, "md5_digest": "b2eedf0b6fce9704b2b4e9f9f6325175", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8180, "upload_time": "2016-07-23T10:23:49", "url": "https://files.pythonhosted.org/packages/b9/67/9adf1b38ba1c407647bc7a65e8e06a93df154798d97b424616b86ba37db4/insight_pyclient-0.1.4.tar.gz" } ] }