radboy 0.0.573__py3-none-any.whl → 0.0.575__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/__pycache__/db.cpython-313.pyc +0 -0
- radboy/HealthLog/HealthLog.py +54 -27
- radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.573.dist-info → radboy-0.0.575.dist-info}/METADATA +2 -1
- {radboy-0.0.573.dist-info → radboy-0.0.575.dist-info}/RECORD +9 -9
- {radboy-0.0.573.dist-info → radboy-0.0.575.dist-info}/WHEEL +0 -0
- {radboy-0.0.573.dist-info → radboy-0.0.575.dist-info}/top_level.txt +0 -0
|
Binary file
|
radboy/HealthLog/HealthLog.py
CHANGED
|
@@ -269,18 +269,13 @@ class HealthLogUi:
|
|
|
269
269
|
print(e)
|
|
270
270
|
|
|
271
271
|
def export_log(self):
|
|
272
|
-
try:
|
|
273
|
-
with BooleanAnswers.IllegalCharsManifest.open("w") as output:
|
|
274
|
-
output.write("Below is a list of Characters replaced with a non-illegal equivalents.\n")
|
|
275
|
-
output.write("Replacement in Text = Character\n")
|
|
276
|
-
except Exception as e:
|
|
277
|
-
print(e)
|
|
278
272
|
useDateRange=Prompt.__init2__(None,func=FormBuilderMkText,ptext="use a date range?",helpText="yes or no",data="boolean")
|
|
279
273
|
if useDateRange is None:
|
|
280
274
|
return
|
|
281
275
|
elif useDateRange in ['d',]:
|
|
282
276
|
useDateRange=True
|
|
283
|
-
|
|
277
|
+
fil=Path("HealthLogAll.xlsx")
|
|
278
|
+
output=pd.ExcelWriter(fil)
|
|
284
279
|
with Session(ENGINE) as session:
|
|
285
280
|
query=session.query(HealthLog)
|
|
286
281
|
query=orderQuery(query,HealthLog.DTOE)
|
|
@@ -305,25 +300,37 @@ class HealthLogUi:
|
|
|
305
300
|
|
|
306
301
|
#str.replace(lambda x:x,lambda x:strip_colors(x))
|
|
307
302
|
#df=df.apply(remove_illegals)
|
|
303
|
+
def remove_illegals(x):
|
|
304
|
+
return x
|
|
308
305
|
for i in df:
|
|
309
306
|
df[i]=df[i].apply(lambda x:remove_illegals(strip_colors(x)) if isinstance(x,str) else x)
|
|
310
307
|
#df[i]=df[i].apply(remove_illegals)
|
|
311
|
-
|
|
308
|
+
sheetName="HealthLog"
|
|
309
|
+
df.to_excel(output,sheet_name=sheetName,index=False)
|
|
310
|
+
|
|
311
|
+
try:
|
|
312
|
+
for column in df:
|
|
313
|
+
column_length = 5+len(column)+5
|
|
314
|
+
col_idx = df.columns.get_loc(column)
|
|
315
|
+
output.sheets[sheetName].set_column(col_idx, col_idx, column_length)
|
|
316
|
+
|
|
317
|
+
col_idx = df.columns.get_loc('DTOE')
|
|
318
|
+
dtoe_length = max(df['DTOE'].astype(str).map(len).max(), len('DTOE'))
|
|
319
|
+
output.sheets[sheetName].set_column(col_idx, col_idx, dtoe_length)
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
output.close()
|
|
323
|
+
except Exception as e:
|
|
324
|
+
print(e)
|
|
325
|
+
|
|
326
|
+
|
|
312
327
|
with zipfile.ZipFile(BooleanAnswers.HealthLogZip,"w") as oz:
|
|
313
328
|
oz.write(output)
|
|
314
|
-
|
|
315
|
-
print(output.absolute())
|
|
316
|
-
print(BooleanAnswers.IllegalCharsManifest.absolute())
|
|
329
|
+
print(fil.absolute())
|
|
317
330
|
print(f"{Fore.orange_red_1}The Below file only contains the above files!{Style.reset}")
|
|
318
331
|
print(BooleanAnswers.HealthLogZip.absolute())
|
|
319
332
|
|
|
320
333
|
def export_log_field(self,fields=[],not_none=[]):
|
|
321
|
-
try:
|
|
322
|
-
with BooleanAnswers.IllegalCharsManifest.open("w") as output:
|
|
323
|
-
output.write("Below is a list of Characters replaced with a non-illegal equivalents.\n")
|
|
324
|
-
output.write("Replacement in Text = Character\n")
|
|
325
|
-
except Exception as e:
|
|
326
|
-
print(e)
|
|
327
334
|
useDateRange=Prompt.__init2__(None,func=FormBuilderMkText,ptext="use a date range?",helpText="yes or no",data="boolean")
|
|
328
335
|
if useDateRange is None:
|
|
329
336
|
return
|
|
@@ -334,7 +341,8 @@ class HealthLogUi:
|
|
|
334
341
|
fields.append('DTOE')
|
|
335
342
|
if 'Comments' not in fields:
|
|
336
343
|
fields.append('Comments')
|
|
337
|
-
|
|
344
|
+
fil=Path(f"HealthLog-fields.xlsx")
|
|
345
|
+
output=pd.ExcelWriter(fil)
|
|
338
346
|
not_none=[i for i in HealthLog.__table__.columns if str(i.name) in not_none]
|
|
339
347
|
with Session(ENGINE) as session:
|
|
340
348
|
query=session.query(HealthLog).filter(or_(*[i!=None for i in not_none]))
|
|
@@ -359,14 +367,33 @@ class HealthLogUi:
|
|
|
359
367
|
df=pd.read_sql(query.statement,session.bind)
|
|
360
368
|
|
|
361
369
|
df=df[fields]
|
|
370
|
+
def remove_illegals(x):
|
|
371
|
+
return x
|
|
362
372
|
for i in df:
|
|
363
373
|
df[i]=df[i].apply(lambda x:remove_illegals(strip_colors(x)) if isinstance(x,str) else x)
|
|
364
|
-
|
|
374
|
+
|
|
375
|
+
sheetName="HealthLog"
|
|
376
|
+
df.to_excel(output,sheet_name=sheetName,index=False)
|
|
377
|
+
|
|
378
|
+
try:
|
|
379
|
+
for column in df:
|
|
380
|
+
column_length = 5+len(column)+5
|
|
381
|
+
col_idx = df.columns.get_loc(column)
|
|
382
|
+
output.sheets[sheetName].set_column(col_idx, col_idx, column_length)
|
|
383
|
+
|
|
384
|
+
col_idx = df.columns.get_loc('DTOE')
|
|
385
|
+
dtoe_length = max(df['DTOE'].astype(str).map(len).max(), len('DTOE'))
|
|
386
|
+
output.sheets[sheetName].set_column(col_idx, col_idx, dtoe_length)
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
output.close()
|
|
391
|
+
|
|
392
|
+
except Exception as e:
|
|
393
|
+
print(e)
|
|
365
394
|
with zipfile.ZipFile(BooleanAnswers.HealthLogZip,"w") as oz:
|
|
366
395
|
oz.write(output)
|
|
367
|
-
|
|
368
|
-
print(output.absolute())
|
|
369
|
-
print(BooleanAnswers.IllegalCharsManifest.absolute())
|
|
396
|
+
print(fil.absolute())
|
|
370
397
|
print(f"{Fore.orange_red_1}The Below file only contains the above files!{Style.reset}")
|
|
371
398
|
print(BooleanAnswers.HealthLogZip.absolute())
|
|
372
399
|
|
|
@@ -609,11 +636,11 @@ class HealthLogUi:
|
|
|
609
636
|
for x in fields:
|
|
610
637
|
includes=[
|
|
611
638
|
"CarboHydrateIntake",
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
639
|
+
"ProtienIntake",
|
|
640
|
+
"FiberIntake",
|
|
641
|
+
"TotalFat",
|
|
642
|
+
"SodiumIntake",
|
|
643
|
+
"CholesterolIntake",
|
|
617
644
|
]
|
|
618
645
|
if x.name not in includes:
|
|
619
646
|
continue
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.575'
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: radboy
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.575
|
|
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>
|
|
@@ -45,6 +45,7 @@ Requires-Dist: pycryptodome
|
|
|
45
45
|
Requires-Dist: forecast_weather
|
|
46
46
|
Requires-Dist: boozelib
|
|
47
47
|
Requires-Dist: pint_pandas
|
|
48
|
+
Requires-Dist: xlsxwriter
|
|
48
49
|
Dynamic: author
|
|
49
50
|
Dynamic: requires-python
|
|
50
51
|
|
|
@@ -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
|
|
8
|
+
radboy/__init__.py,sha256=-ufayUVb-sonm8QQnK5lD-ZnvCr0I_CrsEvNItmwPKg,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
|
|
@@ -128,7 +128,7 @@ radboy/DB/__pycache__/config.cpython-312.pyc,sha256=Qo7E6MHrF6yqvKgepNFyCoekZXiv
|
|
|
128
128
|
radboy/DB/__pycache__/config.cpython-313.pyc,sha256=_8wCIg_3jhyJjxnExD2Sm6aY-uZTw036p7Ki5znL7dc,376
|
|
129
129
|
radboy/DB/__pycache__/db.cpython-311.pyc,sha256=rNgigyBd0D-cg1JxKAS8t0B_k0IEJivgVlRaZE10Xis,210105
|
|
130
130
|
radboy/DB/__pycache__/db.cpython-312.pyc,sha256=ANDJPC0RoavbmSKFxG15vC7B4rEGyVt7xRJt7XGY3OA,334609
|
|
131
|
-
radboy/DB/__pycache__/db.cpython-313.pyc,sha256=
|
|
131
|
+
radboy/DB/__pycache__/db.cpython-313.pyc,sha256=kccaSb5ofielZNhYRpf4V3916dQ6h2HmSU741vRFV3o,402888
|
|
132
132
|
radboy/DB/__pycache__/glossary_db.cpython-312.pyc,sha256=8UL-29cKqtKovx0BANm6kzKKteef1BW_2qF3wumzst4,36023
|
|
133
133
|
radboy/DB/__pycache__/glossary_db.cpython-313.pyc,sha256=Ke9bkvllGv5CK0JdT9DRvQ3MOdrXxoYv7TVLNkqLux0,36582
|
|
134
134
|
radboy/DB/__pycache__/masterLookup.cpython-312.pyc,sha256=bQiOkmMwwHgcO18tYSWGQ-YUff4GQlKVhBMp1GoWAqY,6324
|
|
@@ -211,10 +211,10 @@ radboy/GeoTools/__pycache__/GeoClass.cpython-313.pyc,sha256=eZ6hpLKoic1XCb7BKKg-
|
|
|
211
211
|
radboy/GeoTools/__pycache__/OSMClass.cpython-312.pyc,sha256=5RoT8_wiI8R7yb_B9FWIC7mALdGNoqyWtkzsjM2pbh0,40387
|
|
212
212
|
radboy/GeoTools/__pycache__/__init__.cpython-312.pyc,sha256=Y7Xtrzwm44-xuY_4NK8aDjYfVmXIzUFWOyexJu9le8A,1238
|
|
213
213
|
radboy/GeoTools/__pycache__/__init__.cpython-313.pyc,sha256=-bk9eEIxWZgHYZHtNJbrpubDRWkbdYNkGr5J7sVhyIE,1238
|
|
214
|
-
radboy/HealthLog/HealthLog.py,sha256=
|
|
214
|
+
radboy/HealthLog/HealthLog.py,sha256=D-L1RjE3xLNQx0XgeISWzOwpXMBD7zAWdr7TDpKUhGM,37086
|
|
215
215
|
radboy/HealthLog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
216
216
|
radboy/HealthLog/__pycache__/HealthLog.cpython-312.pyc,sha256=hTo4o7jo9L2yqPZgzuKUw_kon_PVcCuTRguELTuLrIo,27946
|
|
217
|
-
radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc,sha256=
|
|
217
|
+
radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc,sha256=OuzdHJjCbz-MuAZo2LEMY_0ortvuFfy5NJxJIKRg6Oo,58133
|
|
218
218
|
radboy/HealthLog/__pycache__/__init__.cpython-312.pyc,sha256=yZrYKBk31pGSjCRqmqzpX409iw-muC1zsNO2ObqkGlY,272
|
|
219
219
|
radboy/HealthLog/__pycache__/__init__.cpython-313.pyc,sha256=cqdZbEJKq9XVoVqDAwsW0pwwBBGSerJNWGlST3YVR3g,151
|
|
220
220
|
radboy/InListRestore/ILR.py,sha256=s8fbbHLKQSVJX1VaeyGE-vdIUGBEbOPX29kRIG2j2WY,16847
|
|
@@ -399,7 +399,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
399
399
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
400
400
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
401
401
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
402
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
402
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=_C2EvJw80_g5-k7VXVID2utv3JNyr7LJtzGuIqUy8F4,165
|
|
403
403
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
404
404
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
405
405
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -427,7 +427,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
427
427
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
428
428
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
429
429
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
430
|
-
radboy-0.0.
|
|
431
|
-
radboy-0.0.
|
|
432
|
-
radboy-0.0.
|
|
433
|
-
radboy-0.0.
|
|
430
|
+
radboy-0.0.575.dist-info/METADATA,sha256=f4vCeT-n6f6ygAI_sWhy3Zy2stn1zW4h2zEIgcZFZEw,1662
|
|
431
|
+
radboy-0.0.575.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
432
|
+
radboy-0.0.575.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
433
|
+
radboy-0.0.575.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|