Home

Awesome

hkvfewspy

PyPI version License

Python wrapper for FEWS-Pi sevices supporting both the SOAP and REST protocol

installation

make sure you have all dependencies installed, and then install hkvfewspy.

pip install hkvfewspy

usage

SOAP backend

import hkvfewspy as hkv
pi = hkv.Pi() # or hkv.Pi(protocol='soap')
pi.setClient(wsdl='http://localhost:8081/FewsPiService/fewspiservice?wsdl')

REST backend

import hkvfewspy as hkv
pi = hkv.Pi(protocol='rest')
pi.setUrl(url='http://localhost:8080/FewsWebServices/rest/fewspiservice/v1/')

changelog

1.0.2

1.0

0.9

include required options for Pi-Service of Delft-FEWS 2019-02

0.8

improved speed gettimeseries request

0.7

added REST protocol for the following functions

initiate using:

0.6.3

available functions

notebook

in the notebook folder are placed several jupyter notebooks with more examples. the module has been tested against both embedded and public fews-Pi webservices in python2 and python3.

credits

HKVFEWSPY is written by:

compiling notes

build distribution directory

python setup.py sdist bdist_wheel

upload to PyPI

from root directory twine upload --repository-url https://upload.pypi.org/legacy/ dist/* username password

this will update the wheel which can be installed through pip install --upgrade hkvfewspy