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.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

pattan_mongo_survey-1.1.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file pattan_mongo_survey-1.1.2.tar.gz.

File metadata

  • Download URL: pattan_mongo_survey-1.1.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for pattan_mongo_survey-1.1.2.tar.gz
Algorithm Hash digest
SHA256 af990315e111f09506e2836968dc5b55caa10180bdf1165560f0b146b3fc4504
MD5 6fa91bc9dc92d45ff8c2e08e4d5d17f3
BLAKE2b-256 38ebe86916c297fe399d6f27b114f259099f8c0e715c87b4663464f91172983e

See more details on using hashes here.

File details

Details for the file pattan_mongo_survey-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pattan_mongo_survey-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ecbb1cf1f52629a2685ca5aee2ffbacb575215ed969f58d338ee6b7a751722d
MD5 1fd2f35d7f902b5f80a08b0e0df29938
BLAKE2b-256 db241d75e821b9a134257521553cf734f1fee2de70ee0079f9d9043cbeebe4ec

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