Skip to content

Install Libraries for Interacting with HydroShare #33

Description

@Castronova

In order to interact with HydroShare programmatically from HydroFrame computing instances, e.g. Jupyter notebooks, several libraries need to be installed on the system. Below are a description of these items as well as installation instructions.

Libraries

  • hsclient : a python client for interacting with HydroShare

Installation Instructions

Installation is very straightforward since this library is hosted on pypi.org.

pip install hsclient

Testing and Usage

Documentation for hsclient can be found on

Example Jupyter Notebooks can be found at

Here's a simple example to test that hsclient is installed correctly.

from hsclient import HydroShare

# authenticate with HydroShare account
hs = HydroShare()
hs.sign_in()

# download a resource from HydroShare
existing_resource = hs.resource('7561aa12fd824ebb8edbee05af19b910')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions