cph-cachet / carp.client-api-flask

This is a sample project that provides all existing endpoints to communicate with the [CARP Webservices API](https://carp.cachet.dk) platform using the async framework, namely [FastAPI](http://fastapi.tiangolo.com).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CARP CLIENT API FLASK

CACHET

The Copenhagen Center for Health Technology (CACHET) Research Platform (CARP) enables researchers to run mobile health (mHealth) studies where data is collected on participant's smartphones and wearable devices. Data is securely uploaded and managed in a hosting infrastructure managed by the Technical University of Denmark.

CARP is a platform for running research studies in the health domain – also known as Digital Phenotyping. Such studies range from technical feasibility studies of novel technology to large-scale clinical studies. The platform is very versatile both in terms of support for different types of health domains, as well as in terms of technical support and configuration.

Info

This is a sample project that provides all existing endpoints to communicate with the CARP Webservices API platform using the Flask Framework.

Environments

Changing the [CARP] environment:

  • replace the environment in the following file: .environments
  • i.e.: ENVIRONMENT=production, ENVIRONMENT=development, ENVIRONMENT=staging, ENVIRONMENT=test, ENVIRONMENT=local, default=local

Install requirements

Provision for Production:

  • ~cd into carp.client-api-flask directory and use the bash-command:
  • bash deployment.sh production up
  • Done :)

Run locally:

  • ~cd into carp.client-api-flask directory and use the python-command:
  • python run.py
  • Done :)

Dependencies

References

About

This is a sample project that provides all existing endpoints to communicate with the [CARP Webservices API](https://carp.cachet.dk) platform using the async framework, namely [FastAPI](http://fastapi.tiangolo.com).

License:MIT License


Languages

Language:Python 99.7%Language:PowerShell 0.2%Language:Shell 0.1%Language:CSS 0.0%Language:PureBasic 0.0%Language:HTML 0.0%Language:Dockerfile 0.0%