Skip to content

Simple wrapper to query bitshares data stored in elasticsearch database

License

Notifications You must be signed in to change notification settings

oxarbitrage/bitshares-es-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATTENTION: This wrapper was merged into https://github.com/oxarbitrage/bitshares-explorer-api Development will continue there.

Bitshares ElasticSearch Wrapper

Wrapper for final user applications to interact with account data from the bitshares blockchain stored by bitshares-core with elasticsearch-plugin running.

In order to install this wrapper you need to have a bitshares node running with elasticsearch plugin. Refer to this document on how to do that: https://github.com/bitshares/bitshares-core/wiki/ElasticSearch-Plugin

Install

  • Install python elasticsearch low level lib:

pip install elasticsearch

  • Install python elasticsearch high level lib to easy query:

pip install elasticsearch-dsl

  • Install flask CORS to query the wrapper from anywhere:

pip install flask-cors

  • Install flasgger for swagger apidocs:

pip install flasgger

  • Clone and run it by flask:
git clone https://github.com/oxarbitrage/bitshares-es-wrapper.git
export FLASK_APP=wrapper.py
flask run --host=0.0.0.0

Or

uwsgi --ini wrapper.ini

API Documentation

Swagger api docs: http://185.208.208.184:5000/apidocs/#!/wrapper/

About

Simple wrapper to query bitshares data stored in elasticsearch database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages