golos-python
is the official Golos library for Python. It comes with a BIP38
encrypted wallet and a practical CLI utility called golospy
.
This library version is compatible only with golosd versions 0.16.5 and above.
For golosd 0.16.4 use piston-lib instead.
Install pipenv first if you don't have it:
pip3 install --upgrade --user pipenv
Then, install steem-python using it:
git clone https://github.com/GolosChain/golos-python.git
cd golos-python
pipenv install --three --dev # use --two instead of --three for Python 2.7
pipenv install .
Note that installation using pip3
requires that the pipenv
module be installed to parse the requirements out of the Pipfile
so that pip3 can do the install. If you get an error about pipenv
not being found, you can resolve it with a pip3 install --upgrade --user pipenv
, then the install with pip3
will work as usual.
pip install -U 'git+https://github.com/GolosChain/golos-python.git#egg=steem'
or
git clone https://github.com/GolosChain/golos-python.git
cd golos-python
pip3 install --user .
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"
The library comes with a few console scripts.
steempy
:- rudimentary blockchain CLI (needs some TLC and more TLAs)
steemtail
:- useful for e.g.
steemtail -f -j | jq --unbuffered --sort-keys .
- useful for e.g.
Documentation is available at http://steem.readthedocs.io
Some tests are included. They can be run via either docker or vagrant, for reproducibility, e.g.:
docker build .
or
vagrant up
- more unit tests
- 100% documentation coverage, consistent documentation
- migrate to click CLI library
This library is under development. Beware.