radboy 0.0.775__py3-none-any.whl → 0.0.777__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/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- radboy/preloader/preloader.py +15 -0
- radboy/preloader/preloader_func.py +191 -1
- {radboy-0.0.775.dist-info → radboy-0.0.777.dist-info}/METADATA +1 -1
- {radboy-0.0.775.dist-info → radboy-0.0.777.dist-info}/RECORD +8 -8
- {radboy-0.0.775.dist-info → radboy-0.0.777.dist-info}/WHEEL +0 -0
- {radboy-0.0.775.dist-info → radboy-0.0.777.dist-info}/top_level.txt +0 -0
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.777'
|
|
Binary file
|
radboy/preloader/preloader.py
CHANGED
|
@@ -27,6 +27,21 @@ preloader={
|
|
|
27
27
|
'desc':f'find the cost to run a device per day',
|
|
28
28
|
'exec':costToRun
|
|
29
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
|
+
},
|
|
30
45
|
f'{uuid1()}':{
|
|
31
46
|
'cmds':['air coil',],
|
|
32
47
|
'desc':f'''
|
|
@@ -1449,4 +1449,194 @@ def costToRun():
|
|
|
1449
1449
|
|
|
1450
1450
|
cost=((fd['wattage of device plugged in, turned on/off?']/1000)*fd['electrical providers cost per kWh'])
|
|
1451
1451
|
total_cost_to=cost*fd['hours of use?']
|
|
1452
|
-
return total_cost_to
|
|
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
|
+
fields={
|
|
1499
|
+
'reciept number':{
|
|
1500
|
+
'default':'',
|
|
1501
|
+
'type':'string'
|
|
1502
|
+
},
|
|
1503
|
+
'reciept dtoe':{
|
|
1504
|
+
'default':datetime.now(),
|
|
1505
|
+
'type':'datetime'
|
|
1506
|
+
},
|
|
1507
|
+
'recieved from':{
|
|
1508
|
+
'default':'',
|
|
1509
|
+
'type':'string'
|
|
1510
|
+
},
|
|
1511
|
+
'address':{
|
|
1512
|
+
'default':'',
|
|
1513
|
+
'type':'string'
|
|
1514
|
+
},
|
|
1515
|
+
'Amount ($)':{
|
|
1516
|
+
'default':0,
|
|
1517
|
+
'type':'dec.dec',
|
|
1518
|
+
},
|
|
1519
|
+
'For':{
|
|
1520
|
+
'default':'',
|
|
1521
|
+
'type':'string'
|
|
1522
|
+
},
|
|
1523
|
+
'By':{
|
|
1524
|
+
'default':'',
|
|
1525
|
+
'type':'string'
|
|
1526
|
+
},
|
|
1527
|
+
'Amount of Account':{
|
|
1528
|
+
'default':0,
|
|
1529
|
+
'type':'dec.dec',
|
|
1530
|
+
},
|
|
1531
|
+
'Amount Paid':{
|
|
1532
|
+
'default':0,
|
|
1533
|
+
'type':'dec.dec',
|
|
1534
|
+
},
|
|
1535
|
+
'Balance Due':{
|
|
1536
|
+
'default':0,
|
|
1537
|
+
'type':'dec.dec',
|
|
1538
|
+
},
|
|
1539
|
+
'Cash':{
|
|
1540
|
+
'default':0,
|
|
1541
|
+
'type':'dec.dec',
|
|
1542
|
+
},
|
|
1543
|
+
'Check':{
|
|
1544
|
+
'default':0,
|
|
1545
|
+
'type':'dec.dec',
|
|
1546
|
+
},
|
|
1547
|
+
'Money Order':{
|
|
1548
|
+
'default':0,
|
|
1549
|
+
'type':'dec.dec',
|
|
1550
|
+
},
|
|
1551
|
+
'Line 1':{
|
|
1552
|
+
'default':'',
|
|
1553
|
+
'type':'string'
|
|
1554
|
+
},
|
|
1555
|
+
'Line 2':{
|
|
1556
|
+
'default':'',
|
|
1557
|
+
'type':'string'
|
|
1558
|
+
},
|
|
1559
|
+
'Notes':{
|
|
1560
|
+
'default':'',
|
|
1561
|
+
'type':'string'
|
|
1562
|
+
},
|
|
1563
|
+
'Filing Location Id':{
|
|
1564
|
+
'default':'',
|
|
1565
|
+
'type':'string'
|
|
1566
|
+
},
|
|
1567
|
+
}
|
|
1568
|
+
fd=FormBuilder(data=fields)
|
|
1569
|
+
if fd is not None:
|
|
1570
|
+
textty=[]
|
|
1571
|
+
cta=len(fd)
|
|
1572
|
+
for num,k in enumerate(fd):
|
|
1573
|
+
msg=f"{k} = '{fd[k]}'"
|
|
1574
|
+
textty.append(strip_colors(std_colorize(msg,num,cta)))
|
|
1575
|
+
master=f'''
|
|
1576
|
+
Reciept {fd['reciept number']}
|
|
1577
|
+
----------------------------
|
|
1578
|
+
{' '+'\n '.join(textty)}
|
|
1579
|
+
----------------------------
|
|
1580
|
+
'''
|
|
1581
|
+
return master
|
|
1582
|
+
|
|
1583
|
+
def nowToPercentTime(now=None):
|
|
1584
|
+
if not isinstance(now,datetime):
|
|
1585
|
+
now=datetime.now()
|
|
1586
|
+
today=datetime(now.year,now.month,now.day)
|
|
1587
|
+
diff=now-today
|
|
1588
|
+
a=round(diff.total_seconds()/60/60/24,6)
|
|
1589
|
+
a100=round(a*100,2)
|
|
1590
|
+
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}%'))
|
|
1591
|
+
return m
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
def ndtp():
|
|
1595
|
+
msg=''
|
|
1596
|
+
while True:
|
|
1597
|
+
try:
|
|
1598
|
+
fields={
|
|
1599
|
+
'distance':{
|
|
1600
|
+
'type':'float',
|
|
1601
|
+
'default':25,
|
|
1602
|
+
},
|
|
1603
|
+
'speed':{
|
|
1604
|
+
'type':'float',
|
|
1605
|
+
'default':70
|
|
1606
|
+
},
|
|
1607
|
+
'total break time':{
|
|
1608
|
+
'type':'string',
|
|
1609
|
+
'default':'10 minutes'
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
fd=FormBuilder(data=fields,passThruText=msg)
|
|
1613
|
+
if fd is None:
|
|
1614
|
+
exit(1)
|
|
1615
|
+
|
|
1616
|
+
mph=fd['speed']
|
|
1617
|
+
distance=fd['distance']
|
|
1618
|
+
try:
|
|
1619
|
+
breaks=pint.Quantity(fd['total break time']).to('seconds').magnitude
|
|
1620
|
+
except Exception as e:
|
|
1621
|
+
breaks=pint.Quantity(fd['total break time']+' minutes').to('seconds').magnitude
|
|
1622
|
+
duration=pint.Quantity(distance/mph,'hour').to('sec').magnitude
|
|
1623
|
+
#12 minutes
|
|
1624
|
+
buffer=timedelta(minutes=15)
|
|
1625
|
+
original=timedelta(seconds=duration)+timedelta(seconds=breaks)
|
|
1626
|
+
duration=timedelta(seconds=duration+buffer.total_seconds())
|
|
1627
|
+
now=datetime.now()
|
|
1628
|
+
then=now+duration
|
|
1629
|
+
msg=[]
|
|
1630
|
+
msg.append(f'Rate of Travel: {str(mph)}')
|
|
1631
|
+
msg.append(f'Distance To Travel: {distance}')
|
|
1632
|
+
msg.append(f"Now: {now}")
|
|
1633
|
+
msg.append(f'Non-Buffered Duration {original}')
|
|
1634
|
+
msg.append(f'Buffered: {duration} (+{buffer})')
|
|
1635
|
+
msg.append(f"Then: {then}")
|
|
1636
|
+
msg.append(f'Total Break Time: {timedelta(seconds=breaks)}')
|
|
1637
|
+
msg.append(f"From: {nowToPercentTime(now)}")
|
|
1638
|
+
msg.append(f"To: {nowToPercentTime(then)}")
|
|
1639
|
+
msg='\n\n'.join(msg)
|
|
1640
|
+
return msg
|
|
1641
|
+
except Exception as e:
|
|
1642
|
+
print(e)
|
|
@@ -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=
|
|
8
|
+
radboy/__init__.py,sha256=DF1sJis2N7ny3PRH2hfLiiPGxe1u46Wm5eTn2NCI67g,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
|
|
@@ -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=
|
|
415
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=cr5T-FVSoiJ0ic0xib8XUsD4IwJDgYHvUDx2YbqijN4,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=
|
|
426
|
-
radboy/preloader/preloader_func.py,sha256=
|
|
425
|
+
radboy/preloader/preloader.py,sha256=B4pIg1we3HO4CQy2BRcFMIzjsf3UnG5e-M_gzjEzjdo,8027
|
|
426
|
+
radboy/preloader/preloader_func.py,sha256=kVviI9vOB3ROUXmw_RHzrHo6EOYJUv0H5yGPLcd2xnk,58600
|
|
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.
|
|
444
|
-
radboy-0.0.
|
|
445
|
-
radboy-0.0.
|
|
446
|
-
radboy-0.0.
|
|
443
|
+
radboy-0.0.777.dist-info/METADATA,sha256=cQgVdmijI1lmd8F1_Yju3nJllcwDR2731ZmnLSMhXTw,1920
|
|
444
|
+
radboy-0.0.777.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
445
|
+
radboy-0.0.777.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
446
|
+
radboy-0.0.777.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|