Source

graphalchemy / graphalchemy / direct / collectors.py

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

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

__all__ = ('Links', 'Nodes')

# settings
conf = octopus.G


class Links(LinksMixin):

    '''direct link collections collector'''

    _collection = app(conf.direct.collection.link, conf.directs)


class Nodes(NodesMixin):

    '''direct nodes collections collector'''

    _collection = app(conf.direct.collection.node, conf.directs)