Skip to content

pulkit22/api-v1-client-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

The main module is called blockchain

In order to use createwallet and wallet you need to run an instance of 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.

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.

The same API key can be used to bypass the request limiter.

About

Blockchain Bitcoin Developer APIs - Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%