Skip to main content

Support a surveyJS frontend with a mongodb backend

Project description

PATTAN-MONGO-SURVEY

Support a surveyJS frontend with a mongodb backend.

Configuration

crete an instance of a the pattan-mongo-survey class with a dictionary containing the following keys.

  1. MONGDB_USER
  2. MONGDB_PASSWD
  3. MONGDB_HOST
  4. MONGDB_DB
  5. MONGDB_SURVEY_COLLECTION - collection used to store survey questions
  6. MONGDB_DB_RESPONSE_COLLECTION - collection used to store survey responses

Documentation

Docs

Logging

pattan-mongo-survey creates its own logger (of the same name) which the calling application can configure.

from pattan_mongo_survey import MongoSurveyService
import logging

mongo_logger = logging.getLogger('pattan_mongo_survey')
mongo_logger.addHandler(logging.FileHandler('example.log'))
mongo_logger.setLevel(logging.DEBUG)

Project details


Download files

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

Source Distribution

pattan_mongo_survey-1.1.1.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

pattan_mongo_survey-1.1.1-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

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