# Path: pyoko/conf.py
# class Settings(object):
#     def __init__(self):
# 
# Path: pyoko/model.py
# class Model(Node):
# class LinkProxy(object):
#     _TYPE = 'Model'
#     _DEFAULT_BASE_FIELDS = {
#         'timestamp': field.DateTime(default='now'),
#         'updated_at': field.TimeStamp(),
#         'deleted_at': field.DateTime(),
#         'deleted': field.Boolean(default=False, index=True)
#     }
#     _SEARCH_INDEX = ''
#     _TYPE = 'Link'
#     def __init__(self, context=None, **kwargs):
#     def __str__(self):
#     def get_verbose_name(self):
#     def prnt(self):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __hash__(self):
#     def is_in_db(self):
#     def exist(self):
#     def get_choices_for(self, field):
#     def set_data(self, data, from_db=False):
#     def __repr__(self):
#     def _apply_cell_filters(self, context):
#     def get_unpermitted_fields(self):
#     def row_level_access(context, objects):
#     def _name(self):
#     def _name_id(self):
#     def _update_new_linked_model(self, internal, linked_mdl_ins, link):
#     def _add_back_link(self, linked_mdl, link):
#     def _handle_changed_fields(self, old_data):
#     def _process_relations(self,internal):
#     def reload(self):
#     def pre_save(self):
#     def post_save(self):
#     def pre_delete(self):
#     def post_delete(self):
#     def post_creation(self):
#     def pre_creation(self):
#     def _handle_uniqueness(self):
#         def _getattr(u):
#     def save(self, internal=False, meta=None, index_fields=None):
#     def changed_fields(self, from_db=False):
#     def is_changed(self, field, from_db=False):
#     def blocking_save(self, query_dict=None, meta=None, index_fields=None):
#     def blocking_delete(self, meta=None, index_fields=None):
#     def _traverse_relations(self):
#     def _delete_relations(self, dry=False):
#     def delete(self, dry=False, meta=None, index_fields=None):
#     def __init__(self, link_to,
#                  one_to_one=False,
#                  verbose_name=None,
#                  reverse_name=None,
#                  null=False,
#                  unique=False):
# 
# Path: pyoko/lib/utils.py
# UN_CAMEL_RE = re.compile('((?<=[a-z0-9])[A-Z]|(?!^)[A-Z](?=[a-z]))')
#     HEADER = '\033[95m'
#     OKBLUE = '\033[94m'
#     OKGREEN = '\033[32m'
#     WARNING = '\033[93m'
#     FAIL = '\033[91m'
#     ENDC = '\033[0m'
#     BOLD = '\033[1m'
#     UNDERLINE = '\033[4m'
# def ub_to_str(string):
#     def __call__(self, choices, key):
#     def get_all(choices):
#     def store_file(self, **kw):
#         def __init__(self, fget):
#         def __get__(self, obj, cls):
# def un_camel(input, dash="_"):
# def un_camel_id(input):
# def to_camel(s):
# def grayed(*args):
#     def default(self, obj):
# def random_word(length):
# def getScriptPath():
# def add_to_path():
# def get_object_from_path(path):
# def pprnt(input, return_data=False):
# class SimpleChoicesManager(object):
# class SimpleRiakFileManager(object):
#     class lazy_property(object):
# class MyEncoder(json.JSONEncoder):
# 
# Path: pyoko/exceptions.py
# class ObjectDoesNotExist(PyokoError):
#     pass
# 
# Path: pyoko/conf.py
# class Settings(object):
#     def __init__(self):


from argparse import RawTextHelpFormatter, HelpFormatter
from collections import defaultdict
from os import environ
from riak import ConflictError
from pyoko.conf import settings
from riak.client import binary_json_decoder, binary_json_encoder
from sys import argv, stdout
from six import add_metaclass, PY2
from pyoko.model import super_context
from pyoko.lib import utils
from pyoko.exceptions import ObjectDoesNotExist
from pyoko.conf import settings
from importlib import import_module
            from IPython import start_ipython
        from pyoko.db.schema_update import SchemaUpdater
        from pyoko.conf import settings
        from importlib import import_module
            from glob import glob
        from pyoko.conf import settings
        from importlib import import_module
        from pyoko.conf import settings
        from importlib import import_module
        from pyoko.conf import settings
        from importlib import import_module
import codecs
import re
import json
import time
import os
import sys
import concurrent.futures as con
            import readline
            import code
                    import traceback
            import time
        import argparse
        import sys
        import os
    _padding_after_type = 2
    # Class start and end delimiters
    _class_start = '\n\nclass %s<<(M,orchid)>>{'
    _class_end = '}\n'
    # Markers for the start and end of the apps
    _app_start = '\npackage %s{'
    _app_end = '}'
    # The beginning and the end of the diagram
    _diagram_start = """@startuml

skinparam classAttributeFontName Monospaced
skinparam classBackgroundColor #FFFFFF
skinparam classBorderColor #D8D8D8
skinparam packageBorderColor #BDBDBD
skinparam classArrowColor #0B615E
skinparam shadowing false

title
<size:24>Entity Based Model Diagram</size>
( All Models extends <b>pyoko.Model</b> class )
endtitle
"""
    _diagram_end = "@enduml"
    # Prefixes for the items
    _field_prefix = '  '
    _nodelist_field_prefix = '|_'
    # The function used to print output. Replaced with one that prints to file when path is given
    _print = print

    def run(self):

# Path: pyoko/conf.py
# class Settings(object):
#     def __init__(self):
# 
# Path: pyoko/model.py
# class Model(Node):
# class LinkProxy(object):
#     _TYPE = 'Model'
#     _DEFAULT_BASE_FIELDS = {
#         'timestamp': field.DateTime(default='now'),
#         'updated_at': field.TimeStamp(),
#         'deleted_at': field.DateTime(),
#         'deleted': field.Boolean(default=False, index=True)
#     }
#     _SEARCH_INDEX = ''
#     _TYPE = 'Link'
#     def __init__(self, context=None, **kwargs):
#     def __str__(self):
#     def get_verbose_name(self):
#     def prnt(self):
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __hash__(self):
#     def is_in_db(self):
#     def exist(self):
#     def get_choices_for(self, field):
#     def set_data(self, data, from_db=False):
#     def __repr__(self):
#     def _apply_cell_filters(self, context):
#     def get_unpermitted_fields(self):
#     def row_level_access(context, objects):
#     def _name(self):
#     def _name_id(self):
#     def _update_new_linked_model(self, internal, linked_mdl_ins, link):
#     def _add_back_link(self, linked_mdl, link):
#     def _handle_changed_fields(self, old_data):
#     def _process_relations(self,internal):
#     def reload(self):
#     def pre_save(self):
#     def post_save(self):
#     def pre_delete(self):
#     def post_delete(self):
#     def post_creation(self):
#     def pre_creation(self):
#     def _handle_uniqueness(self):
#         def _getattr(u):
#     def save(self, internal=False, meta=None, index_fields=None):
#     def changed_fields(self, from_db=False):
#     def is_changed(self, field, from_db=False):
#     def blocking_save(self, query_dict=None, meta=None, index_fields=None):
#     def blocking_delete(self, meta=None, index_fields=None):
#     def _traverse_relations(self):
#     def _delete_relations(self, dry=False):
#     def delete(self, dry=False, meta=None, index_fields=None):
#     def __init__(self, link_to,
#                  one_to_one=False,
#                  verbose_name=None,
#                  reverse_name=None,
#                  null=False,
#                  unique=False):
# 
# Path: pyoko/lib/utils.py
# UN_CAMEL_RE = re.compile('((?<=[a-z0-9])[A-Z]|(?!^)[A-Z](?=[a-z]))')
#     HEADER = '\033[95m'
#     OKBLUE = '\033[94m'
#     OKGREEN = '\033[32m'
#     WARNING = '\033[93m'
#     FAIL = '\033[91m'
#     ENDC = '\033[0m'
#     BOLD = '\033[1m'
#     UNDERLINE = '\033[4m'
# def ub_to_str(string):
#     def __call__(self, choices, key):
#     def get_all(choices):
#     def store_file(self, **kw):
#         def __init__(self, fget):
#         def __get__(self, obj, cls):
# def un_camel(input, dash="_"):
# def un_camel_id(input):
# def to_camel(s):
# def grayed(*args):
#     def default(self, obj):
# def random_word(length):
# def getScriptPath():
# def add_to_path():
# def get_object_from_path(path):
# def pprnt(input, return_data=False):
# class SimpleChoicesManager(object):
# class SimpleRiakFileManager(object):
#     class lazy_property(object):
# class MyEncoder(json.JSONEncoder):
# 
# Path: pyoko/exceptions.py
# class ObjectDoesNotExist(PyokoError):
#     pass
# 
# Path: pyoko/conf.py
# class Settings(object):
#     def __init__(self):


# Path: pyoko/manage.py
from argparse import RawTextHelpFormatter, HelpFormatter
from collections import defaultdict
from os import environ
from riak import ConflictError
from pyoko.conf import settings
from riak.client import binary_json_decoder, binary_json_encoder
from sys import argv, stdout
from six import add_metaclass, PY2
from pyoko.model import super_context
from pyoko.lib import utils
from pyoko.exceptions import ObjectDoesNotExist
from pyoko.conf import settings
from importlib import import_module
            from IPython import start_ipython
        from pyoko.db.schema_update import SchemaUpdater
        from pyoko.conf import settings
        from importlib import import_module
            from glob import glob
        from pyoko.conf import settings
        from importlib import import_module
        from pyoko.conf import settings
        from importlib import import_module
        from pyoko.conf import settings
        from importlib import import_module
import codecs
import re
import json
import time
import os
import sys
import concurrent.futures as con
            import readline
            import code
                    import traceback
            import time
        import argparse
        import sys
        import os

    _padding_after_type = 2
    # Class start and end delimiters
    _class_start = '\n\nclass %s<<(M,orchid)>>{'
    _class_end = '}\n'
    # Markers for the start and end of the apps
    _app_start = '\npackage %s{'
    _app_end = '}'
    # The beginning and the end of the diagram
    _diagram_start = """@startuml

skinparam classAttributeFontName Monospaced
skinparam classBackgroundColor #FFFFFF
skinparam classBorderColor #D8D8D8
skinparam packageBorderColor #BDBDBD
skinparam classArrowColor #0B615E
skinparam shadowing false

title
<size:24>Entity Based Model Diagram</size>
( All Models extends <b>pyoko.Model</b> class )
endtitle
"""
    _diagram_end = "@enduml"
    # Prefixes for the items
    _field_prefix = '  '
    _nodelist_field_prefix = '|_'
    # The function used to print output. Replaced with one that prints to file when path is given
    _print = print

    def run(self):

        import_module(settings.MODELS_MODULE)