environs

deepdataspace.environs

The environment variables read from environments on program starts up.
If not found, dds will try to read the default value.
If no default value is specified, dds will raise an exception.

If you start dds services by dds CLI tool, these variables are generated by dds with different default values, which are written to ~/.deepdataspace/dds.env.

DDS_DEPLOY

Where the program is running? local, dev, test or prod?

Default:

‘local’

DDS_DEBUG

Whether the program is running in debug mode?

Default:

False

DDS_VERBOSE_LOG

Whether the program is running in verbose mode?

Default:

False

DDS_RUNTIME_DIR

The runtime directory of dds.

Default:

~/.deepdataspace

DDS_DJANGO_DIR

The runtime directory of django which includes django log files.

Default:

$DDS_RUNTIME_DIR/django

DDS_CELERY_DIR

The runtime directory if celery which includes celery log files.

DDS_REDIS_DIR

The runtime directory of redis which includes redis bin, conf, log, pid, rdb and aof files.

Default:

$DDS_RUNTIME_DIR/redis

DDS_MONGODB_DIR

The runtime directory of mongodb which includes mongodb bin, conf, log, pid, db files.

Default:

$DDS_RUNTIME_DIR/mongodb

DDS_DATA_DIR
The dataset directory which holds datasets.
All datasets in this directory will be imported by dds on program start up.
DDS_DJANGO_KEY

The django secret key.

DDS_DJANGO_LOG_PATH

The django log file path.

Default:

$DDS_DJANGO_DIR/django.log

DDS_CELERY_WORKERPOOL

The celery worker pool type.

Default:

‘prefork’