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.
- MONGDB_USER
- MONGDB_PASSWD
- MONGDB_HOST
- MONGDB_DB
- MONGDB_SURVEY_COLLECTION - collection used to store survey questions
- MONGDB_DB_RESPONSE_COLLECTION - collection used to store survey responses
Documentation
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af990315e111f09506e2836968dc5b55caa10180bdf1165560f0b146b3fc4504
|
|
| MD5 |
6fa91bc9dc92d45ff8c2e08e4d5d17f3
|
|
| BLAKE2b-256 |
38ebe86916c297fe399d6f27b114f259099f8c0e715c87b4663464f91172983e
|
File details
Details for the file pattan_mongo_survey-1.1.2-py3-none-any.whl.
File metadata
- Download URL: pattan_mongo_survey-1.1.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ecbb1cf1f52629a2685ca5aee2ffbacb575215ed969f58d338ee6b7a751722d
|
|
| MD5 |
1fd2f35d7f902b5f80a08b0e0df29938
|
|
| BLAKE2b-256 |
db241d75e821b9a134257521553cf734f1fee2de70ee0079f9d9043cbeebe4ec
|