Skip to content
/ maqc Public

Code tooling to facilitate the measuring of air quality (on construction sites)

Notifications You must be signed in to change notification settings

jpjagt/maqc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

measuring construction sites

setup

this contains a list of steps you should take to set up the environment.

virtualenv

we'll use virtualenv to get a separated python environment for our current project.

if you don't have it yet, install it:

pip install virtualenv

then, create a virtualenv for this project, with the name mcs:

virtualenv ~/.virtualenvs/mcs

anytime you open your terminal, you need first activate this environment with:

source ~/.virtualenvs/mcs/bin/activate

packages

if you have activated the mcs environment, run this to install the required packages:

pip install -r requirements.txt

we will also install our own code as a local package, to circumvent python's module import hell:

pip install -e .

now, everything in the mcs directory will become easy to import: import mcs.constants, for instance.

.env file

last, we need to indicate some values which will be different for everyone, like the root directory of this project. copy over the example file .env.example to .env:

cp .env.example .env

open your .env file, and start filling in the values.

any of these values are accessible in python through the decouple package:

from decouple import config
value = config("SOME_ENV_VALUE")

About

Code tooling to facilitate the measuring of air quality (on construction sites)

Topics

Resources

Stars

Watchers

Forks

Languages