## # # ### #
# # # ### # ## # ## ## # ## ## ## ##
# # # # # # # # # # # ## ### ## # # # # # # # ###
# # # # # # # # # # # ## # # # # ## # # # #
## ## # ## ## ## ## ## ### # # # # # # ##
##
This package is for creating the mongodb database and ith various collection dynamically. This can be used standalone or with integrated on API
- Mongodb installed on pc
- python 3.7.3 with pip or above
C:.
│ License
│ README.md
│ requirements.txt
│ setup.sh
│ __init__.py
│
├───conf
│ soft.conf
│
└───db
config.json
use case 1
from MongodbDatabaseEngine import engine
engine()
It will create the Mongodb database with name mentioned on soft.conf file and create the collection with the name and data available on config.json.
use case 2
from MongodbDatabaseEngine import engine
engine(databasename="mydatabase")
This will create database with name "mydatabase" and utilize the default data mentioned on config.json
use case 3
import json
userdata=json.load(open(path+r"/db/config.json",'r'))
from MongodbDatabaseEngine import engine
engine(userdata=userdata, databasename="mydatabase")
This use case is for custom database and custom collection data
engine methods takes dictionary as input. Key names are used as collection names and value is used as json array data user want to store in respective collection.
Ashish Kumar