Source

graphalchemy / graphalchemy / direct / collectors.py

Full commit
# -*- coding: utf-8 -*-
'''manager collectors'''

from graphalchemy.core import octopus, app
from graphalchemy.mixins.collectors import LinksMixin, NodesMixin

__all__ = ('Links', 'Nodes')

# settings
conf = octopus.G


class Links(LinksMixin):

    '''manager link collections collector'''

    _collection = app(conf.manager.collection.link, conf.managers)


class Nodes(NodesMixin):

    '''manager nodes collections collector'''

    _collection = app(conf.manager.collection.node, conf.managers)