Skip to main content

META Trial EDC (https://www.isrctn.com/ISRCTN76157257)

Project description

pypi actions codecov downloads clinicedc

META EDC

Metformin treatment in Africa - META

py 3.12+ / DJ 5.2 using the Clinic EDC framework

This codebase is used for two randomized clinical trials:


META PHASE II:

(final version 0.1.77)

Metformin Treatment for Diabetes Prevention in Africa: META Trial TASO, MRC/UVRI/LSHTM, NIMR – TZ and Liverpool School of Tropical Medicine (ISRCTN76157257) http://www.isrctn.com/ISRCTN76157257


META PHASE III:

A randomised placebo-controlled double-blind phase III trial to determine the effects of metformin versus placebo on the incidence of diabetes in HIV-infected persons with pre-diabetes in Tanzania.

Liverpool School of Tropical Medicine

EDCTP grant number: RIA2018CO-2513

Trial registration: ISCRTN 77382043

https://ico.org.uk/ESDWebPages/Entry/Z4763134


See also https://github.com/clinicedc/edc

Made with Django

Installation

As of version 1.1.10, we are building and deploying with uv.

Here we assume you have your DB setup and already have your .env file.

First-time install

Assuming you are logged into the account myaccount:

mkdir -p ~/.etc/meta && \
mkdir ~/edc && \
cd ~/edc && \
uv venv && \
uv pip install -U meta-edc==1.10.0 && \
wget https://raw.githubusercontent.com/meta-trial/meta-edc/1.10.0/manage.py && \
uv pip freeze | grep meta-edc

Copy your .env file to ~/.etc.

Place this at or near the end of your .bashrc:

# >>> EDC using uv >>>
export DJANGO_SETTINGS_MODULE=meta_edc.settings.uat
export META_PHASE=3
export DJANGO_BASE_DIR=/home/myaccount/edc
export DJANGO_ENV_DIR=/home/myaccount/.etc/
cd ~/edc
source .venv/bin/activate
export PATH="/home/myaccount/edc:$PATH"
# <<< EDC using uv <<<

Source .bashrc and run manage.py check.

source ~/.bashrc && \
cd ~/edc && \
python manage.py check

If all is OK, run migrate:

Explicitly specify the settings file when using migrate.

  • live: --settings=meta_edc.settings.live

  • uat: --settings=meta_edc.settings.uat

  • debug: --settings=meta_edc.settings.debug

cd ~/edc && \
python manage.py migrate --settings=meta_edc.settings.live

Update an existing install

From the above example:

cd ~/edc && \
uv venv --clear && \
uv pip install -U meta-edc==1.10.0 && \
wget -O manage.py https://raw.githubusercontent.com/meta-trial/meta-edc/1.1.10/manage.py && \
uv pip freeze | grep meta-edc && \
python manage.py check

If all is OK, run migrate

cd ~/edc && \
python manage.py migrate --settings=meta_edc.settings.live

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meta_edc-1.10.1.tar.gz (688.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meta_edc-1.10.1-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file meta_edc-1.10.1.tar.gz.

File metadata

  • Download URL: meta_edc-1.10.1.tar.gz
  • Upload date:
  • Size: 688.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for meta_edc-1.10.1.tar.gz
Algorithm Hash digest
SHA256 3a7a7abadcb8a71ca39c1041a3dbffc0294d7476edd0d1aa2e2d5e048e1c55f1
MD5 b535c15eaa94d660568a9c170caf5bc2
BLAKE2b-256 1e8820590bc16d900c80f79d8b7a64ab4557bbf6aa3e677c1dd15e48f7260224

See more details on using hashes here.

File details

Details for the file meta_edc-1.10.1-py3-none-any.whl.

File metadata

  • Download URL: meta_edc-1.10.1-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for meta_edc-1.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8cb80071d8424e4078a4941171a4078d04742c87c9f4b42d88c67a69faa4fc3
MD5 1c0076a0434159cffb95563291ba40af
BLAKE2b-256 056037566befa0493124fdb0b020bf47fd40ee0a909609be46ec99b7ccedb91c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page