shit i forgot to delete!

This commit is contained in:
elburg 2023-03-06 13:09:11 -08:00
parent c9b97a5f97
commit 706cb22c76
Signed by: elburg
SSH key fingerprint: SHA256:YIwwIdyxMVzucb76JnZZdIYGhh7ZuKB4F3CNTlTOW24
15 changed files with 0 additions and 178 deletions

View file

@ -1,4 +0,0 @@
{{ strings.msg.help.cmds.header }}:
{% for item in owo.misc.cmds %}
{% if item.argNames.short[0] %}

View file

@ -1,3 +0,0 @@
{% include 'output.help.usage.jinja' %}
{% include 'output.help.commands.jinja' %}

View file

@ -1 +0,0 @@
{{ strings.msg.help.usage.start }}: {{ owo.cliName }} [ options ] [ file | url ]

View file

@ -1,2 +0,0 @@
output:
- logLevel: DEBUG'

View file

@ -1,3 +0,0 @@
lang:
en: "English"

View file

@ -1,6 +0,0 @@
help:
usage:
start: "usage"
cmds:
header: "COMMANDS"

View file

@ -1,23 +0,0 @@
# -*- coding: utf-8 -*-
from . import config
from . import output
import logging
import sys
__author__ = "arris kathery"
__copyright__ = "copyright 2023 brendan berger"
__license__ = ""
__maintainer__ = "arris kathery"
__email__ = "whotookelburg@hotmail.com"
__version__ = "0.0.0-alpha0"
def main() -> dict:
out=output.OutputObject()
try:
# do shit
except KeyboardInterrupt:
return {'_kbi':True}

View file

@ -1,9 +0,0 @@
import owo, sys
if __name__ == "__main__":
output=owo.main()
del owo
if output._kb:
sys.exit()
else:
# output results

View file

@ -1,6 +0,0 @@
confDict = {}
def loadConfig(confLocation = "$HOME/.config/owo.yaml"):
from os import path
if not path.exists(confLocation):

View file

@ -1,55 +0,0 @@
from pathlib import Path
from sys import platform
from yaml import load, dump
import os
from re import search, IGNORECASE
import collections.abc
_config={}
_files=[]
_configloaded = False
_LOCATIONS = {
'_YAMLCONFPATH':{
'_DIR':[
"{}/owo/".format(os.environ["XDG_CONFIG_HOME"]) if "XDG_CONFIG_HOME" in os.environ else str(Path.home())+"/.config/owo/",
"{}/".format(os.environ["XDG_CONFIG_HOME"]) if "XDG_CONFIG_HOME" in os.environ else str(Path.home())+"/.config/",
str(Path('~').resolve()),
str(Path().resolve()) if str(Path.cwd()) not in self._DIRS else None
],
'_FNAME_RE':
r"([ou^>]w[ou^<]|config)\.(ya?ml|c(on)?fi?g?)$"
}
}
def _updateConf(toAdd: dict):
for key, value in toAdd.items():
if isinstance(value, collections.abc.Mapping):
def _loadYAMLConf(path: str):
try:
conf = yaml.load(file.read_text())
except Exception as exc:
# do an err
else:
if not _config:
_config = conf
else:
def initConfig(path: str) -> bool:
if _configloaded:
return True# If config already loaded, do not reload.
else:
try:
file = Path(path)
if file.exists() and not file.is_dir():
try:
conf = yaml.load(file.read_text())
except Exception as exc:
# do an err
else:
if not _config

View file

@ -1,31 +0,0 @@
_DEFAULT = {
'_DATETEMP':'%a, %d %b %Y %H:%M:%S %Z%z',
'_INCLUDE':[
'env',
]
}
def dateFormat(input: str = _DEFAULT._DATETEMP,use_local:bool=True) -> str:
from time import strftime
if use_local:
from time import localtime
return strftime(input,localtime())
else:
from time import gmtime
return strftime(input,gmtime())
def stringformat(
input: str,
include: list = _DEFAULT._INCLUDE
) -> str:
imap = {
'time': dateFormat()
}
if 'env' in include:
import os
imap['env'] = os.environ
del os
return input.format_map(imap)

View file

@ -1,24 +0,0 @@
import logging
# outputDict={
# 'status': 1,
# 'input': {
# 'argsRaw': sys.argv,
# 'streamObjects': []
# },
# 'output': [],
# 'errors': []
# }
class OutputObject:
def __init__(self):
self.status = 1
import sys
self.input = {
'argsRaw': sys.argv,
'streamObjects': []
}
del sys
self.output = []
self.errors = []

View file

@ -1 +0,0 @@
from . import OutputObject

View file

View file

@ -1,10 +0,0 @@
from .NetworkPath import NetworkPath
from ...config.datafiles.owoDataFile import owoDataFile
from ...config import moduleConfig
class DownloadJob:
def __init__(self,
url: NetworkPath,
engine: string = moduleConfig.source.network.engine,
engineConfig: dict = moduleConfig.source.network.engineConfig