radboy 0.0.771__py3-none-any.whl → 0.0.854__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of radboy might be problematic. Click here for more details.
- radboy/Comm/RxTx.py +4 -493
- radboy/Comm/__pycache__/RxTx.cpython-313.pyc +0 -0
- radboy/CookBook/CookBook.py +4 -0
- radboy/DB/ExerciseTracker.py +64 -27
- radboy/DB/GEMINI.py +146 -0
- radboy/DB/Prompt.py +150 -7
- radboy/DB/__pycache__/ExerciseTracker.cpython-313.pyc +0 -0
- radboy/DB/__pycache__/Prompt.cpython-313.pyc +0 -0
- radboy/DB/__pycache__/db.cpython-313.pyc +0 -0
- radboy/DB/db.py +141 -10
- radboy/DayLog/DayLogger.py +1 -1
- radboy/DayLog/__pycache__/DayLogger.cpython-313.pyc +0 -0
- radboy/FB/FBMTXT.py +48 -1
- radboy/FB/__pycache__/FBMTXT.cpython-313.pyc +0 -0
- radboy/HowDoYouDefineMe/CoreEmotions.py +268 -9
- radboy/Lookup2/Lookup2.py +31 -1
- radboy/Lookup2/__pycache__/Lookup2.cpython-313.pyc +0 -0
- radboy/RNE/RNE.py +7 -0
- radboy/RNE/__pycache__/RNE.cpython-313.pyc +0 -0
- radboy/TasksMode/SetEntryNEU.py +16 -2
- radboy/TasksMode/Tasks.py +546 -101
- radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc +0 -0
- radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc +0 -0
- radboy/Unified/BACKUP.py +443 -0
- radboy/Unified/Unified.py +2 -321
- radboy/Unified/__pycache__/Unified.cpython-313.pyc +0 -0
- radboy/Unified/__pycache__/bareCA.cpython-313.pyc +0 -0
- radboy/Unified/__pycache__/clearalll.cpython-313.pyc +0 -0
- radboy/Unified/bareCA.py +26 -2
- radboy/Unified/clearalll.py +6 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- radboy/code.png +0 -0
- radboy/preloader/preloader.py +70 -0
- radboy/preloader/preloader_func.py +688 -2
- {radboy-0.0.771.dist-info → radboy-0.0.854.dist-info}/METADATA +1 -1
- {radboy-0.0.771.dist-info → radboy-0.0.854.dist-info}/RECORD +39 -37
- {radboy-0.0.771.dist-info → radboy-0.0.854.dist-info}/WHEEL +0 -0
- {radboy-0.0.771.dist-info → radboy-0.0.854.dist-info}/top_level.txt +0 -0
radboy/Unified/Unified.py
CHANGED
|
@@ -35,6 +35,7 @@ from radboy.EntryExtras.Extras import *
|
|
|
35
35
|
from radboy import VERSION
|
|
36
36
|
import radboy.possibleCode as pc
|
|
37
37
|
from radboy.Unified.clearalll import *
|
|
38
|
+
from radboy.Unified.BACKUP import *
|
|
38
39
|
def format_bytes(size):
|
|
39
40
|
"""
|
|
40
41
|
Auto-convert bytes to a human-readable format.
|
|
@@ -693,327 +694,7 @@ Location Fields:
|
|
|
693
694
|
print(os.system("clear "))
|
|
694
695
|
return True
|
|
695
696
|
elif args[0].lower() in ['backup',]:
|
|
696
|
-
|
|
697
|
-
if backup_dir == None:
|
|
698
|
-
backup_dir=Path('.')
|
|
699
|
-
else:
|
|
700
|
-
backup_dir=Path(backup_dir)
|
|
701
|
-
if not backup_dir.exists():
|
|
702
|
-
backup_dir.mkdir(parents=True)
|
|
703
|
-
startTime=datetime.now()
|
|
704
|
-
print(f"{Fore.orange_red_1}Backing {Fore.light_yellow}Files {Fore.light_green}up!{Style.reset}")
|
|
705
|
-
backup=''
|
|
706
|
-
while True:
|
|
707
|
-
try:
|
|
708
|
-
def mkBool(text,data):
|
|
709
|
-
try:
|
|
710
|
-
if text.lower() in ['','true','y','yes','1']:
|
|
711
|
-
return True
|
|
712
|
-
elif text.lower() in ['n','false','no','0']:
|
|
713
|
-
return False
|
|
714
|
-
else:
|
|
715
|
-
return bool(eval(text))
|
|
716
|
-
except Exception as e:
|
|
717
|
-
print(e)
|
|
718
|
-
return False
|
|
719
|
-
date_file=Prompt.__init2__(None,func=mkBool,ptext="Date and Time restore File?",helpText="y/n?",data=self)
|
|
720
|
-
if date_file in [None,]:
|
|
721
|
-
return True
|
|
722
|
-
elif isinstance(date_file,bool):
|
|
723
|
-
if date_file:
|
|
724
|
-
d=datetime.now().strftime("%m-%d-%Y-%H-%M-%S")
|
|
725
|
-
backup=backup_dir/Path(f"codesAndBarcodes-{d}.tgz")
|
|
726
|
-
else:
|
|
727
|
-
backup=backup_dir/Path(f"codesAndBarcodes.tgz")
|
|
728
|
-
else:
|
|
729
|
-
backup=backup_dir/Path(f"codesAndBarcodes-{d}.tgz")
|
|
730
|
-
break
|
|
731
|
-
except Exception as e:
|
|
732
|
-
print(e)
|
|
733
|
-
return True
|
|
734
|
-
if backup.exists():
|
|
735
|
-
backup.unlink()
|
|
736
|
-
|
|
737
|
-
with tarfile.open(backup,"w:gz") as gzf:
|
|
738
|
-
#gzf.add("codesAndBarcodes.db")
|
|
739
|
-
#gzf.add("Images")
|
|
740
|
-
#gzf.add("LCL_IMG")
|
|
741
|
-
with open("Run.py","wb") as runner:
|
|
742
|
-
lines=f'''#!/usr/bin/env python3
|
|
743
|
-
from pathlib import Path
|
|
744
|
-
ROOTDIR=str(Path().cwd())
|
|
745
|
-
from radboy import RecordMyCodes as rmc
|
|
746
|
-
rmc.quikRn(rootdir=ROOTDIR)'''.encode()
|
|
747
|
-
runner.write(lines)
|
|
748
|
-
'''
|
|
749
|
-
try:
|
|
750
|
-
print("adding module...")
|
|
751
|
-
m=Path("module")
|
|
752
|
-
if m.exists():
|
|
753
|
-
shutil.rmtree(m)
|
|
754
|
-
m.mkdir()
|
|
755
|
-
else:
|
|
756
|
-
m.mkdir()
|
|
757
|
-
os.system(f"pip download MobileInventoryCLI=={VERSION} -d {m}")
|
|
758
|
-
gzf.add(m)
|
|
759
|
-
print("added module code!")
|
|
760
|
-
except Exception as e:
|
|
761
|
-
print("could not finish adding modules/")
|
|
762
|
-
'''
|
|
763
|
-
#shutil.rmtree(m)
|
|
764
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{Path('Run.py')}{Style.reset}")
|
|
765
|
-
gzf.add("Run.py")
|
|
766
|
-
|
|
767
|
-
while True:
|
|
768
|
-
try:
|
|
769
|
-
def mkBool(text,self):
|
|
770
|
-
if text.lower() in ['','n','no','-']:
|
|
771
|
-
return False
|
|
772
|
-
elif text.lower() in ['y','yes','+']:
|
|
773
|
-
return True
|
|
774
|
-
else:
|
|
775
|
-
try:
|
|
776
|
-
return bool(eval(text))
|
|
777
|
-
except Exception as e:
|
|
778
|
-
print(e)
|
|
779
|
-
return False
|
|
780
|
-
rmRunner=Prompt.__init2__(None,func=mkBool,ptext="Delete 'Run.py'",helpText="default == 'No'",data=self)
|
|
781
|
-
if rmRunner:
|
|
782
|
-
Path("Run.py").unlink()
|
|
783
|
-
break
|
|
784
|
-
except Exception as e:
|
|
785
|
-
print(e)
|
|
786
|
-
|
|
787
|
-
with open("version.txt","w+") as version_txt:
|
|
788
|
-
version_txt.write(VERSION)
|
|
789
|
-
|
|
790
|
-
if Path("version.txt").exists():
|
|
791
|
-
print(f'{Fore.spring_green_3b}Adding {Fore.green_yellow}{Path("version.txt")}{Style.reset}')
|
|
792
|
-
gzf.add("version.txt")
|
|
793
|
-
Path("version.txt").unlink()
|
|
794
|
-
|
|
795
|
-
api_key_file=Path("./api_key")
|
|
796
|
-
if api_key_file.exists():
|
|
797
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{api_key_file}{Style.reset}")
|
|
798
|
-
gzf.add(api_key_file)
|
|
799
|
-
|
|
800
|
-
msg=f'''
|
|
801
|
-
{Fore.orange_red_1}Getting system settings files, testing for existance, if not found leaving alone!!!{Style.reset}
|
|
802
|
-
'''
|
|
803
|
-
print(msg)
|
|
804
|
-
#from ExportUtility/ExportTableClass.py
|
|
805
|
-
import_odf=detectGetOrSet("ImportODF",value="ImportExcel.xlsx.ods",literal=True)
|
|
806
|
-
if import_odf:
|
|
807
|
-
import_odf=Path(import_odf)
|
|
808
|
-
if import_odf.exists():
|
|
809
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{import_odf}{Style.reset}")
|
|
810
|
-
gzf.add(import_odf)
|
|
811
|
-
|
|
812
|
-
import_excel=detectGetOrSet("ImportExcel",value="ImportExcel.xlsx",literal=True)
|
|
813
|
-
if import_excel:
|
|
814
|
-
import_excel=Path(import_excel)
|
|
815
|
-
if import_excel.exists():
|
|
816
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{import_excel}{Style.reset}")
|
|
817
|
-
gzf.add(import_excel)
|
|
818
|
-
|
|
819
|
-
export_folder=Path(detectGetOrSet("ExportTablesFolder",value="ExportedTables",literal=True))
|
|
820
|
-
if export_folder:
|
|
821
|
-
export_folder=Path(export_folder)
|
|
822
|
-
if export_folder.exists() and export_folder.is_dir():
|
|
823
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{export_folder}{Style.reset}")
|
|
824
|
-
gzf.add(export_folder)
|
|
825
|
-
|
|
826
|
-
bootable="__bootable__.py"
|
|
827
|
-
if bootable:
|
|
828
|
-
bootable=Path(bootable)
|
|
829
|
-
if bootable.exists() and bootable.is_file():
|
|
830
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{bootable}{Style.reset}")
|
|
831
|
-
gzf.add(bootable)
|
|
832
|
-
|
|
833
|
-
pay_ws=Path("EstimatedPayCalendarWorkSheet.txt")
|
|
834
|
-
pay_ws=Path(detectGetOrSet("EstimatedPayCalendarExportFile",pay_ws,setValue=False,literal=True))
|
|
835
|
-
if pay_ws:
|
|
836
|
-
if pay_ws.exists():
|
|
837
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{pay_ws}{Style.reset}")
|
|
838
|
-
gzf.add(pay_ws)
|
|
839
|
-
|
|
840
|
-
combinations_receipt=Path(detectGetOrSet("combinations_receipt","combos.json.csv",setValue=False,literal=True))
|
|
841
|
-
if combinations_receipt:
|
|
842
|
-
if combinations_receipt.exists():
|
|
843
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{combinations_receipt}{Style.reset}")
|
|
844
|
-
gzf.add(combinations_receipt)
|
|
845
|
-
|
|
846
|
-
WebArchiveStore_folder=Path(detectGetOrSet("WebArchiveDownloadsFilePath","WebArchiveDownloads",literal=True))
|
|
847
|
-
if WebArchiveStore_folder:
|
|
848
|
-
WebArchiveStore_folder=Path(WebArchiveStore_folder)
|
|
849
|
-
if WebArchiveStore_folder.exists() and WebArchiveStore_folder.is_dir():
|
|
850
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{WebArchiveStore_folder}{Style.reset}")
|
|
851
|
-
gzf.add(WebArchiveStore_folder)
|
|
852
|
-
#from DB/Prompt.py
|
|
853
|
-
scanout=detectGetOrSet('CMD_TO_FILE',str(Path('./SCANNER.TXT')))
|
|
854
|
-
if scanout:
|
|
855
|
-
scanout=Path(scanout)
|
|
856
|
-
if scanout.exists():
|
|
857
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{scanout}{Style.reset}")
|
|
858
|
-
gzf.add(scanout)
|
|
859
|
-
|
|
860
|
-
#from TouchStampC/TouchStampC.py
|
|
861
|
-
ts_outfile=detectGetOrSet("TouchStampSearchExport",value="TS_NOTE.txt",literal=True)
|
|
862
|
-
if ts_outfile:
|
|
863
|
-
ts_outfile=Path(ts_outfile)
|
|
864
|
-
if ts_outfile.exists():
|
|
865
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{ts_outfile}{Style.reset}")
|
|
866
|
-
gzf.add(ts_outfile)
|
|
867
|
-
|
|
868
|
-
#from Roster/Roster.py
|
|
869
|
-
src_t="Downloads/Roster.xlsx"
|
|
870
|
-
lcl_e_src=detectGetOrSet("localEXCEL",src_t,literal=True,setValue=False)
|
|
871
|
-
if lcl_e_src:
|
|
872
|
-
lcl_e_src=Path(lcl_e_src)
|
|
873
|
-
if lcl_e_src.exists():
|
|
874
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{lcl_e_src}{Style.reset}")
|
|
875
|
-
gzf.add(lcl_e_src)
|
|
876
|
-
#from TasksMode/Tasks.py
|
|
877
|
-
bcd_final_out=detectGetOrSet("IMG_GEN_OUT_QR","GENERATED_QR.png",literal=True)
|
|
878
|
-
if bcd_final_out:
|
|
879
|
-
bcd_final_out=Path(bcd_final_out)
|
|
880
|
-
if bcd_final_out.exists():
|
|
881
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{bcd_final_out}{Style.reset}")
|
|
882
|
-
gzf.add(bcd_final_out)
|
|
883
|
-
|
|
884
|
-
qr_final_out=detectGetOrSet("IMG_GEN_OUT","GENERATED_BCD",literal=True)
|
|
885
|
-
if qr_final_out:
|
|
886
|
-
qr_final_out=Path(qr_final_out+".png")
|
|
887
|
-
if qr_final_out.exists():
|
|
888
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{qr_final_out}{Style.reset}")
|
|
889
|
-
gzf.add(qr_final_out)
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
EMSGFILE=detectGetOrSet("OBFUSCATED MSG FILE","MSG.txt",literal=True)
|
|
893
|
-
if EMSGFILE:
|
|
894
|
-
EMSGFILE=Path(EMSGFILE)
|
|
895
|
-
if EMSGFILE.exists():
|
|
896
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{EMSGFILE}{Style.reset}")
|
|
897
|
-
gzf.add(EMSGFILE)
|
|
898
|
-
|
|
899
|
-
dbf=Path("codesAndBarcodes.db")
|
|
900
|
-
if dbf.exists():
|
|
901
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{dbf}{Style.reset}")
|
|
902
|
-
gzf.add(dbf)
|
|
903
|
-
|
|
904
|
-
password_file=Path('Password.txt')
|
|
905
|
-
if password_file:
|
|
906
|
-
password_file=Path(password_file)
|
|
907
|
-
if password_file.exists():
|
|
908
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{password_file}{Style.reset}")
|
|
909
|
-
gzf.add(password_file)
|
|
910
|
-
|
|
911
|
-
bld_list=Path('BLD.txt')
|
|
912
|
-
if bld_list:
|
|
913
|
-
bld_list=Path(bld_list)
|
|
914
|
-
if bld_list.exists():
|
|
915
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{bld_list}{Style.reset}")
|
|
916
|
-
gzf.add(bld_list)
|
|
917
|
-
|
|
918
|
-
EntryTXT=Path('EntryTXT.txt')
|
|
919
|
-
if EntryTXT:
|
|
920
|
-
EntryTXT=Path(EntryTXT)
|
|
921
|
-
if EntryTXT.exists():
|
|
922
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{EntryTXT}{Style.reset}")
|
|
923
|
-
gzf.add(EntryTXT)
|
|
924
|
-
|
|
925
|
-
ExtraTXT=Path('ExtraTXT.txt')
|
|
926
|
-
if ExtraTXT:
|
|
927
|
-
ExtraTXT=Path(ExtraTXT)
|
|
928
|
-
if ExtraTXT.exists():
|
|
929
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{ExtraTXT}{Style.reset}")
|
|
930
|
-
gzf.add(ExtraTXT)
|
|
931
|
-
|
|
932
|
-
generated_string=Path('GeneratedString.txt')
|
|
933
|
-
if generated_string:
|
|
934
|
-
generated_string=Path(generated_string)
|
|
935
|
-
if generated_string.exists():
|
|
936
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{generated_string}{Style.reset}")
|
|
937
|
-
gzf.add(generated_string)
|
|
938
|
-
|
|
939
|
-
holidays_file=Path('Holidays.txt')
|
|
940
|
-
if holidays_file:
|
|
941
|
-
holidays_file=Path(holidays_file)
|
|
942
|
-
if holidays_file.exists():
|
|
943
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{holidays_file}{Style.reset}")
|
|
944
|
-
gzf.add(holidays_file)
|
|
945
|
-
|
|
946
|
-
cost_report_xlsx_file=Path(detectGetOrSet("xlsx_cr_export","cost_report.xlsx",setValue=False,literal=True))
|
|
947
|
-
if cost_report_xlsx_file:
|
|
948
|
-
cost_report_xlsx_file=Path(cost_report_xlsx_file)
|
|
949
|
-
if cost_report_xlsx_file.exists():
|
|
950
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{cost_report_xlsx_file}{Style.reset}")
|
|
951
|
-
gzf.add(cost_report_xlsx_file)
|
|
952
|
-
|
|
953
|
-
cost_report_txt_file=Path(detectGetOrSet("text_cr_export","cost_report.txt",setValue=False,literal=True))
|
|
954
|
-
if cost_report_txt_file:
|
|
955
|
-
cost_report_txt_file=Path(cost_report_txt_file)
|
|
956
|
-
if cost_report_txt_file.exists():
|
|
957
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{cost_report_txt_file}{Style.reset}")
|
|
958
|
-
gzf.add(cost_report_txt_file)
|
|
959
|
-
|
|
960
|
-
bootable_directory=Path("RadBoy_Boot_Directory")
|
|
961
|
-
if bootable_directory.exists():
|
|
962
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{bootable_directory}{Style.reset}")
|
|
963
|
-
gzf.add(bootable_directory)
|
|
964
|
-
|
|
965
|
-
try:
|
|
966
|
-
recieptidFile=Path(detectGetOrSet("NanoIdFile","nanoid.txt",setValue=False,literal=True))
|
|
967
|
-
if recieptidFile.exists():
|
|
968
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{recieptidFile}{Style.reset}")
|
|
969
|
-
gzf.add(recieptidFile)
|
|
970
|
-
except Exception as e:
|
|
971
|
-
print(e)
|
|
972
|
-
pass
|
|
973
|
-
try:
|
|
974
|
-
recieptidFile=Path(detectGetOrSet("RecieptIdFile","reciept_id.txt",setValue=False,literal=True))
|
|
975
|
-
if recieptidFile.exists():
|
|
976
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{recieptidFile}{Style.reset}")
|
|
977
|
-
gzf.add(recieptidFile)
|
|
978
|
-
except Exception as e:
|
|
979
|
-
print(e)
|
|
980
|
-
pass
|
|
981
|
-
|
|
982
|
-
receiptsDirectory=detectGetOrSet("ReceiptsDirectory","Receipts",setValue=False,literal=True)
|
|
983
|
-
if receiptsDirectory:
|
|
984
|
-
receiptsDirectory=Path(receiptsDirectory)
|
|
985
|
-
if not receiptsDirectory.exists():
|
|
986
|
-
receiptsDirectory.mkdir(parents=True)
|
|
987
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{receiptsDirectory}{Style.reset}")
|
|
988
|
-
gzf.add(receiptsDirectory)
|
|
989
|
-
|
|
990
|
-
with Session(ENGINE) as session:
|
|
991
|
-
files=session.query(SystemPreference).filter(SystemPreference.name.icontains('ClipBoordImport_')).all()
|
|
992
|
-
for num,i in enumerate(files):
|
|
993
|
-
#print(num,json.loads(i.value_4_Json2DictString)[i.name],"Being Added from SystemPreference!")
|
|
994
|
-
try:
|
|
995
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{json.loads(i.value_4_Json2DictString)[i.name]}{Style.reset}")
|
|
996
|
-
gzf.add(json.loads(i.value_4_Json2DictString)[i.name])
|
|
997
|
-
except Exception as e:
|
|
998
|
-
print(e,"couldn't not add!")
|
|
999
|
-
|
|
1000
|
-
imd=Path("Images")
|
|
1001
|
-
if imd.exists():
|
|
1002
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{imd}{Style.reset}")
|
|
1003
|
-
gzf.add(imd)
|
|
1004
|
-
lclimg=Path("LCL_IMG")
|
|
1005
|
-
if lclimg.exists():
|
|
1006
|
-
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{lclimg}{Style.reset}")
|
|
1007
|
-
gzf.add(lclimg)
|
|
1008
|
-
|
|
1009
|
-
print(backup.absolute())
|
|
1010
|
-
|
|
1011
|
-
endTime=datetime.now()
|
|
1012
|
-
msg=f'''{Fore.light_red}{backup}{Fore.light_steel_blue} Took {Fore.green_yellow}{endTime-startTime}{Fore.light_steel_blue} to backup'''
|
|
1013
|
-
print(msg)
|
|
1014
|
-
msg2=f"{Fore.orange_red_1}{format_bytes(os.stat(backup.absolute()).st_size)}{Fore.light_steel_blue} of Data, on {Fore.spring_green_3b}{datetime.fromtimestamp(os.stat(backup.absolute()).st_ctime)}{Style.reset}"
|
|
1015
|
-
print(msg2)
|
|
1016
|
-
return True
|
|
697
|
+
BACKUP()
|
|
1017
698
|
elif args[0].lower() in ['restore',]:
|
|
1018
699
|
def lcl_bu(backup,self):
|
|
1019
700
|
backup=Path(backup)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
radboy/Unified/bareCA.py
CHANGED
|
@@ -106,6 +106,10 @@ def bare_ca(self,inList=False,protect_unassigned=True):
|
|
|
106
106
|
'FLRL_WTR_DSPLY':0,
|
|
107
107
|
'WD_DSPLY':0,
|
|
108
108
|
'CHKSTND_SPLY':0,
|
|
109
|
+
'Expiry':None,
|
|
110
|
+
'BestBy':None,
|
|
111
|
+
'AquisitionDate':None,
|
|
112
|
+
'Location':'///',
|
|
109
113
|
})
|
|
110
114
|
else:
|
|
111
115
|
result=session.query(db.Entry).filter(db.Entry.InList==True,db.Entry.Code!="UNASSIGNED_TO_NEW_ITEM").update({
|
|
@@ -132,6 +136,10 @@ def bare_ca(self,inList=False,protect_unassigned=True):
|
|
|
132
136
|
'FLRL_WTR_DSPLY':0,
|
|
133
137
|
'WD_DSPLY':0,
|
|
134
138
|
'CHKSTND_SPLY':0,
|
|
139
|
+
'Expiry':None,
|
|
140
|
+
'BestBy':None,
|
|
141
|
+
'AquisitionDate':None,
|
|
142
|
+
'Location':'///',
|
|
135
143
|
})
|
|
136
144
|
else:
|
|
137
145
|
if not protect_unassigned:
|
|
@@ -159,6 +167,10 @@ def bare_ca(self,inList=False,protect_unassigned=True):
|
|
|
159
167
|
'FLRL_WTR_DSPLY':0,
|
|
160
168
|
'WD_DSPLY':0,
|
|
161
169
|
'CHKSTND_SPLY':0,
|
|
170
|
+
'Expiry':None,
|
|
171
|
+
'BestBy':None,
|
|
172
|
+
'AquisitionDate':None,
|
|
173
|
+
'Location':'///',
|
|
162
174
|
})
|
|
163
175
|
else:
|
|
164
176
|
result=session.query(db.Entry).filter(db.Entry.Code!="UNASSIGNED_TO_NEW_ITEM").update(
|
|
@@ -185,6 +197,10 @@ def bare_ca(self,inList=False,protect_unassigned=True):
|
|
|
185
197
|
'FLRL_WTR_DSPLY':0,
|
|
186
198
|
'WD_DSPLY':0,
|
|
187
199
|
'CHKSTND_SPLY':0,
|
|
200
|
+
'Expiry':None,
|
|
201
|
+
'BestBy':None,
|
|
202
|
+
'AquisitionDate':None,
|
|
203
|
+
'Location':'///',
|
|
188
204
|
})
|
|
189
205
|
session.commit()
|
|
190
206
|
session.flush()
|
|
@@ -214,7 +230,11 @@ def bare_ca(self,inList=False,protect_unassigned=True):
|
|
|
214
230
|
'FLRL_CHP_DSPLY':0,
|
|
215
231
|
'FLRL_WTR_DSPLY':0,
|
|
216
232
|
'WD_DSPLY':0,
|
|
217
|
-
'CHKSTND_SPLY':0,
|
|
233
|
+
'CHKSTND_SPLY':0,
|
|
234
|
+
'Expiry':None,
|
|
235
|
+
'BestBy':None,
|
|
236
|
+
'AquisitionDate':None,
|
|
237
|
+
'Location':'///',})
|
|
218
238
|
session.commit()
|
|
219
239
|
session.flush()
|
|
220
240
|
r=query.all()
|
|
@@ -243,7 +263,11 @@ def bare_ca(self,inList=False,protect_unassigned=True):
|
|
|
243
263
|
'FLRL_CHP_DSPLY':0,
|
|
244
264
|
'FLRL_WTR_DSPLY':0,
|
|
245
265
|
'WD_DSPLY':0,
|
|
246
|
-
'CHKSTND_SPLY':0,
|
|
266
|
+
'CHKSTND_SPLY':0,
|
|
267
|
+
'Expiry':None,
|
|
268
|
+
'BestBy':None,
|
|
269
|
+
'AquisitionDate':None,
|
|
270
|
+
'Location':'///',}
|
|
247
271
|
)
|
|
248
272
|
session.commit()
|
|
249
273
|
session.flush()
|
radboy/Unified/clearalll.py
CHANGED
|
@@ -34,6 +34,8 @@ from radboy.TouchStampC.TouchStampC import *
|
|
|
34
34
|
from radboy import VERSION
|
|
35
35
|
import radboy.possibleCode as pc
|
|
36
36
|
|
|
37
|
+
|
|
38
|
+
|
|
37
39
|
def clear_all(self):
|
|
38
40
|
fieldname='TaskMode'
|
|
39
41
|
mode='ClearAll'
|
|
@@ -99,6 +101,10 @@ def clear_all(self):
|
|
|
99
101
|
'FLRL_WTR_DSPLY':0,
|
|
100
102
|
'WD_DSPLY':0,
|
|
101
103
|
'CHKSTND_SPLY':0,
|
|
104
|
+
'Expiry':None,
|
|
105
|
+
'BestBy':None,
|
|
106
|
+
'AquisitionDate':None,
|
|
107
|
+
'Location':'///',
|
|
102
108
|
})
|
|
103
109
|
session.commit()
|
|
104
110
|
session.flush()
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.854'
|
|
Binary file
|
radboy/code.png
CHANGED
|
Binary file
|
radboy/preloader/preloader.py
CHANGED
|
@@ -7,11 +7,41 @@ preloader={
|
|
|
7
7
|
'desc':f'find the volume of height*width*length without dimensions',
|
|
8
8
|
'exec':volume
|
|
9
9
|
},
|
|
10
|
+
f'{uuid1()}':{
|
|
11
|
+
'cmds':['value from total mass','vftm'],
|
|
12
|
+
'desc':f'give an estimated total value for mass of currency ((1/unitMass)*ValueOfUnit)*TotalMassOfUnitToBeCounted',
|
|
13
|
+
'exec':TotalCurrencyFromMass
|
|
14
|
+
},
|
|
15
|
+
f'{uuid1()}':{
|
|
16
|
+
'cmds':['base value from mass','bvfm'],
|
|
17
|
+
'desc':f'get base value for each coin to use as the price so qty may be the gram value (1/unitMass)*ValueOfUnit',
|
|
18
|
+
'exec':BaseCurrencyValueFromMass
|
|
19
|
+
},
|
|
20
|
+
f'{uuid1()}':{
|
|
21
|
+
'cmds':['us currency mass','us cnc'],
|
|
22
|
+
'desc':f'get us currency mass values',
|
|
23
|
+
'exec':USCurrencyMassValues
|
|
24
|
+
},
|
|
25
|
+
f'{uuid1()}':{
|
|
26
|
+
'cmds':['drgs','drugs','drug-select','drug select'],
|
|
27
|
+
'desc':f'return a selected drug text',
|
|
28
|
+
'exec':drug_text
|
|
29
|
+
},
|
|
30
|
+
f'{uuid1()}':{
|
|
31
|
+
'cmds':['golden-ratio','gldn rto',],
|
|
32
|
+
'desc':f'get the golden ration for a measurement',
|
|
33
|
+
'exec':golden_ratio
|
|
34
|
+
},
|
|
10
35
|
f'{uuid1()}':{
|
|
11
36
|
'cmds':['volume pint',],
|
|
12
37
|
'desc':f'find the volume of height*width*length using pint to normalize the values',
|
|
13
38
|
'exec':volume_pint
|
|
14
39
|
},
|
|
40
|
+
f'{uuid1()}':{
|
|
41
|
+
'cmds':['cooking units',],
|
|
42
|
+
'desc':f'review conversions for the kitchen',
|
|
43
|
+
'exec':CC_Ui
|
|
44
|
+
},
|
|
15
45
|
f'{uuid1()}':{
|
|
16
46
|
'cmds':['self-inductance pint',],
|
|
17
47
|
'desc':f'find self-inductance using pint to normalize the values for self-inductance=relative_permeability*(((turns**2)*area)/length)*1.26e-6',
|
|
@@ -22,6 +52,46 @@ preloader={
|
|
|
22
52
|
'desc':f'find the resonant inductance for LC using L = 1 / (4π²f²C)',
|
|
23
53
|
'exec':resonant_inductance
|
|
24
54
|
},
|
|
55
|
+
f'{uuid1()}':{
|
|
56
|
+
'cmds':['cost to run','c2r'],
|
|
57
|
+
'desc':f'find the cost to run a device per day',
|
|
58
|
+
'exec':costToRun
|
|
59
|
+
},
|
|
60
|
+
f'{uuid1()}':{
|
|
61
|
+
'cmds':['now to % time','n2pt'],
|
|
62
|
+
'desc':f'now to percent time, or time to go',
|
|
63
|
+
'exec':ndtp
|
|
64
|
+
},
|
|
65
|
+
f'{uuid1()}':{
|
|
66
|
+
'cmds':['currency conversion','cur-cvt'],
|
|
67
|
+
'desc':f'convert currency from one to the another',
|
|
68
|
+
'exec':currency_conversion,
|
|
69
|
+
},
|
|
70
|
+
f'{uuid1()}':{
|
|
71
|
+
'cmds':['sonofman-bible','sonofman','bible','bbl'],
|
|
72
|
+
'desc':f'open sonofman bible',
|
|
73
|
+
'exec':bible_try,
|
|
74
|
+
},
|
|
75
|
+
f'{uuid1()}':{
|
|
76
|
+
'cmds':['sales floor location','sls flr lctn'],
|
|
77
|
+
'desc':f'generate a sales floor location string',
|
|
78
|
+
'exec':SalesFloorLocationString,
|
|
79
|
+
},
|
|
80
|
+
f'{uuid1()}':{
|
|
81
|
+
'cmds':['backroom location','br lctn'],
|
|
82
|
+
'desc':f'generate a backroom location string',
|
|
83
|
+
'exec':BackroomLocation,
|
|
84
|
+
},
|
|
85
|
+
f'{uuid1()}':{
|
|
86
|
+
'cmds':['generic item or service text template','txt gios '],
|
|
87
|
+
'desc':f'find the cost to run a device per day',
|
|
88
|
+
'exec':generic_service_or_item
|
|
89
|
+
},
|
|
90
|
+
f'{uuid1()}':{
|
|
91
|
+
'cmds':['reciept book entry','rbe'],
|
|
92
|
+
'desc':f'reciept book data to name template',
|
|
93
|
+
'exec':reciept_book_entry,
|
|
94
|
+
},
|
|
25
95
|
f'{uuid1()}':{
|
|
26
96
|
'cmds':['air coil',],
|
|
27
97
|
'desc':f'''
|