Tools for connection to mongodDB et Elasticsearch
Project description
PPM_Common
========================================================
Gives utilities to manage connexion to MongoDB database and Elasticsearch
You can install with pip:
pip install PPM_Common
Example:
>>> from PPM_Common import MongoConnexion
>>> MongoConnexion(pathToConfigFile)
Configuration file looks like :
{
"mongodb": {
"host": "127.0.0.1",
"host_port": 27017
},
"elastic": {
"host": "127.0.0.1",
"host_port": 9200,
"mode":"dev"
}
}
========================================================
Gives utilities to manage connexion to MongoDB database and Elasticsearch
You can install with pip:
pip install PPM_Common
Example:
>>> from PPM_Common import MongoConnexion
>>> MongoConnexion(pathToConfigFile)
Configuration file looks like :
{
"mongodb": {
"host": "127.0.0.1",
"host_port": 27017
},
"elastic": {
"host": "127.0.0.1",
"host_port": 9200,
"mode":"dev"
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PPM_Common-0.0.1.tar.gz
(7.1 kB
view hashes)
Built Distribution
PPM_Common-0.0.1-py3-none-any.whl
(14.8 kB
view hashes)
Close
Hashes for PPM_Common-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88ff61afb4a406f0f29a2807ed9fec26653cef165041e105491abb1276073e4c |
|
MD5 | 4cb998cc0fb58280af9dc3d57790f0bf |
|
BLAKE2b-256 | 674ec0a725556553bf9c1592f9a168138b972e89a8d6d1de27dfc2df9fbfc0db |