radboy 0.0.542__py3-none-any.whl → 0.0.544__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.

Binary file
radboy/DB/db.py CHANGED
@@ -32,10 +32,18 @@ import platform
32
32
  from uuid import uuid1
33
33
  import sys
34
34
  from inputimeout import inputimeout, TimeoutOccurred
35
- class iList(list):
36
- pass
37
35
 
38
- instance_list=iList()
36
+ def textInFile(text):
37
+ '''textInFile(str) -> Boolean
38
+
39
+ return True if text in file
40
+ return False if text not in file.
41
+ '''
42
+ with open(BooleanAnswers.IllegalCharsManifest,"r") as o:
43
+ for line in o.readlines():
44
+ if text in line:
45
+ return True
46
+ return False
39
47
 
40
48
  def remove_illegals(text):
41
49
  try:
@@ -44,15 +52,16 @@ def remove_illegals(text):
44
52
  iis=['*','/','\\','?','[',']',':',"\""]
45
53
  for i in iis:
46
54
  text=text.replace(i,f' BCO_UC_{ord(i)} ')
47
- if i not in instance_list:
48
- instance_list.append(i)
49
- output.write(f"BCO_UC_{ord(i)} = {i}\n")
55
+ msg=f"BCO_UC_{ord(i)} = {i}"
56
+ if not textInFile(msg):
57
+ output.write(msg+"\n")
50
58
  return text
51
59
  else:
52
60
  return text
53
61
 
54
62
  except Exception as e:
55
63
  print(e)
64
+ exit()
56
65
 
57
66
 
58
67
  def strip_colors(colored_text):
@@ -31,6 +31,8 @@ class ExportTable:
31
31
  try:
32
32
  entries=entries.filter(or_(*fs))
33
33
  df = pd.read_sql(entries.statement, entries.session.bind,dtype=str)
34
+ for i in df:
35
+ df[i]=df[i].apply(lambda x:remove_illegals(strip_colors(x)) if isinstance(x,str) else x)
34
36
  opathname=folder/Path("EntrySearchedExport"+f"{datetime.now().strftime('_%m-%d-%Y')}.xlsx")
35
37
  df.to_excel(opathname,index=None)
36
38
  print(f"{Fore.light_red}Finished Writing '{Fore.light_green}{opathname}{Fore.light_red}': {Fore.orange_red_1}{opathname.exists()} | Exported '{Fore.light_steel_blue}{len(df)}{Fore.orange_red_1}' Results{Style.reset}")
@@ -68,6 +70,8 @@ class ExportTable:
68
70
  entries=session.query(DayLog).filter(DayLog.EntryId==finalResult.EntryId)
69
71
  df = pd.read_sql(entries.statement, entries.session.bind)
70
72
  opathname=folder/Path("SelectedDayLogSetExport"+f"{datetime.now().strftime('_%m-%d-%Y')}.xlsx")
73
+ for i in df:
74
+ df[i]=df[i].apply(lambda x:remove_illegals(strip_colors(x)) if isinstance(x,str) else x)
71
75
  df.to_excel(opathname,index=None)
72
76
  print(f"{Fore.light_red}Finished Writing '{Fore.light_green}{opathname}{Fore.light_red}': {Fore.orange_red_1}{opathname.exists()} | Exported '{Fore.light_steel_blue}{len(df)}{Fore.orange_red_1}' Results{Style.reset}")
73
77
 
@@ -120,6 +124,8 @@ class ExportTable:
120
124
  entries=entries.filter(or_(*shards))
121
125
  df = pd.read_sql(entries.statement, entries.session.bind,dtype=str)
122
126
  opathname=folder/Path("EntryTaggedExport"+f"{datetime.now().strftime('_%m-%d-%Y')}.xlsx")
127
+ for i in df:
128
+ df[i]=df[i].apply(lambda x:remove_illegals(strip_colors(x)) if isinstance(x,str) else x)
123
129
  df.to_excel(opathname,index=None)
124
130
  print(f"{Fore.light_red}Finished Writing '{Fore.light_green}{opathname}{Fore.light_red}': {Fore.orange_red_1}{opathname.exists()} | Exported '{Fore.light_steel_blue}{len(df)}{Fore.orange_red_1}' Results{Style.reset}")
125
131
  except Exception as e:
@@ -157,6 +163,8 @@ class ExportTable:
157
163
  print(tables2[INDEX])
158
164
  df = pd.read_sql(query.statement, query.session.bind,dtype=str)
159
165
  opathname=folder/Path(tables2[INDEX]+f"{datetime.now().strftime('_%m-%d-%Y')}.xlsx")
166
+ for i in df:
167
+ df[i]=df[i].apply(lambda x:remove_illegals(strip_colors(x)) if isinstance(x,str) else x)
160
168
  df.to_excel(opathname,index=None)
161
169
  print(f"{Fore.light_red}Finished Writing '{Fore.light_green}{opathname}{Fore.light_red}': {Fore.orange_red_1}{opathname.exists()} | Exported '{Fore.light_steel_blue}{len(df)}{Fore.orange_red_1}' Results{Style.reset}")
162
170
  except Exception as ee:
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.542'
1
+ VERSION='0.0.544'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.542
3
+ Version: 0.0.544
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=pVdOwGy8iSwPKQAI0p12SUK6AO6lS1At7bGRQJMjRGA,17
8
+ radboy/__init__.py,sha256=yPpiYPBK90fk2N3yya3FR3e6KYU0Tx6U-wS9MlYOUtw,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
@@ -91,7 +91,7 @@ radboy/DB/SMLabelImporter.py,sha256=eUoBDxVUUEKGL2g_PwkASM67ZB7FmXtSnn4bCagskhY,
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=L18vTws2m2sKsnVf_vgkIxSl1l1MLndVLgq3-tziyWo,250622
94
+ radboy/DB/db.py,sha256=Wci5q6TR9JITNggn8LHAH6ZKYourdAp3Y6KVohUDR6E,250876
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
@@ -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=fJCVqPPls2hzUKNsQz0lFdD4ozs7OaihU2n3jE8WYoM,395541
129
+ radboy/DB/__pycache__/db.cpython-313.pyc,sha256=hSUbDU68JPGgQ2IpcYnod4O_It1zx7HrrIG13SqzWV8,395854
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
@@ -168,10 +168,10 @@ radboy/ExportList/__pycache__/ExportListCurrent.cpython-313.pyc,sha256=dzQW8WMGX
168
168
  radboy/ExportList/__pycache__/__init__.cpython-311.pyc,sha256=Un4CG_te_VMBqYQel5c4jsw4sHe_LYZWSaXx_vVJL9w,235
169
169
  radboy/ExportList/__pycache__/__init__.cpython-312.pyc,sha256=NdzphL0FHS2zypVi1pG6SoNpv3v3ZynIN2WSl0VMnd8,273
170
170
  radboy/ExportList/__pycache__/__init__.cpython-313.pyc,sha256=xitjWDqLahSMr4qux3sM0AyU-LZF_5XYDKruBvnPr8I,152
171
- radboy/ExportUtility/ExportTableClass.py,sha256=5707lgyfYfmomD6IZ1pjBX0KaL3PLoOVBf-aJO0Dxl4,16293
171
+ radboy/ExportUtility/ExportTableClass.py,sha256=QdHeu0j9IzgH6qDUjdZrPAki2s1nMax_PVs405MjzOc,16739
172
172
  radboy/ExportUtility/__init__.py,sha256=cybpF7RcHJkB2V6Fc37B5X2LLUfCtlveVpz8P4nRmo4,902
173
173
  radboy/ExportUtility/__pycache__/ExportTableClass.cpython-312.pyc,sha256=R3crrAJq1SZHaIEskRkNfm1kQ4akcfw8cXK0A8SQcZ8,30267
174
- radboy/ExportUtility/__pycache__/ExportTableClass.cpython-313.pyc,sha256=lkX6bbqJqZmyH-YzyAjhLtunXRwoU7BZpVjFuKypFm8,30359
174
+ radboy/ExportUtility/__pycache__/ExportTableClass.cpython-313.pyc,sha256=Rf1gsH_b5b6wClMjbNuY2kDkmo4j8ndC-vaRpLpwAgk,31740
175
175
  radboy/ExportUtility/__pycache__/__init__.cpython-312.pyc,sha256=acMdux6Y869oA-gpjY0Fem97iQwq9BAGNrW7AEzUnTI,1308
176
176
  radboy/ExportUtility/__pycache__/__init__.cpython-313.pyc,sha256=DrB-8MZCIcENUju5eBxf1tT9Gu5h71rwfayzgm7wx3M,1308
177
177
  radboy/ExtraTools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -212,7 +212,7 @@ radboy/GeoTools/__pycache__/__init__.cpython-313.pyc,sha256=-bk9eEIxWZgHYZHtNJbr
212
212
  radboy/HealthLog/HealthLog.py,sha256=KjvGW2RMQta9ycAvDNjbG0iaVHbprXK7O28DPIhyJhk,34169
213
213
  radboy/HealthLog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
214
214
  radboy/HealthLog/__pycache__/HealthLog.cpython-312.pyc,sha256=hTo4o7jo9L2yqPZgzuKUw_kon_PVcCuTRguELTuLrIo,27946
215
- radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc,sha256=sM18oZuo7n8VMFm6XOsk88E5NCt_YhGaF9rdYQeKUY8,53283
215
+ radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc,sha256=7z2GOn50X_wv1djAtOH42fjtkBvzicSw6008H4EzoC4,53283
216
216
  radboy/HealthLog/__pycache__/__init__.cpython-312.pyc,sha256=yZrYKBk31pGSjCRqmqzpX409iw-muC1zsNO2ObqkGlY,272
217
217
  radboy/HealthLog/__pycache__/__init__.cpython-313.pyc,sha256=cqdZbEJKq9XVoVqDAwsW0pwwBBGSerJNWGlST3YVR3g,151
218
218
  radboy/InListRestore/ILR.py,sha256=s8fbbHLKQSVJX1VaeyGE-vdIUGBEbOPX29kRIG2j2WY,16847
@@ -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=V2kdEGzB57DHkj_ykQUiPoETKjo-FQrpQ1YudA5uLyA,165
400
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=1zEpd0RqInh0ymTkHBdESXjY_YNCg_fuHIRjBfZFRMo,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.542.dist-info/METADATA,sha256=rH3Ge5ErSKQl4FZYErcyHVPtYg5_4mfqb47bfhf4_h4,1615
426
- radboy-0.0.542.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
427
- radboy-0.0.542.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
428
- radboy-0.0.542.dist-info/RECORD,,
425
+ radboy-0.0.544.dist-info/METADATA,sha256=sBkxbz1vSfgT-S7T21I3tniT59zOhEa5W22AXATyGiE,1615
426
+ radboy-0.0.544.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
427
+ radboy-0.0.544.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
428
+ radboy-0.0.544.dist-info/RECORD,,