{"id":21953943,"url":"https://github.com/hydroshare/old_hs_restclient","last_synced_at":"2025-03-22T18:27:11.967Z","repository":{"id":15410304,"uuid":"18142386","full_name":"hydroshare/OLD_hs_restclient","owner":"hydroshare","description":"Python client library for HydroShare's REST API","archived":false,"fork":false,"pushed_at":"2014-03-26T18:55:34.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-27T22:47:50.019Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jdp1g09/angular-express","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hydroshare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-26T15:09:21.000Z","updated_at":"2015-05-04T18:41:47.000Z","dependencies_parsed_at":"2022-08-26T04:10:33.712Z","dependency_job_id":null,"html_url":"https://github.com/hydroshare/OLD_hs_restclient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hydroshare%2FOLD_hs_restclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hydroshare%2FOLD_hs_restclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hydroshare%2FOLD_hs_restclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hydroshare%2FOLD_hs_restclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hydroshare","download_url":"https://codeload.github.com/hydroshare/OLD_hs_restclient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245001630,"owners_count":20545287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T07:14:28.052Z","updated_at":"2025-03-22T18:27:11.934Z","avatar_url":"https://github.com/hydroshare.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"hs_restclient\n=============\n\nPython client library for HydroShare's REST API\n\nQuestions? brian_miles@unc.edu\n\n## To run tests\n    python setup.py test\n\n## To use\n\t# Initialize\n\tfrom hs_restclient import HydroShare\n\ths = HydroShare('http://127.0.0.1:8001/api/v1/', user_name='hs', password='water')\n\t\n\t# Create resource\n\tres = hs.createResource('created with API', filename='to.zip')\n\tres.id\n\tres.title\n\t\n\t# Read resource\n\tres2 = hs.getResource(id)\n\tres\n\tres2\n\tres2.title\n\t\n\tres2.writeFile('from.zip')\n\t\n\t# Update resource\n\tres2.title = mynewtitle\n    res2 = hs.updateResource(res2)\n    \n    # Delete resource\n    result = hs.deleteResource(res2)\n    if not result: print('Error deleting resource')","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhydroshare%2Fold_hs_restclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhydroshare%2Fold_hs_restclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhydroshare%2Fold_hs_restclient/lists"}