{"id":13465915,"url":"https://github.com/blocktrail/blocktrail-sdk-python","last_synced_at":"2026-03-16T08:34:07.731Z","repository":{"id":21578132,"uuid":"24898059","full_name":"blocktrail/blocktrail-sdk-python","owner":"blocktrail","description":"Python BlockTrail's Developer Friendly SDK for the BlockTrail API","archived":false,"fork":false,"pushed_at":"2018-02-27T07:51:30.000Z","size":444,"stargazers_count":22,"open_issues_count":7,"forks_count":27,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-25T04:26:09.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blocktrail.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-07T15:49:45.000Z","updated_at":"2023-07-18T04:14:06.000Z","dependencies_parsed_at":"2022-08-21T18:20:43.377Z","dependency_job_id":null,"html_url":"https://github.com/blocktrail/blocktrail-sdk-python","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocktrail%2Fblocktrail-sdk-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocktrail%2Fblocktrail-sdk-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocktrail%2Fblocktrail-sdk-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocktrail%2Fblocktrail-sdk-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blocktrail","download_url":"https://codeload.github.com/blocktrail/blocktrail-sdk-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248355018,"owners_count":21089925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T15:00:36.904Z","updated_at":"2026-03-16T08:34:07.698Z","avatar_url":"https://github.com/blocktrail.png","language":"Python","funding_links":[],"categories":["Python Libraries","Go Tools","awesome Bitcoin"],"sub_categories":["E-Books"],"readme":"BlockTrail Python SDK\n=====================\nThis is the BlockTrail Python SDK. This SDK contains methods for easily interacting with the BlockTrail API.\nBelow are examples to get you started. For additional examples, please see our official documentation\nat https://www.blocktrail.com/api/docs/lang/python\n\n[![Latest Stable Version](https://badge.fury.io/py/blocktrail-sdk.svg)](https://pypi.python.org/pypi/blocktrail-sdk)\n[![Build Status](https://travis-ci.org/blocktrail/blocktrail-sdk-python.png?branch=master)](https://travis-ci.org/blocktrail/blocktrail-sdk-python)\n\nIMPORTANT! FLOATS ARE EVIL!!\n----------------------------\nAs is best practice with financial data, The API returns all values as an integer, the Bitcoin value in Satoshi's.\n\nThe BlockTrail SDK has some easy to use functions to do this for you, we recommend using these\nand we also **strongly** recommend doing all Bitcoin calculation and storing of data in integers\nand only convert to/from Bitcoin float values for displaying it to the user.\n\n```php\nimport blocktrail\n\nprint \"123456789 Satoshi to BTC: \", blocktrail.to_btc(123456789)\nprint \"1.23456789 BTC to Satoshi: \", blocktrail.to_satoshi(1.23456789)\n```\n\nA bit more about this can be found [in our documentation](https://www.blocktrail.com/api/docs/lang/python#api_coin_format).\n\nInstallation\n------------\nYou can install the package through Pypi (https://pypi.python.org/pypi/blocktrail-sdk).\n```\n$ pip install blocktrail-sdk\n```\n\nor you can use setuptools\n```\n$ python setup.py build\n$ python setup.py install\n```\n\none of the dependancies, `pycrypto` needs to be compiled and requires the python dev headers so make sure you have those installed.\n```\n$ apt-get install python-dev\n```\n\nPython Versions\n---------------\nPython 2.7 is thoroughly tested.\nPython 3.2 is not supported by the `future` library, so atm we don't support it either.\nPython 3.3 and 3.4 unit tests pass, but it needs some testing...\n\nDependancies\n------------\nThe following dependancies are required / installed:\n - httpsig (for signing our requests to the API)\n - pycrypto (for crypto stuff)\n - requests (for doing the requests to the API)\n - future (for supporting both python 2 and 3)\n - six (for supporting both python 2 and 3)\n\nUsage\n-----\nPlease visit our official documentation at https://www.blocktrail.com/api/docs/lang/python for the usage.\n\nSupport and Feedback\n--------------------\nBe sure to visit the BlockTrail API official [documentation website](https://www.blocktrail.com/api/docs/lang/python)\nfor additional information about our API.\n\nIf you find a bug, please submit the issue in Github directly.\n[BlockTrail-PHP-SDK Issues](https://github.com/blocktrail/blocktrail-sdk-python/issues)\n\nAs always, if you need additional assistance, drop us a note at\n[support@blocktrail.com](mailto:support@blocktrail.com).\n\nUnit Tests\n----------\nUnit Tests are created with PyUnit and can be ran with `python setup.py test`\n\nLicense\n-------\nThe BlockTrail Python SDK is released under the terms of the MIT license. See LICENCE.md for more information or see http://opensource.org/licenses/MIT.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocktrail%2Fblocktrail-sdk-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblocktrail%2Fblocktrail-sdk-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocktrail%2Fblocktrail-sdk-python/lists"}