Skip to content

The official Python (3) library for the BEARSHARES Blockchain.

License

Notifications You must be signed in to change notification settings

berycoin-project/bear-python

 
 

Repository files navigation

Official Python BEARShares Library

bear-python is the official BEARShares library for Python. It comes with a BIP38 encrypted wallet and a practical CLI utility called bearpy. (rename after update)

This library currently works on Python 2.7, 3.5 and 3.6. Python 3.3 and 3.4 support forthcoming.

WORK IN PROGRESS 95% This port was complicated as the bearshares blockchian had many edits changing terms like vests/vesting to coins/coining and others. Also the bearshare blockchain has the call to rewad_punds blocked for some reason.

This repository only works for the bearshares blockchain, if you are looking for libraries to use on other of the STEEM clones see my other repo were i'm working on adding multi-chain capabilities to the commit methods.

All operations have been tested and work

With the exception of calls to reward fund on the official bearshares API node, those work but if you requiere those operations you will need to setup your own private API node.

API NODE

Use example: Get a dict with all conversion requests from an user and print it in the console

user_c = 'someUserName'
from bear import Bear
bear = Bear(keys = "putYourPostingorActiveKeyHere", nodes = ["http://api.bearshares.com"]) 
conv = bear.beard.get_conversion_requests(user_c)
for c in conv:
  c,conv[c]
  

Note: it is reccomended that you use the provided cli basic wallet instead of putting keys in the code, this example is meant to show basic usage.

Installation

From Source:

git clone https://github.com/nnnarvaez/bear-python.git
cd bear-python
python3 setup.py install        # python setup.py install for 2.7

Homebrew Build Prereqs

If you're on a mac, you may need to do the following first:

brew install openssl
export CFLAGS="-I$(brew --prefix openssl)/include $CFLAGS"
export LDFLAGS="-L$(brew --prefix openssl)/lib $LDFLAGS"

Documentation

The official STEEM python documentation applies, just replace the terms vesting for coining where needed

Documentation is available at http://steem.readthedocs.io

Tests

Some tests are included. They can be run via:

  • python setup.py test

Notice

This library is under development. Beware.

About

The official Python (3) library for the BEARSHARES Blockchain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Other 0.1%