Metadata-Version: 1.1
Name: aioworkers-mongo
Version: 0.0.6
Summary: Module for working with Mongo DB
Home-page: https://github.com/aioworkers/aioworkers-mongo
Author: Alexander Bogushov
Author-email: abogushov@gmail.com
License: Apache Software License 2.0
Description: aioworkers-mongo
        ================
        
        .. image:: https://travis-ci.org/aioworkers/aioworkers-mongo.svg?branch=master
            :target: https://travis-ci.org/aioworkers/aioworkers-mongo
        
        .. image:: https://img.shields.io/pypi/pyversions/aioworkers-mongo.svg
          :target: https://pypi.python.org/pypi/aioworkers-mongo
          :alt: Python versions
        
        .. image:: https://img.shields.io/pypi/v/aioworkers-mongo.svg
          :target: https://pypi.org/project/aioworkers-mongo
        
        
        Mongo plugin for `aioworkers`.
        
        
        Add this to aioworkers config.yaml:
        
        .. code-block:: yaml
        
            mongo:
                cls: aioworkers_mongo.base.Connector
                uri: 'mongodb://localhost:27017/'
        
        You can get access to mongo anywhere via context:
        
        .. code-block:: python
        
            docs = [doc async for doc in context.mongo.db.collection.find({})]
        
        
        Development
        -----------
        
        Install dev requirements:
        
        
        .. code-block:: shell
        
            pipenv install --dev --skip-lock
        
        
        Run tests:
        
        .. code-block:: shell
        
            pytest
        
Keywords: aioworkers mongo motor
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
