Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Libraries for Interacting with HydroShare #33

Open
Castronova opened this issue Aug 26, 2022 · 0 comments
Open

Install Libraries for Interacting with HydroShare #33

Castronova opened this issue Aug 26, 2022 · 0 comments

Comments

@Castronova
Copy link

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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant