WFSR
A public Python module with elasticsearch tools for WFSR projects.
Usage
# import modules where necessary
from wfsr import feed, tools
# access feed table
feed.df
# access feed tools
feed.get_riskfeed_id('tarwe')
# returns: 1
# access various tools
tools.translate('Hoi, hoe gaat het?')
# returns: {'text': 'Hi how are you?', 'origin': 'nl'}
tools.find_country('france, ')['country']
# returns: 'France'
Installation
pip install git+https://git.wur.nl/bulk007/es_tools.git@master