GithubHelp home page GithubHelp logo

godugome / block_io-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blockio/block_io-python

1.0 1.0 0.0 73 KB

Python library for Block.io. Easiest way to create Dogecoin, Bitcoin, and Litecoin wallets and payments.

Python 100.00%

block_io-python's Introduction

BlockIo

This Python package is the official reference client for the Block.io payments API. To use this, you will need the Dogecoin, Bitcoin, or Litecoin API key(s) from Block.io. Go ahead, sign up :)

ATTENTION: Package name has changed from block_io to block-io for PyPi.

COMPATIBILITY: Please use Python2.7+. Also compatible with Python 3.0+.

Installation

Using virtualenv is recommended when installing Python packages.

Install the package using pip for Python 2.7+:

pip install block-io

Usage

It's super easy to get started. In your Python shell, do:

from block_io import BlockIo

block_io = BlockIo('API KEY', 'SECRET PIN', API_VERSION)

# print the account balance
print block_io.get_balance()

# print all addresses on this account
print block_io.get_my_addresses()

# print the response of a withdrawal request
print block_io.withdraw(from_labels='default', to_label='destLabel', amount='50.0')

For more information, see Python API Docs. This Python client provides a mapping for all methods listed on the Block.io API site.

Windows Users, Please Note:

You can install it like so on Windows: "pip install block-io==1.1.10"

Now regarding the vcvarsall.bat error -- that error is due to the fact that pycrypto library is being compiled when you're trying to install the block-io library.

The issue here is the missing MinGW32 compiler in Windows. You can install it from here. Get the installer, install all the packages the install shows for MinGW32.

After that, add the following to the PATH environment variable in your Control Panel -> System -> Advanced Settings:

C:\MinGW\bin\;C:\MinGW\mingw32\bin\;C:\MinGW\msys\1.0\bin\;C:\MinGW\msys\1.0\sbin\;  

Once this is done, go to C:\Python3.4\Lib\distutils, and create a file calls "distutils.cfg" with the following content:

[build]  

compiler=mingw32  

Now exit your Command Prompt or Python IDE, go to Command Prompt again, type "pip install block-io==1.1.10".

Contributing

  1. Fork it ( https://github.com/BlockIo/block_io-python/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

block_io-python's People

Contributors

doersf avatar patricklodder avatar miohtama avatar godugome avatar svisser avatar nyanloutre avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.