diff options
| author | Wayne-Cole <77279425+Wacky404@users.noreply.github.com> | 2024-10-05 22:22:46 -0500 |
|---|---|---|
| committer | Wayne-Cole <77279425+Wacky404@users.noreply.github.com> | 2024-10-05 22:22:46 -0500 |
| commit | 4d3b3d03af8c6125171f38685ec70ef854a4c64e (patch) | |
| tree | a3ad6c8ebe4232247b7e876cfa1f8b3dd8c660e8 | |
| parent | e9140a4277dad28b4d51bcb213569c746ca100b1 (diff) | |
| download | worklogger-4d3b3d03af8c6125171f38685ec70ef854a4c64e.tar.xz worklogger-4d3b3d03af8c6125171f38685ec70ef854a4c64e.zip | |
refactor: change dir structure and filename for global usage
| -rw-r--r-- | src/__pycache__/args_worklogger.cpython-312.pyc | bin | 2223 -> 2210 bytes | |||
| -rw-r--r-- | src/args_worklogger (renamed from src/args_worklogger.py) | 2 | ||||
| -rw-r--r-- | src/funcs_worklogger (renamed from src/funcs_worklogger.py) | 16 | ||||
| -rw-r--r-- | src/funcs_worklogger.pyi | 6 | ||||
| -rw-r--r-- | src/log_util_worklogger (renamed from src/utils/log_util.py) | 7 | ||||
| -rw-r--r-- | src/logs/WorkLogger.log | 97 | ||||
| -rw-r--r-- | src/paths_util_worklogger (renamed from src/utils/paths_util.py) | 7 | ||||
| -rw-r--r-- | src/utils/__init__.py | 0 | ||||
| -rw-r--r-- | src/utils/__pycache__/__init__.cpython-312.pyc | bin | 158 -> 0 bytes | |||
| -rw-r--r-- | src/utils/__pycache__/log_util.cpython-312.pyc | bin | 1238 -> 0 bytes | |||
| -rw-r--r-- | src/utils/__pycache__/paths_util.cpython-312.pyc | bin | 665 -> 0 bytes | |||
| -rwxr-xr-x[-rw-r--r--] | src/worklog (renamed from src/worklog.py) | 29 |
12 files changed, 147 insertions, 17 deletions
diff --git a/src/__pycache__/args_worklogger.cpython-312.pyc b/src/__pycache__/args_worklogger.cpython-312.pyc Binary files differindex 6f49f37..ff9c57d 100644 --- a/src/__pycache__/args_worklogger.cpython-312.pyc +++ b/src/__pycache__/args_worklogger.cpython-312.pyc diff --git a/src/args_worklogger.py b/src/args_worklogger index 3b1f924..18b0bad 100644 --- a/src/args_worklogger.py +++ b/src/args_worklogger @@ -1,8 +1,10 @@ +#!/opt/homebrew/bin/python3 """ ARGUMENTS FILE FOR WORKLOGGER author: Wacky404 email: wacky404@dev.com """ + import argparse parser = argparse.ArgumentParser( diff --git a/src/funcs_worklogger.py b/src/funcs_worklogger index 5f589ed..e7f9ca2 100644 --- a/src/funcs_worklogger.py +++ b/src/funcs_worklogger @@ -1,11 +1,17 @@ -from utils.log_util import logger -from utils import paths_util as pu +#!/opt/homebrew/bin/python3 +""" +IMPLEMENTATION FILE FOR WORKLOGGER +author: Wacky404 +email: wacky404@dev.com +""" -import os.path as osp -import os +from log_util_worklogger import logger from datetime import timezone -import datetime import csv +import datetime +import os +import os.path as osp +import paths_util as pu def configure(dir_list=None): diff --git a/src/funcs_worklogger.pyi b/src/funcs_worklogger.pyi index 2b78fb2..d9d15c3 100644 --- a/src/funcs_worklogger.pyi +++ b/src/funcs_worklogger.pyi @@ -1,3 +1,9 @@ +""" +INTERFACE FILE FOR WORKLOGGER +author: Wacky404 +email: wacky404@dev.com +""" + from argparse import Namespace from pathlib import Path diff --git a/src/utils/log_util.py b/src/log_util_worklogger index 7c31a32..966f035 100644 --- a/src/utils/log_util.py +++ b/src/log_util_worklogger @@ -1,3 +1,10 @@ +#!/opt/homebrew/bin/python3 +""" +LOGGER SETUP FILE FOR WORKLOGGER +author: Wacky404 +email: wacky404@dev.com +""" + import logging.config diff --git a/src/logs/WorkLogger.log b/src/logs/WorkLogger.log index e4b9db2..f747d85 100644 --- a/src/logs/WorkLogger.log +++ b/src/logs/WorkLogger.log @@ -89,3 +89,100 @@ FileExistsError: [Errno 17] File exists: '/Users/cole/Documents/GitHub/worklogge [DEBUG|worklog|L96] 2024-10-02T14:35:11-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json [INFO|worklog|L72] 2024-10-02T14:35:11-0500: Written Paces worklog to /Users/cole/Documents/GitHub/worklogger/Output [INFO|worklog|L72] 2024-10-02T14:35:11-0500: Written Paces worklog to /Users/cole/Documents/worklogger +[DEBUG|worklog|L51] 2024-10-05T17:11:46-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T17:11:46-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L51] 2024-10-05T17:14:08-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T17:14:08-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L51] 2024-10-05T17:17:34-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T17:17:34-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T17:17:34-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[INFO|funcs_worklogger|L71] 2024-10-05T17:17:34-0500: Written not so great company worklog to /Users/cole/Documents/GitHub/worklogger/Output +[INFO|funcs_worklogger|L71] 2024-10-05T17:17:34-0500: Written not so great company worklog to /Users/cole/Documents/worklogger +[DEBUG|worklog|L51] 2024-10-05T17:21:04-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T17:21:04-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T17:21:04-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|worklog|L51] 2024-10-05T17:22:08-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T17:22:08-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T17:22:08-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L53] 2024-10-05T17:22:08-0500: Job: not so great company; Projects: {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'} +[INFO|funcs_worklogger|L71] 2024-10-05T17:22:08-0500: Written not so great company worklog to /Users/cole/Documents/GitHub/worklogger/Output +[INFO|funcs_worklogger|L71] 2024-10-05T17:22:08-0500: Written not so great company worklog to /Users/cole/Documents/worklogger +[DEBUG|worklog|L51] 2024-10-05T17:23:47-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T17:23:47-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T17:23:47-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L53] 2024-10-05T17:23:47-0500: Job: not so great company; Projects: {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'} +[INFO|funcs_worklogger|L71] 2024-10-05T17:23:47-0500: Written not so great company worklog to /Users/cole/Documents/GitHub/worklogger/Output +[INFO|funcs_worklogger|L71] 2024-10-05T17:23:47-0500: Written not so great company worklog to /Users/cole/Documents/worklogger +[DEBUG|worklog|L51] 2024-10-05T17:41:53-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T17:41:53-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T17:41:53-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L53] 2024-10-05T17:41:53-0500: Job: not so great company; Projects: {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'} +[INFO|funcs_worklogger|L75] 2024-10-05T17:41:53-0500: Written not so great company worklog to /Users/cole/Documents/GitHub/worklogger/Output +[INFO|funcs_worklogger|L75] 2024-10-05T17:41:53-0500: Written not so great company worklog to /Users/cole/Documents/worklogger +[DEBUG|worklog|L51] 2024-10-05T17:45:04-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T17:45:04-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T17:45:04-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L53] 2024-10-05T17:45:04-0500: Job: not so great company; Projects: {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'} +[INFO|funcs_worklogger|L79] 2024-10-05T17:45:04-0500: Written not so great company worklog to /Users/cole/Documents/GitHub/worklogger/Output +[INFO|funcs_worklogger|L79] 2024-10-05T17:45:04-0500: Written not so great company worklog to /Users/cole/Documents/worklogger +[DEBUG|worklog|L51] 2024-10-05T20:49:58-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T20:49:58-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T20:49:58-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|worklog|L51] 2024-10-05T20:52:16-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T20:52:16-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T20:52:16-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L42] 2024-10-05T20:52:16-0500: Parse: , UASYS.txt +[DEBUG|worklog|L51] 2024-10-05T20:56:04-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T20:56:04-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T20:56:04-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L42] 2024-10-05T20:56:04-0500: Parse: UASYS, .txt +[DEBUG|worklog|L51] 2024-10-05T20:58:53-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T20:58:53-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T20:58:53-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L42] 2024-10-05T20:58:53-0500: Parse: UASYS, .txt +[DEBUG|funcs_worklogger|L113] 2024-10-05T20:58:53-0500: Couldn't specified projects for uasys in config. +[INFO|funcs_worklogger|L130] 2024-10-05T20:58:53-0500: Written uasys worklog to /Users/cole/Documents/worklogger +[DEBUG|worklog|L51] 2024-10-05T21:02:14-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T21:02:14-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T21:02:14-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L42] 2024-10-05T21:02:14-0500: Parse: UASYS, .txt +[DEBUG|funcs_worklogger|L114] 2024-10-05T21:02:14-0500: Couldn't specified projects for uasys in config. +[INFO|funcs_worklogger|L131] 2024-10-05T21:02:14-0500: Written uasys worklog to /Users/cole/Documents/worklogger +[DEBUG|worklog|L51] 2024-10-05T21:04:51-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T21:04:51-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T21:04:51-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L42] 2024-10-05T21:04:51-0500: Parse: UASYS, .txt +[DEBUG|worklog|L51] 2024-10-05T21:06:46-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T21:06:46-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T21:06:46-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L42] 2024-10-05T21:06:46-0500: Parse: UASYS, .txt +[DEBUG|worklog|L51] 2024-10-05T21:08:30-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T21:08:30-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T21:08:30-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L42] 2024-10-05T21:08:30-0500: Parse: UASYS, .txt +[DEBUG|funcs_worklogger|L115] 2024-10-05T21:08:53-0500: Couldn't specified projects for uasys in config. +[INFO|funcs_worklogger|L132] 2024-10-05T21:08:53-0500: Written uasys worklog to /Users/cole/Documents/worklogger +[DEBUG|worklog|L51] 2024-10-05T21:10:09-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T21:10:09-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T21:10:09-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L42] 2024-10-05T21:10:09-0500: Parse: UASYS, .txt +[DEBUG|funcs_worklogger|L115] 2024-10-05T21:10:13-0500: Couldn't specified projects for uasys in config. +[INFO|funcs_worklogger|L132] 2024-10-05T21:10:13-0500: Written uasys worklog to /Users/cole/Documents/worklogger +[DEBUG|worklog|L51] 2024-10-05T21:12:14-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T21:12:14-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T21:12:14-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L42] 2024-10-05T21:12:14-0500: Parse: UASYS, .txt +[DEBUG|funcs_worklogger|L114] 2024-10-05T21:12:24-0500: Couldn't specified projects for uasys in config. +[INFO|funcs_worklogger|L131] 2024-10-05T21:12:24-0500: Written uasys worklog to /Users/cole/Documents/worklogger +[DEBUG|worklog|L51] 2024-10-05T21:17:10-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T21:17:10-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T21:17:10-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L42] 2024-10-05T21:17:10-0500: Parse: UASYS, .txt +[DEBUG|funcs_worklogger|L118] 2024-10-05T21:17:23-0500: Couldn't specified projects for uasys in config. +[INFO|funcs_worklogger|L140] 2024-10-05T21:17:23-0500: Written uasys worklog to /Users/cole/Documents/worklogger +[DEBUG|worklog|L51] 2024-10-05T21:18:20-0500: Using user config file in /Users/cole/Documents/GitHub/worklogger/src/../.workloggerconfig.json +[DEBUG|worklog|L81] 2024-10-05T21:18:20-0500: {'GREAT COMPANY': {'proj 1': 'null', 'proj 2': '0987654321', 'proj 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'codename: secrete': '404', 'govwork': '902753203', 'exemplary': '9023hdalw903'}, 'UASYS': {'General': 'anything'}} +[DEBUG|worklog|L90] 2024-10-05T21:18:20-0500: {'GREAT COMPANY': {'PROJ 1': 'null', 'PROJ 2': '0987654321', 'PROJ 3': '1234567890'}, 'NOT SO GREAT COMPANY': {'CODENAME: SECRETE': '404', 'GOVWORK': '902753203', 'EXEMPLARY': '9023hdalw903'}, 'UASYS': {'GENERAL': 'anything'}} +[DEBUG|funcs_worklogger|L42] 2024-10-05T21:18:20-0500: Parse: UASYS, .txt +[DEBUG|funcs_worklogger|L118] 2024-10-05T21:18:20-0500: Couldn't specified projects for uasys in config. +[INFO|funcs_worklogger|L140] 2024-10-05T21:18:20-0500: Written uasys worklog to /Users/cole/Documents/worklogger diff --git a/src/utils/paths_util.py b/src/paths_util_worklogger index dd5044e..eb6bf81 100644 --- a/src/utils/paths_util.py +++ b/src/paths_util_worklogger @@ -1,3 +1,10 @@ +#!/opt/homebrew/bin/python3 +""" +FILEPATHS FILE FOR WORKLOGGER +author: Wacky404 +email: wacky404@dev.com +""" + from pathlib import Path import os.path as osp import os diff --git a/src/utils/__init__.py b/src/utils/__init__.py deleted file mode 100644 index e69de29..0000000 --- a/src/utils/__init__.py +++ /dev/null diff --git a/src/utils/__pycache__/__init__.cpython-312.pyc b/src/utils/__pycache__/__init__.cpython-312.pyc Binary files differdeleted file mode 100644 index 20a31d8..0000000 --- a/src/utils/__pycache__/__init__.cpython-312.pyc +++ /dev/null diff --git a/src/utils/__pycache__/log_util.cpython-312.pyc b/src/utils/__pycache__/log_util.cpython-312.pyc Binary files differdeleted file mode 100644 index 490312e..0000000 --- a/src/utils/__pycache__/log_util.cpython-312.pyc +++ /dev/null diff --git a/src/utils/__pycache__/paths_util.cpython-312.pyc b/src/utils/__pycache__/paths_util.cpython-312.pyc Binary files differdeleted file mode 100644 index a2e95ae..0000000 --- a/src/utils/__pycache__/paths_util.cpython-312.pyc +++ /dev/null diff --git a/src/worklog.py b/src/worklog index 56ae46a..2b9d362 100644..100755 --- a/src/worklog.py +++ b/src/worklog @@ -1,17 +1,22 @@ -from pathlib import Path -from utils.log_util import logger, setup_logging - -from args_worklogger import parser -from funcs_worklogger import configure, add_log, arg_convert -from utils import paths_util as pu -import logging +#!/opt/homebrew/bin/python3 +""" +MAIN FILE FOR WORKLOGGER +author: Wacky404 +email: wacky404@dev.com +""" -import os.path as osp -import os -import sys -import json -from datetime import timezone import datetime +from datetime import timezone +import json +import sys +import os +import os.path as osp +import logging +import paths_util as pu +from funcs_worklogger import configure, add_log, arg_convert +from args_worklogger import parser +from pathlib import Path +from log_util_worklogger import logger, setup_logging SAVEPATH: Path | str |
