# api-v1-client-python **Repository Path**: ethan-net/api-v1-client-python ## Basic Information - **Project Name**: api-v1-client-python - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-12-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Blockchain API library (Python, v1) An official Python module for interacting with the Blockchain.info API. Compatible with both Python 2 and Python 3. ### Getting started Installation via pip: ``` $ pip install blockchain ``` Manual installation: ``` $ git clone https://github.com/blockchain/api-v1-client-python $ cd api-v1-client-python $ python setup.py install ``` The module consists of the following sub-modules: * `blockexplorer` ([docs](docs/blockexplorer.md)) ([api/blockchain_api][api1]) * `createwallet` ([docs](docs/createwallet.md)) ([api/create_wallet][api2]) * `exchangerates` ([docs](docs/exchangerates.md)) ([api/exchange\_rates\_api][api3]) * `pushtx` ([docs](docs/pushtx.md)) ([pushtx][api7]) * `v2.receive` ([docs](docs/receive.md)) ([api/api_receive][api4]) * `statistics` ([docs](docs/statistics.md)) ([api/charts_api][api5]) * `wallet` ([docs](docs/wallet.md)) ([api/blockchain\_wallet\_api][api6]) The main module is called `blockchain` In order to use `createwallet` and `wallet` you need to run an instance of [service-my-wallet-v3](https://github.com/blockchain/service-my-wallet-v3). ### Error handling All functions may raise exceptions caused by incorrectly passed parameters or other problems. If a call is rejected server-side, the `APIException` exception will be raised. ### Connection timeouts It is possible to set arbitrary connection timeouts. ```python from blockchain import util util.TIMEOUT = 5 #time out after 5 seconds ``` ### Request limits and API keys In order to prevent abuse some API methods require an API key approved with some basic contact information and a description of its intended use. Please request an API key [here](https://blockchain.info/api/api_create_code). The same API key can be used to bypass the request limiter. [api1]: https://blockchain.info/api/blockchain_api [api2]: https://blockchain.info/api/create_wallet [api3]: https://blockchain.info/api/exchange_rates_api [api4]: https://blockchain.info/api/api_receive [api5]: https://blockchain.info/api/charts_api [api6]: https://blockchain.info/api/blockchain_wallet_api [api7]: https://blockchain.info/pushtx