Skip to main content

pypi actions codecov downloads

mocca-edc

Liverpool School of Tropical Medicine

http://www.isrctn.com/

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

Installation

To setup and run a test server locally

You’ll need mysql and Redis. Create the database

mysql -Bse 'create database mocca character set utf8;'

Create and activate a virtual environment

conda create -n edc python=3.9
conda activate edc

Clone the main repo and checkout master

mkdir ~/app
cd ~/app
git clone https://github.com/mocca-trial/mocca-edc.git
cd ~/app/mocca-edc
git checkout master

Copy the test environment file

cd ~/app/mocca-edc
git checkout master
cp .env-tests .env

Edit the environment file (.env) to include your mysql password in the DATABASE_URL.

# look for and update this line
DATABASE_URL=mysql://user:password@127.0.0.1:3306/mocca

Continue with the installation

cd ~/app/mocca-edc
git checkout master
pip install -U -r requirements.txt
python manage.py migrate
python manage.py import_randomization_list
python manage.py import_holidays

Ensure Redis is running

$ redis-cli ping
PONG

Create a user and start up runserver

cd ~/app/mocca-edc
git checkout master
python manage.py createsuperuser
python manage.py runserver

Login:

localhost:8000

Metadata

Release files for mocca-edc 0.1.33

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mocca-edc 0.1.33
File Size Uploaded
mocca-edc-0.1.33.tar.gz 254.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mocca-edc 0.1.33
File Interpreter ABI Platform
mocca_edc-0.1.33-py3-none-any.whl Python 3 none any Details

Total release size: 678.7 kB

Release files / mocca-edc-0.1.33.tar.gz

Download URL mocca-edc-0.1.33.tar.gz
Size 254.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6f4cf326ae9df4d214b1c4b75056c967dddbc334071ea1a190f5eb5f84e2b83a
BLAKE2b-256 checksum
How to use checksums
72391c30df3096121cf1235fa1a1f0bd8a83bbfdaeeb10bbcd8d6bc75086da1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

Release files / mocca_edc-0.1.33-py3-none-any.whl

Download URL mocca_edc-0.1.33-py3-none-any.whl
Size 424.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7aef54ddeb6c52a4894ef545971d213fb8d7f873d8e3ea01576a876e1e3fb4b0
BLAKE2b-256 checksum
How to use checksums
432bd73d0e7cdd443accaf5400995e8795920d198e6918f8ea9bd40a025ad0e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

Release history Release notifications | RSS feed

This release

0.1.33 This release

2 release files

0.1.32

1 release file

0.1.31

1 release file

0.1.30

1 release file

0.1.29

1 release file

0.1.28

1 release file

0.1.27

1 release file

0.1.26

1 release file

0.1.25

1 release file

0.1.24

1 release file

0.1.23

1 release file

0.1.22

1 release file

0.1.21

1 release file

0.1.20

1 release file

0.1.19

1 release file

0.1.18

1 release file

0.1.17

1 release file

0.1.16

1 release file

0.1.15

1 release file

0.1.14

1 release file

0.1.13

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page