diff --git a/cms/engine/config/__init__.py b/cms/engine/config/__init__.py new file mode 100644 index 0000000..0523e4d --- /dev/null +++ b/cms/engine/config/__init__.py @@ -0,0 +1,28 @@ +""" +This file handles all things configuration i.e even the parts of the configuration we are interested in +""" +import os +import json + +def get (path) : + if os.path.exists(path) : + f = open(path) + _conf = json.loads(f.read()) + f.close() + else: + _conf = {} + return _conf +def _isvalid(_allowed,**_args): + + if not list(set(_allowed) - set(_args.keys())) : + _pargs = {} + for key in _allowed : + _pargs [key] = _args[key] + return _pargs + return False + +def write(_config, path): + f = open(path,'w') + f.write( json.dumps(_config)) ; + f.close() + diff --git a/cms/engine/config/structure.py b/cms/engine/config/structure.py new file mode 100644 index 0000000..93aca9c --- /dev/null +++ b/cms/engine/config/structure.py @@ -0,0 +1,77 @@ +""" +This file handles the structure (strict) of the configuration file, +Not all elements are programmatically editable (for now) +""" +import meta +class Section : + + def build (self,**_args): + _data = {} + for _attr in dir(self): + if not _attr.startswith('_') and _attr not in ['build','update']: + _kwargs = _args if _attr not in _args or type(_args[_attr]) !=dict else _args[_attr] + _data[_attr] = getattr(self,_attr)(**_kwargs) + _name = type (self).__name__.lower() + + return {_name:_data } + + + + def update(self,_default,**_args) : + for _attr in _default.keys(): + + if _attr in _args : + _default[_attr] = _args[_attr] + return _default + +class System (Section) : + + def logo(self,**_args): + + return 'www/html/_assets/images/logo.png' if 'logo' not in _args else _args['logo'] + def theme (self,**_args): + """ + setting the theme given the name of the theme + :name name of the theme to set (optional) + """ + return 'default' if 'name' not in _args else _args['name'] + def version(self,**_args): + return meta.__version__ if 'version' not in _args else _args['version'] + def context (self,**_args): + return "" if 'context' not in _args else _args['context'] + def app (self,**_args): + _data = {'debug':True,'port':8084,'threaded':True,'host':'0.0.0.0'} + return self.update(_data,**_args) + + def source(self,**_args): + _data = {'id':'disk'} + if set(['key','auth']) & set(_args.keys()): + # + # key: reboot the app & auth: for cloud access + # + for _attr in ['key','auth'] : + if _attr in _args: + _data[_attr] = _args[_attr] + + _data = self.update(_data,**_args) + return _data + +class Layout (Section): + def index (self,**_args): + return "index.html" if 'index' not in _args else _args['index'] + def root(self,**_args): + return 'wwww/html' if 'root' not in _args else _args['root'] + def footer(self,**_args): + return [{'text':'Powered by QCMS'}] if 'footer' not in _args else _args['footer'] + def on(self,**_args): + return {'load':{}} if 'on' not in _args else _args['on'] + def order(self,**_args): + return {'menu':[]} if 'order' not in _args else _args['order'] + # def menu (self,**_args): + # return {'menu':[]} if 'menu' not in _args else _args['menu'] + def overwrite(self,**_args): + return {} + def header (self,**_args): + _data = {"title":"QCMS Project", "subtitle":"Powered by Python Flask"} + return self.update(_data,**_args) + \ No newline at end of file diff --git a/cms/engine/plugins/__init__.py b/cms/engine/plugins/__init__.py new file mode 100644 index 0000000..6ada10b --- /dev/null +++ b/cms/engine/plugins/__init__.py @@ -0,0 +1,42 @@ +import json +import pandas as pd +import importlib +import importlib.util +import os + +def stats (_config) : + """ + Returns the statistics of the plugins + """ + _data = [] + for _name in _config : + _log = {"files":_name,"loaded":len(_config[_name]),"logs":json.dumps(_config[_name])} + _data.append(_log) + return pd.DataFrame(_data) + pass +def load(_path,_filename,_name) : + """ + This function will load external module form a given location and return a pointer to a function in a given module + :path absolute path of the file (considered plugin) to be loaded + :name name of the function to be applied + """ + # _path = _args['path'] #os.sep.join([_args['root'],'plugin']) + + if os.path.isdir(_path): + files = os.listdir(_path) + if files : + files = [name for name in files if name.endswith('.py') and name == _filename] + if files: + _path = os.sep.join([_path,files[0]]) + else: + return None + else: + return None + #-- We have a file ... + # _name = _args['name'] + spec = importlib.util.spec_from_file_location(_filename, _path) + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + return getattr(module,_name) if hasattr(module,_name) else None + + diff --git a/cms/engine/project/__init__.py b/cms/engine/project/__init__.py new file mode 100644 index 0000000..a24339f --- /dev/null +++ b/cms/engine/project/__init__.py @@ -0,0 +1,154 @@ +# from cms import _system, _header,_layout +import base64 +import os +import json +import meta +from cms.engine import themes +# def make (**_args): +# """ +# :context +# :port port to be served + +# :title title of the application +# :root folder of the content to be scanned +# """ +# if 'port' in _args : +# _args['app'] = {'port':_args['port']} +# del _args['port'] +# if 'context' not in _args : +# _args['context'] = '' +# _info ={'system': _system(**_args)} +# _hargs = {'title':'QCMS'} if 'title' not in _args else {'title':_args['title']} +# _hargs['subtitle'] = '' if 'subtitle' not in _args else _args['subtitle'] +# _hargs['logo'] = True + + + + +# _info['layout'] = _layout(root=_args['root'],index='index.html') +# _info['layout']['header'] = _header(**_hargs) +# # + + +# if 'footer' in _args : +# _info['layout']['footer'] = [{'text':_args['footer']}] if type(_args['footer']) != list else [{'text':term} for term in _args['footer']] +# else: +# _info['layout']['footer'] = [{'text':'Powered by QCMS'}] + +# return _info +def make_folder (projectFolder, webroot): + """ + This function creates project folders, inside the project folder is the web root folder + """ + + if not os.path.exists(projectFolder): + os.makedirs(projectFolder) + _path = os.sep.join([projectFolder,webroot]) + folders = ['_assets',os.sep.join(['_assets','images']), os.sep.join(['_assets','themes']), '_plugins'] + for folder in folders : + _projectPath = os.sep.join([_path,folder]) + if not os.path.exists(_projectPath) : + os.makedirs(_projectPath) +def _ilogo (_path): + """ + This function creates a default logo in a designated folder, after the project folder has been created + :_path project path + """ + _image = """data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAANpElEQVR4Xu2dB9AlRRHHwZxzjt+Zc0KhzIeKEXMqA/CZoBTFrBjQExVUTJhKVPQUscyomBU9M+acMB0mTKhlzvj/Vb0t11e7b2fmzU7uqq7b+96k7fnvhJ6e7l13aVS1BHat+u3by+/SAFA5CBoAGgAql0Dlr99GgAaAyiVQ+eu3EaABoHIJVP76tY0A11R/P1J8I/FFxD8Tv098pPhHNWKhJgA8VB38AvEZBjr6z/rbPuLjagNBTgDg6z1J/FeHTrqD8rxDvOp9/6nfry/+okP52WbJBQBnk4S/L/63eJt4++LZRPCnV6Ifii9lkHiH0uxpkK6YJLkA4ImS+DN7Uv+Wnvn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/yG9n+v9fu/tvSt67+69uR39bf4f6t096y8QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIDD8n8AAAD//3gQeO0AAAAGSURBVAMAbOGtaUB1ghoAAAAASUVORK5CYII=""" + _index = 0 + for _image in [_image1,_image2] : + _,_image= _image.split(',',1) + _logoPath = os.sep.join([_path,'_assets','images','logo.png']) + if _index > 0 : + _logoPath = _logoPath.replace('.png',f'-{_index}.png') + f = open(_logoPath,'wb') + f.write(base64.b64decode(_image)) + f.close() + _index += 1 + +def _index (_path,root): + """ + Creating a default index.html for the site given the project root location + """ + _html = f""" +
+ +
+