{"id":30743327,"url":"https://github.com/aces/loris-python-client","last_synced_at":"2025-09-04T02:06:40.938Z","repository":{"id":303547016,"uuid":"1015556911","full_name":"aces/loris-python-client","owner":"aces","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-08T16:37:01.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-08T17:41:39.153Z","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":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aces.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-07T17:21:08.000Z","updated_at":"2025-07-08T16:35:42.000Z","dependencies_parsed_at":"2025-07-08T17:54:13.272Z","dependency_job_id":null,"html_url":"https://github.com/aces/loris-python-client","commit_stats":null,"previous_names":["aces/loris_api_client","aces/loris-python-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aces/loris-python-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2Floris-python-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2Floris-python-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2Floris-python-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2Floris-python-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aces","download_url":"https://codeload.github.com/aces/loris-python-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2Floris-python-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273539317,"owners_count":25123499,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-09-04T02:06:40.102Z","updated_at":"2025-09-04T02:06:40.928Z","avatar_url":"https://github.com/aces.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LORIS Python API client\n\n## Description\n\nThis repository contains the LORIS Python API client, a Python client to interact with the LORIS public HTTP API.\n\n## Installation\n\nTo install this project, use the following command:\n\n```sh\npip install git+https://github.com/aces/loris-python-client.git\n```\n\n## Example\n\nTo use the LORIS Python API client, use the `LorisApiClient.connect` method to connect to the API and pass the client to the desired endpoints.\n\n```py\nfrom loris_api_client.client import LorisApiClient\nfrom loris_api_client.endpoints.visit import try_get_candidate_visit\n\nclient = LorisApiClient.connect('https://demo.loris.ca', 'username', 'password')\n\ncandidate = 'DCC060'\nvisit     = 'V1'\n\ncandidate_visit = try_get_candidate_visit(client, candidate, visit)\nif candidate_visit is not None:\n    print(f\"Candidate {candidate} exists and has visit {visit} for project {visit.meta.project}.\")\nelse:\n    print(f\"Candidate {candidate} does not exist or has no visit {visit}.\")\n```\n\n## Documentation\n\nThis repository unfortunately does not have much documentation, however, you can always refer to the type hints or the LORIS API documentation for instructions. Do not hesitate to open an issue or PR if needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faces%2Floris-python-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faces%2Floris-python-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faces%2Floris-python-client/lists"}