hyperschema

Python client library for JSON hyperschema REST services


License
Apache-2.0
Install
pip install hyperschema==0.2.5

Documentation

hyperschema

PyPi-Package Build Status https://coveralls.io/repos/wuan/python-hyperschema/badge.svg?branch=master&service=github

python client library to build a JSON hyperschema client for https://github.com/Mercateo/rest-schemagen

Examples

root = Link(base_url).follow()

stations = root.follow('stations')

# create station
new_station = stations.follow('create', {'name': 'station-name', 'longitude': 11.0, 'latitude': 49.0})

stations = stations.update()
for station in stations:
    print("   ", station.data)

# delete created station
new_station.follow('delete')