graphalchemy / graphalchemy / settings.py

# -*- coding: utf-8 -*-
'''graphalchemy settings'''

from spine import DefaultSettings, RequiredSettings

__all__ = ('Defaults', 'Required')


class Required(RequiredSettings):
    appspace = 'graphalchemy'
    backends = 'backends'
    models = 'models'
    directs = 'directs'
    session = 'session.master'


class Defaults(DefaultSettings):
    root = 'root'
    userspace = Required.appspace
    backend = 'neo4j.embedded'

    class key:
        db = '_db'
        backend = 'backend'
        nodes = 'nodes'
        links = 'links'
        session = 'session'

    class anchor:
        label = 'anchor'
        description = '{name} anchor node'

    class fork:
        label = 'fork'
        reference = 'fork_of'
        created = 'fork_created'

    class reference:
        label = 'reference'
        description = '{name} reference node'

    class version:
        label = 'version'
        reference = 'version_of'
        created = 'version_created'

    class manager:
        graph = 'manager.graph'

    class direct:

        class collection:
            link = 'direct.collection.link'
            node = 'direct.collection.node'

        class collector:
            link = 'direct.collector.link'
            node = 'direct.collector.node'

        class element:
            link = 'direct.element.link'
            node = 'direct.element.node'

        class worker:
            link = 'direct.worker.link'
            node = 'direct.worker.node'

    class model:

        class collection:
            node = 'model.collection.node'

        class collector:
            node = 'model.collector.node'

        class element:
            node = 'model.element.node'

        class finder:
            node = 'model.finder.node'

        class writer:
            node = 'model.writer.node'

        class reader:
            node = 'model.reader.node'

        class worker:
            node = 'model.worker.node'

    class engines:

        class neo4jem:
            close = 'neo4jem.close'
            connection = 'neo4jem.connection'
            raw = 'neo4jem.raw'
            transaction = 'neo4jem.transaction'

            class read:
                link = 'neo4jem.read.link'
                node = 'neo4jem.read.node'

            class write:
                link = 'neo4jem.write.link'
                node = 'neo4jem.write.node'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.