Skip to main content

Module for working with Mongo DB

Project description

https://travis-ci.org/aioworkers/aioworkers-mongo.svg?branch=master Python versions https://img.shields.io/pypi/v/aioworkers-mongo.svg

Mongo plugin for aioworkers.

Add this to aioworkers config.yaml:

mongo:
    cls: aioworkers_mongo.base.Connector
    uri: 'mongodb://localhost:27017/'

You can get access to mongo anywhere via context:

docs = [doc async for doc in context.mongo.db.collection.find({})]

Development

Install dev requirements:

pipenv install --dev --skip-lock

Run tests:

pytest

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

aioworkers-mongo-0.0.7.tar.gz (2.7 kB view hashes)

Uploaded Source

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