Some features found in HydroShare are not present in this tethys app. These limitations are due to the restclient’s API not being able to support all features present and the fact there are very similar ones already present on HydroShare.
The factors being, a) features that are very similar to the ones already present on the page and b) the restclient is yet to bring out api to support some features.
Adding users as contributors
Different ways to filter resources
Making groups and communities in HydroShare
'Sort by' reference feature
The above mentioned features are present in the HydroShare page but are not available in this tethys app as there is no api yet to support their functioning.
However, the page is updated periodically and there will be support added for more features in the near future.
Here is the link for the restclient - 'HydroShare REST API Python client library'
Update science metadata:
from hs_restclient import HydroShare, HydroShareAuthBasic
auth = HydroShareAuthBasic(username='myusername', password='mypassword')
hs = HydroShare(auth=auth)
metadata = {
"weather": "sunny",
"temp": "80C"
}
result = hs.resource('ID OF RESOURCE GOES HERE').scimeta.custom(metadata)
To discover resources vis other parameters:
>>> # Discover via creator, group, user, owner
>>> resources = hs.resources(creator="email or username")
>>> resources = hs.resources(user="email or username")
>>> resources = hs.resources(owner="email or username")
>>> resources = hs.resources(author="email or username")
>>> resources = hs.resources(group="id or name")