Module for working with Mongo DB
Project description
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
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
aioworkers-mongo-0.0.7.tar.gz
(2.7 kB
view hashes)