This repository contains utilities to download usage statistics of fMRIPrep from Sentry.io.
-
Install Python 3.8 or newer.
-
Install dependencies using
requirements.txt
:python -m pip install -r requirements.txt
src/run.py
exposes a command line interface built with Click. Before running,
set a SENTRY_TOKEN
environment variable with a valid token.
Example usage:
SENTRY_TOKEN=your_token python src/run.py get -m started -m success -s 2023-01-01 -u 2023-01-31
This will fetch the "started" and "success" events for January 2023. Omit the
-s
and -u
options to use the default window (last 90 days). Run
python src/run.py --help
for a description of all available options.