radboy 0.0.774__py3-none-any.whl → 0.0.776__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/TasksMode/Tasks.py CHANGED
@@ -3753,8 +3753,8 @@ Location Fields:
3753
3753
  session.commit()
3754
3754
  session.flush()
3755
3755
  session.refresh(result)
3756
- value=float(value)*result.CaseCount
3757
- setattr(result,fieldname,getattr(result,fieldname)+float(value))
3756
+ value=decc(float(value))*result.CaseCount
3757
+ setattr(result,fieldname,decc(getattr(result,fieldname))+decc(float(value)))
3758
3758
  setattr(result,'Note',getattr(result,"Note")+"\n"+note)
3759
3759
  result.InList=True
3760
3760
  session.commit()
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.774'
1
+ VERSION='0.0.776'
Binary file
@@ -22,6 +22,26 @@ preloader={
22
22
  'desc':f'find the resonant inductance for LC using L = 1 / (4π²f²C)',
23
23
  'exec':resonant_inductance
24
24
  },
25
+ f'{uuid1()}':{
26
+ 'cmds':['cost to run','c2r'],
27
+ 'desc':f'find the cost to run a device per day',
28
+ 'exec':costToRun
29
+ },
30
+ f'{uuid1()}':{
31
+ 'cmds':['now to % time','n2pt'],
32
+ 'desc':f'now to percent time, or time to go',
33
+ 'exec':ndtp
34
+ },
35
+ f'{uuid1()}':{
36
+ 'cmds':['generic item or service text template','txt gios '],
37
+ 'desc':f'find the cost to run a device per day',
38
+ 'exec':generic_service_or_item
39
+ },
40
+ f'{uuid1()}':{
41
+ 'cmds':['reciept book entry','rbe'],
42
+ 'desc':f'reciept book data to name template',
43
+ 'exec':reciept_book_entry,
44
+ },
25
45
  f'{uuid1()}':{
26
46
  'cmds':['air coil',],
27
47
  'desc':f'''
@@ -1424,4 +1424,157 @@ class candidates:
1424
1424
  pzl=mkpuzl()
1425
1425
  continue
1426
1426
  else:
1427
- continue
1427
+ continue
1428
+
1429
+
1430
+ def costToRun():
1431
+ fields={
1432
+ 'wattage of device plugged in, turned on/off?':{
1433
+ 'default':60,
1434
+ 'type':'float'
1435
+ },
1436
+ 'hours of use?':{
1437
+ 'default':1,
1438
+ 'type':'float'
1439
+ },
1440
+ 'electrical providers cost per kWh':{
1441
+ 'default':0.70 ,
1442
+ 'type':'float'
1443
+ },
1444
+ }
1445
+
1446
+ fd=FormBuilder(data=fields)
1447
+ if fd is None:
1448
+ return
1449
+
1450
+ cost=((fd['wattage of device plugged in, turned on/off?']/1000)*fd['electrical providers cost per kWh'])
1451
+ total_cost_to=cost*fd['hours of use?']
1452
+ return total_cost_to
1453
+
1454
+
1455
+ def generic_service_or_item():
1456
+ fields={
1457
+ 'PerBaseUnit':{
1458
+ 'default':'squirt',
1459
+ 'type':'string',
1460
+ },
1461
+ 'PerBaseUnit_is_EquivalentTo[Conversion]':{
1462
+ 'default':'1 squirt == 2 grams',
1463
+ 'type':'string',
1464
+ },
1465
+ 'PricePer_1_EquivalentTo[Conversion]':{
1466
+ 'default':0,
1467
+ 'type':'float',
1468
+ },
1469
+ 'Name or Description':{
1470
+ 'default':'dawn power wash',
1471
+ 'type':'string'
1472
+ },
1473
+ 'Cost/Price/Expense Taxed @ %':{
1474
+ 'default':'Item was purchased for 3.99 Taxed @ 6.3% (PRICE+(PRICE+TAX))',
1475
+ 'type':'string'
1476
+ },
1477
+ 'Where was the item purchased/sold[Location/Street Address, City, State ZIP]?':{
1478
+ 'default':'walmart in gloucester va, 23061',
1479
+ 'type':'string'
1480
+ },
1481
+ }
1482
+ fd=FormBuilder(data=fields)
1483
+ if fd is not None:
1484
+ textty=[]
1485
+ cta=len(fd)
1486
+ for num,k in enumerate(fd):
1487
+ msg=f"{k} = '{fd[k]}'"
1488
+ textty.append(strip_colors(std_colorize(msg,num,cta)))
1489
+ master=f'''
1490
+ Non-Std Item/Non-Std Service
1491
+ ----------------------------
1492
+ {' '+'\n '.join(textty)}
1493
+ ----------------------------
1494
+ '''
1495
+ return master
1496
+
1497
+ def reciept_book_entry():
1498
+ return 'Not Ready Yet'
1499
+ fields={
1500
+
1501
+ }
1502
+ fd=FormBuilder(data=fields)
1503
+ if fd is not None:
1504
+ textty=[]
1505
+ cta=len(fd)
1506
+ for num,k in enumerate(fd):
1507
+ msg=f"{k} = '{fd[k]}'"
1508
+ textty.append(strip_colors(std_colorize(msg,num,cta)))
1509
+ master=f'''
1510
+ RecieptBook Name: #vars from fd
1511
+ RecieptBook Hard-Copy Filing ID(Generated or From Book): #vars from fd
1512
+ RecieptSerial No.: #vars from fd
1513
+ RecieptBook DTOE: #vars from fd
1514
+ RecieptBook Comment: #vars from fd
1515
+ ----------------------------
1516
+ {' '+'\n '.join(textty)}
1517
+ ----------------------------
1518
+ '''
1519
+ return master
1520
+
1521
+ def nowToPercentTime(now=None):
1522
+ if not isinstance(now,datetime):
1523
+ now=datetime.now()
1524
+ today=datetime(now.year,now.month,now.day)
1525
+ diff=now-today
1526
+ a=round(diff.total_seconds()/60/60/24,6)
1527
+ a100=round(a*100,2)
1528
+ m=str(now.strftime(f'{now} | %mM/%dD/%YY @ %H(24H)/%I %p(12H):%M:%S | {a100} Percent of 24H has passed since {today} as {diff.total_seconds()} seconds passed/{(24*60*60)} total seconds in day={a}*100={a100} | Percent of Day Passed = {a100}%'))
1529
+ return m
1530
+
1531
+
1532
+ def ndtp():
1533
+ msg=''
1534
+ while True:
1535
+ try:
1536
+ fields={
1537
+ 'distance':{
1538
+ 'type':'float',
1539
+ 'default':25,
1540
+ },
1541
+ 'speed':{
1542
+ 'type':'float',
1543
+ 'default':70
1544
+ },
1545
+ 'total break time':{
1546
+ 'type':'string',
1547
+ 'default':'10 minutes'
1548
+ }
1549
+ }
1550
+ fd=FormBuilder(data=fields,passThruText=msg)
1551
+ if fd is None:
1552
+ exit(1)
1553
+
1554
+ mph=fd['speed']
1555
+ distance=fd['distance']
1556
+ try:
1557
+ breaks=pint.Quantity(fd['total break time']).to('seconds').magnitude
1558
+ except Exception as e:
1559
+ breaks=pint.Quantity(fd['total break time']+' minutes').to('seconds').magnitude
1560
+ duration=pint.Quantity(distance/mph,'hour').to('sec').magnitude
1561
+ #12 minutes
1562
+ buffer=timedelta(minutes=15)
1563
+ original=timedelta(seconds=duration)+timedelta(seconds=breaks)
1564
+ duration=timedelta(seconds=duration+buffer.total_seconds())
1565
+ now=datetime.now()
1566
+ then=now+duration
1567
+ msg=[]
1568
+ msg.append(f'Rate of Travel: {str(mph)}')
1569
+ msg.append(f'Distance To Travel: {distance}')
1570
+ msg.append(f"Now: {now}")
1571
+ msg.append(f'Non-Buffered Duration {original}')
1572
+ msg.append(f'Buffered: {duration} (+{buffer})')
1573
+ msg.append(f"Then: {then}")
1574
+ msg.append(f'Total Break Time: {timedelta(seconds=breaks)}')
1575
+ msg.append(f"From: {nowToPercentTime(now)}")
1576
+ msg.append(f"To: {nowToPercentTime(then)}")
1577
+ msg='\n\n'.join(msg)
1578
+ return msg
1579
+ except Exception as e:
1580
+ print(e)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.774
3
+ Version: 0.0.776
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=h30zoTqt-XLt_afDPlxMxBiKKwmKi3N-yAuldNCqXUo,41476
7
7
  radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
8
- radboy/__init__.py,sha256=V0Z55cz9XAelg5fs3RKFO1fNFpFmzZvWESHsmOfPBCc,17
8
+ radboy/__init__.py,sha256=pPfPpw9zSSYeHm2YXM_b5Sno6tdMEX5cctBmrnSo4KI,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
@@ -356,7 +356,7 @@ radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSA
356
356
  radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
357
357
  radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
358
358
  radboy/TasksMode/SetEntryNEU.py,sha256=mkV9zAZe0lfpu_3coMuIILEzh6PgCNi7g9lJ4yDUpYM,20596
359
- radboy/TasksMode/Tasks.py,sha256=cXMwh9ozenlLnew3TxOSO8ogdLMih44ATKdvgB2jv9E,362241
359
+ radboy/TasksMode/Tasks.py,sha256=3kFpc5wmlykqHboT1EuydTiM9V6tkn2iYJx92lfRnkA,362259
360
360
  radboy/TasksMode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
361
361
  radboy/TasksMode/__pycache__/ReFormula.cpython-311.pyc,sha256=QEG3PwVw-8HTd_Mf9XbVcxU56F1fC9yBqWXYPLC39DU,4865
362
362
  radboy/TasksMode/__pycache__/ReFormula.cpython-312.pyc,sha256=aX7BWm2PPjCTnxsbGUitR-2h9hq4AjaBiHMrUXvIl0Y,3967
@@ -365,7 +365,7 @@ radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6Sv
365
365
  radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=jMSrUX9pvEhf67uVwrPE2ZlBCems8V7tHJ1LcC15ovU,24603
366
366
  radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
367
367
  radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
368
- radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=ivLl31WL6Ca8aGjUraMUTuMHqbYOjGTbAO6-G4U0DFw,437836
368
+ radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=J3xhMbxese4nbG-MbdohkOqvHJVQXFZTtMrhi_Ou4Hg,437907
369
369
  radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
370
370
  radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
371
371
  radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
@@ -412,7 +412,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
412
412
  radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
413
413
  radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
414
414
  radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
415
- radboy/__pycache__/__init__.cpython-313.pyc,sha256=uxEntJnUBYhOKqQm-y_E3TZdMDarYYiePhWyPbTna2E,165
415
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=31cy7CKKsdI2SKEAQX08ecc0DN5D9gsD_wbASVJTP_c,165
416
416
  radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
417
417
  radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
418
418
  radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
@@ -422,8 +422,8 @@ radboy/__pycache__/t.cpython-311.pyc,sha256=bVszNkmfiyoNLd0WUc8aBJc2geGseW4O28cq
422
422
  radboy/__pycache__/te.cpython-311.pyc,sha256=vI8eNUE5VVrfCQvnrJ7WuWpoKcLz-vVK3ifdUZ4UNhk,592
423
423
  radboy/__pycache__/x.cpython-311.pyc,sha256=3jIvWoO5y5WqrL_hRmXNK8O0vO7DwJ4gufjm2b0V7VI,1963
424
424
  radboy/preloader/__init__.py,sha256=lrGR0JF0dkDM8N9ORGUKH_MucUFx1-PI38YsvqS-wgA,926
425
- radboy/preloader/preloader.py,sha256=_FDnVlYnEyr1FVd3N4ttnb7Gf_EMGzzkxosFOnj76GY,7407
426
- radboy/preloader/preloader_func.py,sha256=-QEpIDIetQ1WH3xt7KbXkm2wypU9yLGCY7NUVuIRRYs,52862
425
+ radboy/preloader/preloader.py,sha256=B4pIg1we3HO4CQy2BRcFMIzjsf3UnG5e-M_gzjEzjdo,8027
426
+ radboy/preloader/preloader_func.py,sha256=_fRO1_piWQ7Ug_7AMGgTL4o7EkRy1hgP5ba6gNXMyaI,57574
427
427
  radboy/setCode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
428
428
  radboy/setCode/setCode.py,sha256=8UOf4okbx-Zane99odeoLAS_lfIt8pIaFomN7EtnnVA,5202
429
429
  radboy/setCode/__pycache__/__init__.cpython-311.pyc,sha256=cJuP5rve6Wn7ZO789tixyOlyrHZQWsBxDn9oZGoG5WE,232
@@ -440,7 +440,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
440
440
  radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
441
441
  radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
442
442
  radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
443
- radboy-0.0.774.dist-info/METADATA,sha256=xj_v6ZndYz4-kBUd8lcSVvOvYy53j_7i8SFB7nCotTE,1920
444
- radboy-0.0.774.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
445
- radboy-0.0.774.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
446
- radboy-0.0.774.dist-info/RECORD,,
443
+ radboy-0.0.776.dist-info/METADATA,sha256=sYG6W3Na2-kKGvMIbCZCiCOC8Gb4ekU-CEHL4rFR8kc,1920
444
+ radboy-0.0.776.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
445
+ radboy-0.0.776.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
446
+ radboy-0.0.776.dist-info/RECORD,,