Skip to main content

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"
}
}


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

PPM_Common-0.0.1.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

PPM_Common-0.0.1-py3-none-any.whl (14.8 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