https://github.com/aces/loris-python-client

https://github.com/aces/loris-python-client

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.5%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: aces
  • Language: Python
  • Default Branch: main
  • Size: 5.86 KB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 12 months ago · Last pushed 12 months ago
Metadata Files
Readme

README.md

LORIS Python API client

Description

This repository contains the LORIS Python API client, a Python client to interact with the LORIS public HTTP API.

Installation

To install this project, use the following command:

sh pip install git+https://github.com/aces/loris-python-client.git

Example

To use the LORIS Python API client, use the LorisApiClient.connect method to connect to the API and pass the client to the desired endpoints.

```py from lorisapiclient.client import LorisApiClient from lorisapiclient.endpoints.visit import trygetcandidate_visit

client = LorisApiClient.connect('https://demo.loris.ca', 'username', 'password')

candidate = 'DCC060' visit = 'V1'

candidatevisit = trygetcandidatevisit(client, candidate, visit) if candidate_visit is not None: print(f"Candidate {candidate} exists and has visit {visit} for project {visit.meta.project}.") else: print(f"Candidate {candidate} does not exist or has no visit {visit}.") ```

Documentation

This 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.

Owner

  • Name: ACElab
  • Login: aces
  • Kind: organization
  • Location: Montreal, Quebec, Canada

McGill Centre for Integrative Neuroscience (MCIN) - Alan C. Evans, Ph.D., Principal Investigator

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1

Dependencies

pyproject.toml pypi
  • pydantic *
  • requests *