radboy 0.0.531__py3-none-any.whl → 0.0.533__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/DB/Prompt.py CHANGED
@@ -49,25 +49,43 @@ except Exception as e:
49
49
  ru_maxrss=0
50
50
  return use()
51
51
 
52
+ def std_colorize(m,n,c,start=f"[Prompt]{Back.black}{Fore.pale_turquoise_1} Start {'*'*(os.get_terminal_size().columns-(len(Fore.pale_turquoise_1)+(len(Fore.grey_27)*2)+len(Style.reset)))}{Style.reset}\n",end=f"\n{Back.black}{Fore.dark_red_1}{'-'*(os.get_terminal_size().columns-(len(Fore.dark_red_1)+(len(Fore.grey_50)*2)+len(Style.reset)))} Stop {Style.reset}"):
53
+ if ((n % 2) != 0) and n > 0:
54
+ msg=f'{start}{Fore.cyan}{n}/{Fore.light_yellow}{n+1}{Fore.light_red} of {c} {Fore.dark_goldenrod}{m}{Style.reset}{end}'
55
+ else:
56
+ msg=f'{start}{Fore.light_cyan}{n}/{Fore.green_yellow}{n+1}{Fore.orange_red_1} of {c} {Fore.light_salmon_1}{m}{Style.reset}{end}'
57
+ return msg
58
+
52
59
  def timedout(ptext,htext='',timeout_returnable="timeout"):
53
60
  try:
54
61
  while True:
55
62
  t=db.BooleanAnswers.timeout
56
63
  past=datetime.now()
57
- if htext != '':
58
- user_input = inputimeout(prompt=f"{db.BooleanAnswers.timeout_msg}{htext}\n{ptext}({t} Seconds Passed='timeout' returned from {past.strftime("%I:%M:%S %p(12H)/%H:%M:%S(24H)")}):", timeout=t)
59
- else:
60
- user_input = inputimeout(prompt=f"{db.BooleanAnswers.timeout_msg}{ptext}({t} Seconds Passed='timeout' returned from {past.strftime("%I:%M:%S %p(12H)/%H:%M:%S(24H)")}):", timeout=t)
61
- if user_input in ['fb','fastboot']:
64
+ user_input = inputimeout(prompt=f"{db.BooleanAnswers.timeout_msg}{ptext}({t} Seconds Passed='timeout' returned from {past.strftime("%I:%M:%S %p(12H)/%H:%M:%S(24H)")}):", timeout=t)
65
+ if user_input.lower() in ['help','h','?']:
66
+ print(htext)
67
+ h=[]
68
+ z=f'''{Fore.light_steel_blue}fb,fastboot - {Fore.light_green}set timeout to 0 and continue{Style.reset}
69
+ {Fore.light_steel_blue}fba,fastboot-auto,autoboot,timeout -{Fore.light_green} set timeout to 0 and return {timeout_returnable}{Style.reset}
70
+ {Fore.light_steel_blue}lb,longboot - {Fore.light_green}set timeout to {db.BooleanAnswers.long_boot_time} and continue{Style.reset}
71
+ {Fore.light_steel_blue}sto,set to,set timeout - {Fore.light_green}set timeout to custom value and continue{Style.reset}
72
+ '''+htext
73
+ z=z.split("\n")
74
+ ct=len(z)
75
+ for num,i in enumerate(z):
76
+ h.append(std_colorize(i,num,ct))
77
+ print('\n'.join(h))
78
+ continue
79
+ elif user_input in ['fb','fastboot']:
62
80
  db.BooleanAnswers.timeout=0
63
81
  return ''
64
- if user_input in ['fba','fastboot-auto']:
82
+ elif user_input in ['fba','fastboot-auto','autoboot','timeout']:
65
83
  db.BooleanAnswers.timeout=0
66
84
  return 'autoboot'
67
85
  elif user_input in ['lb','longboot']:
68
86
  db.BooleanAnswers.timeout=db.BooleanAnswers.long_boot_time
69
87
  continue
70
- elif user_input in ['to','timeout']:
88
+ elif user_input in ['sto','set to','set timeout']:
71
89
  timeout = inputimeout(prompt=f"{db.BooleanAnswers.timeout_msg}{htext}\nSet Your Custom Timeout({t} Seconds Passed='timeout' returned from {past.strftime("%I:%M:%S %p(12H)/%H:%M:%S(24H)")}):", timeout=t)
72
90
  try:
73
91
  db.BooleanAnswers.timeout=float(timeout)
Binary file
radboy/DB/db.py CHANGED
@@ -33,6 +33,20 @@ from uuid import uuid1
33
33
  import sys
34
34
  from inputimeout import inputimeout, TimeoutOccurred
35
35
 
36
+ def strip_colors(colored_text):
37
+ text=colored_text
38
+ colors=[getattr(Fore,i) for i in Fore._COLORS]
39
+ colors2=[getattr(Fore,i) for i in Back._COLORS]
40
+ styles3=[getattr(Style,i) for i in Style._STYLES]
41
+ #text=''.join([i for i in text if i in string.printable])
42
+ escape_codes=[]
43
+ escape_codes.extend(colors)
44
+ escape_codes.extend(colors2)
45
+ escape_codes.extend(styles3)
46
+ for i in escape_codes:
47
+ text=text.replace(i,'')
48
+ return text
49
+
36
50
  class BOOLEAN_ANSWERS:
37
51
  def __init__(self):
38
52
  self.yes=generate_cmds(startcmd=['y','Y','YES','1','t','true','TRUE','True'],endCmd=['',' '])
@@ -172,10 +186,15 @@ str(uuid1()):{
172
186
  try:
173
187
  t=BooleanAnswers.timeout
174
188
  past=datetime.now()
175
- user_input = timedout(f"Boot CMDS(timeout=autoboot from)",htext=BooleanAnswers.help)
189
+ s=strip_colors(BooleanAnswers.help+cmdhtext)
190
+ htxt=[]
191
+ ct=len(s)
192
+ htxt=[f"[BTLDR] {i}" for i in s.split("\n")]
193
+ htxt='\n'.join(htxt)
194
+ user_input = timedout(f"Boot CMDS(timeout=autoboot from)",htext=htxt)
176
195
  #user_input = inputimeout(prompt=f"{BooleanAnswers.timeout_msg}Boot CMDS({t} Seconds Passed=autoboot from {past.strftime("%I:%M:%S %p(12H)/%H:%M:%S(24H)")}):", timeout=t)
177
196
  print(f"You entered: {user_input}")
178
- if user_input in ['fb','fastboot','fba','fastboot-auto']:
197
+ if user_input in ['fb','fastboot','fba','fastboot-auto','timeout']:
179
198
  BooleanAnswers.timeout=0
180
199
  user_input="autoboot"
181
200
  if user_input in ['longboot','lb']:
@@ -184,6 +203,7 @@ str(uuid1()):{
184
203
  except TimeoutOccurred:
185
204
  print("Time's up! No input received.")
186
205
  user_input = "autoboot"
206
+ break
187
207
 
188
208
  #user_input=z
189
209
  #print(user_input)
@@ -196,7 +216,7 @@ str(uuid1()):{
196
216
  if doWhat.lower() in [str(i) for i in cmds[cmd]['cmds']]:
197
217
  if callable(cmds[cmd]['exec']):
198
218
  ready=cmds[cmd]['exec']()
199
- print(ready)
219
+ #print(ready)
200
220
  if ready is True:
201
221
  return
202
222
  break
@@ -365,19 +385,7 @@ LOCATION_FIELDS=[
365
385
  'ListQty'
366
386
  ]
367
387
 
368
- def strip_colors(colored_text):
369
- text=colored_text
370
- colors=[getattr(Fore,i) for i in Fore._COLORS]
371
- colors2=[getattr(Fore,i) for i in Back._COLORS]
372
- styles3=[getattr(Style,i) for i in Style._STYLES]
373
- #text=''.join([i for i in text if i in string.printable])
374
- escape_codes=[]
375
- escape_codes.extend(colors)
376
- escape_codes.extend(colors2)
377
- escape_codes.extend(styles3)
378
- for i in escape_codes:
379
- text=text.replace(i,'')
380
- return text
388
+
381
389
 
382
390
  def dayString(today,plain=False):
383
391
  ds=f'''{today.strftime(f"{Fore.light_yellow}%m/{Fore.light_red}%d/{Fore.light_sea_green}%Y {Fore.light_red}(%A, {Fore.grey_50}Week {(today.day - 1) // 7 + 1} of {Fore.light_yellow}%B{Fore.grey_50}, week %W of {Fore.light_sea_green}year %Y){Fore.light_cyan} @ {Fore.orange_red_1}%H/{Fore.light_cyan}24.Hr|({Fore.dark_goldenrod}%I/{Fore.light_cyan}12.Hr){Fore.light_green}:%M.Min{Fore.magenta}:%S.Sec ({Fore.dark_goldenrod}%p/{Fore.light_cyan}12.Hr)")}'''
@@ -755,7 +763,7 @@ class EntryExtras:
755
763
  def __neg__(self):
756
764
  return -self.Price
757
765
 
758
- def std_colorize(m,n,c,start=f"{Back.grey_27}{Fore.pale_turquoise_1} Start {'*'*(os.get_terminal_size().columns-(len(Fore.pale_turquoise_1)+(len(Fore.grey_27)*2)+len(Style.reset)))}{Style.reset}\n",end=f"\n{Back.grey_50}{Fore.dark_red_1}{'-'*(os.get_terminal_size().columns-(len(Fore.dark_red_1)+(len(Fore.grey_50)*2)+len(Style.reset)))} Stop {Style.reset}"):
766
+ def std_colorize(m,n,c,start=f"[DB]{Back.grey_27}{Fore.pale_turquoise_1} Start {'*'*(os.get_terminal_size().columns-(len(Fore.pale_turquoise_1)+(len(Fore.grey_27)*2)+len(Style.reset)))}{Style.reset}\n",end=f"\n{Back.grey_50}{Fore.dark_red_1}{'-'*(os.get_terminal_size().columns-(len(Fore.dark_red_1)+(len(Fore.grey_50)*2)+len(Style.reset)))} Stop {Style.reset}"):
759
767
  if ((n % 2) != 0) and n > 0:
760
768
  msg=f'{start}{Fore.cyan}{n}/{Fore.light_yellow}{n+1}{Fore.light_red} of {c} {Fore.dark_goldenrod}{m}{Style.reset}{end}'
761
769
  else:
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.531'
1
+ VERSION='0.0.533'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.531
3
+ Version: 0.0.533
4
4
  Summary: A Retail Calculator for Android/Linux
5
5
  Author: Carl Joseph Hirner III
6
6
  Author-email: Carl Hirner III <k.j.hirner.wisdom@gmail.com>
@@ -5,7 +5,7 @@ radboy/Holidays.txt,sha256=y-JZPihh5iaWKxMIHNXD39yVuVmf1vMs4FdNDcg0f1Y,3114
5
5
  radboy/InventoryGlossary.txt,sha256=018-Yqca6DFb10jPdkUY-5qhkRlQN1k3rxoTaERQ-LA,91008
6
6
  radboy/RecordMyCodes.py,sha256=Lt2reA6xchq3U7Y08DvkrHboZ25i1ts7X2E9gSIwcVg,41101
7
7
  radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
8
- radboy/__init__.py,sha256=p3P2-8fCvSJEWokWqJNgNOzI5ZdfBCjQPWiQNf3LkYQ,17
8
+ radboy/__init__.py,sha256=ZDE3kU9DjG70KK4OqAhahZKpsf2ai_E4QMe6Nppzjx8,17
9
9
  radboy/api_key,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  radboy/case-export-2024-05-14-13-10-00.672971.xlsx,sha256=Wd592d_VLFmfUI9KKKSVjNwjV91euc1T7ATyvwvUhlg,5431
11
11
  radboy/case-export-2024-05-14-13-13-22.540614.xlsx,sha256=OnGrhmScHfGp_mVaWW-LNMsqrQgyZDpiU3wV-2s3U5Q,5556
@@ -84,14 +84,14 @@ radboy/DB/ExerciseTracker.py,sha256=G4qHQcK27FJxQikD4msZmo29AIbv8pFmEkF54OwVIhA,
84
84
  radboy/DB/PayDay.py,sha256=H2kPGvBCDkMOz7lbxQhYtUt_oAInpxi37Q6MFrah98I,8710
85
85
  radboy/DB/PayModels.py,sha256=hjwWxP7PL33hmfzQl5YTf0HqzaMxXJxFknPdxFJXJc8,3499
86
86
  radboy/DB/PrintLogging.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
87
- radboy/DB/Prompt.py,sha256=JuZPxppSNFDLRoJTS0voGEgGsLuGG6MxLFjGxRpGOvw,153113
87
+ radboy/DB/Prompt.py,sha256=RGwb1B4VmKA2Ze--a3vDqnk6xxDfuPP6xaJfjoPAKR0,154461
88
88
  radboy/DB/RandomStringUtil.py,sha256=eZCpR907WStgfbk4Evcghjv9hOkUDXH-iMXIq0-kXq8,24386
89
89
  radboy/DB/ResetTools.py,sha256=RbI-Ua7UlsN0S9qLqtEkTWvzyTZ6R-hHR3CW4NHlUPE,6660
90
90
  radboy/DB/SMLabelImporter.py,sha256=eUoBDxVUUEKGL2g_PwkASM67ZB7FmXtSnn4bCagskhY,4013
91
91
  radboy/DB/__init__.py,sha256=JiigA9B7GalP7YuRdcwyGDu5PDSBahoi0lLjtScxlN8,49
92
92
  radboy/DB/blankDataFile.py,sha256=YX_05Usi71UpDkZN9UTMYwUipbTndTAtEgqzBEga0kE,9285
93
93
  radboy/DB/config.py,sha256=bvu43dUl1_yO3Zq3gsLuenGUgJSiS3S9Cs6ppFEvZbg,239
94
- radboy/DB/db.py,sha256=TtIa1uxmf1iE_C_RINd29gGsd7rPrfj2d0tbpy-kyik,247492
94
+ radboy/DB/db.py,sha256=iJbK-tSBb9l6lUiggfaU5MwrflMV1uqVmzDsTKYfgSA,247726
95
95
  radboy/DB/glossary_db.py,sha256=1_qxeEpjjEtpWB_eDjsgJisimLv7OBm75MuqM-Lt6zg,28218
96
96
  radboy/DB/masterLookup.py,sha256=DBaM2uscG3_X5dek49wjdnOzhrjWhKgvOEz_umdz0mY,4566
97
97
  radboy/DB/msg.txt,sha256=YxWed6A6tuP1djJ5QPS2Rz3ING4TKKf8kUiCCPtzHXE,7937
@@ -108,7 +108,7 @@ radboy/DB/__pycache__/FormBuilder.cpython-312.pyc,sha256=p1o-5SMRL8OXP_XQ5liUpf-
108
108
  radboy/DB/__pycache__/PrintLogging.cpython-312.pyc,sha256=pIAFqTi6OiQQORSc-oMH1zAbsdH7sY1TifxrN_QOvnU,148
109
109
  radboy/DB/__pycache__/Prompt.cpython-311.pyc,sha256=P2uPRpeqfLFtxieZ0JHBG3X_HZzWUCsFSLb_fpRqky0,6407
110
110
  radboy/DB/__pycache__/Prompt.cpython-312.pyc,sha256=6CcQ1gE2hcz3cKPjo4f6d7xNM2PTDnl8NzQG0Pme5BE,142886
111
- radboy/DB/__pycache__/Prompt.cpython-313.pyc,sha256=68Xplu56r6_PquKubv1l2NV6ChFzy_evdRZ70m5gx6o,231695
111
+ radboy/DB/__pycache__/Prompt.cpython-313.pyc,sha256=DdC6xZmAw8hKS1Y9Ca0Wv8nnWSlgzZ9CgkjM9JeOUq0,235003
112
112
  radboy/DB/__pycache__/RandomStringUtil.cpython-312.pyc,sha256=TrbEY89MuLmNlvoo5d8vOE6Dyshh5_EMlTZvk8MDVN4,48597
113
113
  radboy/DB/__pycache__/RandomStringUtil.cpython-313.pyc,sha256=MCcgVwV2Y-9rAY2FVaJZCKcou3HDX70EZudoiCigT0o,49217
114
114
  radboy/DB/__pycache__/ResetTools.cpython-311.pyc,sha256=4Vyc57iAAF0yRPjjglnVKovnTn8OoFIi6Zok3Wpj_YM,9292
@@ -126,7 +126,7 @@ radboy/DB/__pycache__/config.cpython-312.pyc,sha256=Qo7E6MHrF6yqvKgepNFyCoekZXiv
126
126
  radboy/DB/__pycache__/config.cpython-313.pyc,sha256=_8wCIg_3jhyJjxnExD2Sm6aY-uZTw036p7Ki5znL7dc,376
127
127
  radboy/DB/__pycache__/db.cpython-311.pyc,sha256=rNgigyBd0D-cg1JxKAS8t0B_k0IEJivgVlRaZE10Xis,210105
128
128
  radboy/DB/__pycache__/db.cpython-312.pyc,sha256=ANDJPC0RoavbmSKFxG15vC7B4rEGyVt7xRJt7XGY3OA,334609
129
- radboy/DB/__pycache__/db.cpython-313.pyc,sha256=OeCc3Mm6CiYQnz0ptC4unXccttcpfb9BprZX57XbP-A,393413
129
+ radboy/DB/__pycache__/db.cpython-313.pyc,sha256=ynMtzt_Ou0tSLO9RBVFAjL_8f83F_tp8KWRu1HOmpEM,393706
130
130
  radboy/DB/__pycache__/glossary_db.cpython-312.pyc,sha256=8UL-29cKqtKovx0BANm6kzKKteef1BW_2qF3wumzst4,36023
131
131
  radboy/DB/__pycache__/glossary_db.cpython-313.pyc,sha256=Ke9bkvllGv5CK0JdT9DRvQ3MOdrXxoYv7TVLNkqLux0,36582
132
132
  radboy/DB/__pycache__/masterLookup.cpython-312.pyc,sha256=bQiOkmMwwHgcO18tYSWGQ-YUff4GQlKVhBMp1GoWAqY,6324
@@ -397,7 +397,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
397
397
  radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
398
398
  radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
399
399
  radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
400
- radboy/__pycache__/__init__.cpython-313.pyc,sha256=qOLX2W8AqL14pMJzv9j0exXKGm1LbZgVRQIyqxeXJ-M,165
400
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=qSJiz_NPvp3yA2Yx84F9h7VklgBogm-gelWai3wjVR4,165
401
401
  radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
402
402
  radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
403
403
  radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
@@ -422,7 +422,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
422
422
  radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
423
423
  radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
424
424
  radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
425
- radboy-0.0.531.dist-info/METADATA,sha256=HiINMpfzgxCfYJjzejzY4Hs8RCvLxiGu_wIlPPVNsSY,1615
426
- radboy-0.0.531.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
427
- radboy-0.0.531.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
428
- radboy-0.0.531.dist-info/RECORD,,
425
+ radboy-0.0.533.dist-info/METADATA,sha256=zqYsuN8Pvh1gH_GVy3aCBazeKzy1FVYmqEW5KHNf0wQ,1615
426
+ radboy-0.0.533.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
427
+ radboy-0.0.533.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
428
+ radboy-0.0.533.dist-info/RECORD,,