MongoDB Plugin for CloeePy
Attaches a PyMongo DB connection to CloeePy application context
## Installation
`pip install CloeePy-Mongo`
## Configuration
```
CloeePy:
...
Plugins:
cloeepy_mongo:
host: localhost
port: 27017
username: admin
password: password
authSource: admin
authMechanism: SCRAM-SHA-1
maxPoolSize: 100
```
## Usage
```
import os
from cloeepy import CloeePy
if __name__ == "__main__":
# Required: set config path as environment variable
os.environ["CLOEEPY_CONFIG_PATH"] = "./example-config.yml"
# instantiate application instance
app = CloeePy()
# write a log entry to stdout
app.log.info("Hello World!")
# Make PyMongo call and log to stdout
app.log.info(app.mongo.admin.command("isMaster"))
```
Metadata
Release files for CloeePy-Mongo 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| CloeePy-Mongo-0.0.0.tar.gz | 3.5 kB | Without provenance | Details for CloeePy-Mongo-0.0.0.tar.gz |
Release files / CloeePy-Mongo-0.0.0.tar.gz
| Download URL | CloeePy-Mongo-0.0.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
727b9269cf17381a44dd0e35b2a08c1b482ed7decca4e5a137ca1bd5ac2599a2
|
|
BLAKE2b-256 checksum How to use checksums |
c483a4ca825e2133f706cfd78bc0d3bd22e181f4a01556258994df14b9569403
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for CloeePy-Mongo 0.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.