A few features found in the page of HydroShare are not present here in this tethys app. These limitations are due to two factors on which I would be expanding further below.
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.
Get system metadata for a particular resource
from hs_restclient import HydroShare
hs = HydroShare()
resource_md = hs.getSystemMetadata('e62a438bec384087b6c00ddcd1b6475a')
print(resource_md['resource_title'])
Get resource map xml data
from hs_restclient import HydroShare, HydroShareAuthBasic
auth = HydroShareAuthBasic(username='myusername', password='mypassword')
hs = HydroShare(auth=auth)
science_metadata_xml = hs.getScienceMetadataRDF('ID OF RESOURCE GOES HERE')
Delete a folder
from hs_restclient import HydroShare, HydroShareAuthBasic
auth = HydroShareAuthBasic(username='myusername', password='mypassword')
hs = HydroShare(auth=auth)
folder_to_delete = "folder_1/folder_2"
response_json = hs.deleteResourceFolder('ID OF RESOURCE GOES HERE', pathname=folder_to_delete)
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")
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'