radboy 0.0.820__py3-none-any.whl → 0.0.822__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/__pycache__/Tasks.cpython-313.pyc +0 -0
- radboy/Unified/Unified.py +7 -0
- radboy/Unified/__pycache__/Unified.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- radboy/preloader/preloader.py +20 -0
- radboy/preloader/preloader_func.py +147 -1
- {radboy-0.0.820.dist-info → radboy-0.0.822.dist-info}/METADATA +1 -1
- {radboy-0.0.820.dist-info → radboy-0.0.822.dist-info}/RECORD +11 -11
- {radboy-0.0.820.dist-info → radboy-0.0.822.dist-info}/WHEEL +0 -0
- {radboy-0.0.820.dist-info → radboy-0.0.822.dist-info}/top_level.txt +0 -0
|
Binary file
|
radboy/Unified/Unified.py
CHANGED
|
@@ -929,6 +929,13 @@ rmc.quikRn(rootdir=ROOTDIR)'''.encode()
|
|
|
929
929
|
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{ExtraTXT}{Style.reset}")
|
|
930
930
|
gzf.add(ExtraTXT)
|
|
931
931
|
|
|
932
|
+
extra_drugs=detectGetOrSet("extra_drugs","extra_drugs.csv",setValue=False,literal=True)
|
|
933
|
+
if extra_drugs:
|
|
934
|
+
extra_drugs=Path(extra_drugs)
|
|
935
|
+
if extra_drugs.exists():
|
|
936
|
+
print(f"{Fore.spring_green_3b}Adding {Fore.green_yellow}{extra_drugs}{Style.reset}")
|
|
937
|
+
gzf.add(extra_drugs)
|
|
938
|
+
|
|
932
939
|
generated_string=Path('GeneratedString.txt')
|
|
933
940
|
if generated_string:
|
|
934
941
|
generated_string=Path(generated_string)
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.822'
|
|
Binary file
|
radboy/preloader/preloader.py
CHANGED
|
@@ -7,6 +7,26 @@ preloader={
|
|
|
7
7
|
'desc':f'find the volume of height*width*length without dimensions',
|
|
8
8
|
'exec':volume
|
|
9
9
|
},
|
|
10
|
+
f'{uuid1()}':{
|
|
11
|
+
'cmds':['value from total mass','vftm'],
|
|
12
|
+
'desc':f'give an estimated total value for mass of currency ((1/unitMass)*ValueOfUnit)*TotalMassOfUnitToBeCounted',
|
|
13
|
+
'exec':TotalCurrencyFromMass
|
|
14
|
+
},
|
|
15
|
+
f'{uuid1()}':{
|
|
16
|
+
'cmds':['base value from mass','bvfm'],
|
|
17
|
+
'desc':f'get base value for each coin to use as the price so qty may be the gram value (1/unitMass)*ValueOfUnit',
|
|
18
|
+
'exec':BaseCurrencyValueFromMass
|
|
19
|
+
},
|
|
20
|
+
f'{uuid1()}':{
|
|
21
|
+
'cmds':['us currency mass','us cnc'],
|
|
22
|
+
'desc':f'get us currency mass values',
|
|
23
|
+
'exec':USCurrencyMassValues
|
|
24
|
+
},
|
|
25
|
+
f'{uuid1()}':{
|
|
26
|
+
'cmds':['drgs','drugs','drug-select','drug select'],
|
|
27
|
+
'desc':f'return a selected drug text',
|
|
28
|
+
'exec':drug_text
|
|
29
|
+
},
|
|
10
30
|
f'{uuid1()}':{
|
|
11
31
|
'cmds':['volume pint',],
|
|
12
32
|
'desc':f'find the volume of height*width*length using pint to normalize the values',
|
|
@@ -1612,7 +1612,7 @@ def ndtp():
|
|
|
1612
1612
|
}
|
|
1613
1613
|
fd=FormBuilder(data=fields,passThruText=msg)
|
|
1614
1614
|
if fd is None:
|
|
1615
|
-
|
|
1615
|
+
return
|
|
1616
1616
|
|
|
1617
1617
|
mph=fd['speed']
|
|
1618
1618
|
distance=fd['distance']
|
|
@@ -1641,3 +1641,149 @@ def ndtp():
|
|
|
1641
1641
|
return msg
|
|
1642
1642
|
except Exception as e:
|
|
1643
1643
|
print(e)
|
|
1644
|
+
|
|
1645
|
+
def drug_text():
|
|
1646
|
+
while True:
|
|
1647
|
+
try:
|
|
1648
|
+
drug_names=[
|
|
1649
|
+
'thc flower',
|
|
1650
|
+
'thc vape',
|
|
1651
|
+
|
|
1652
|
+
'thca flower',
|
|
1653
|
+
'thca vape',
|
|
1654
|
+
|
|
1655
|
+
'caffiene',
|
|
1656
|
+
'caffiene+taurine',
|
|
1657
|
+
'caffiene+beta_alanine',
|
|
1658
|
+
|
|
1659
|
+
'alcohol',
|
|
1660
|
+
'alcohol+thc flower',
|
|
1661
|
+
'alcohol+thca flower',
|
|
1662
|
+
|
|
1663
|
+
'caffiene+thca flower+menthol',
|
|
1664
|
+
'caffiene+thc flower+menthol',
|
|
1665
|
+
]
|
|
1666
|
+
extra_drugs=detectGetOrSet("extra_drugs","extra_drugs.csv",setValue=False,literal=True)
|
|
1667
|
+
if extra_drugs:
|
|
1668
|
+
extra_drugs=Path(extra_drugs)
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
if extra_drugs.exists():
|
|
1672
|
+
with extra_drugs.open("r") as fileio:
|
|
1673
|
+
reader=csv.reader(fileio,delimiter=',')
|
|
1674
|
+
for line in reader:
|
|
1675
|
+
for sub in line:
|
|
1676
|
+
if sub not in ['',]:
|
|
1677
|
+
drug_names.append(sub)
|
|
1678
|
+
|
|
1679
|
+
|
|
1680
|
+
|
|
1681
|
+
htext=[]
|
|
1682
|
+
cta=len(drug_names)
|
|
1683
|
+
for num,i in enumerate(drug_names):
|
|
1684
|
+
htext.append(std_colorize(i,num,cta))
|
|
1685
|
+
htext='\n'.join(htext)
|
|
1686
|
+
print(htext)
|
|
1687
|
+
which=Control(func=FormBuilderMkText,ptext="which index?",helpText=htext,data="integer")
|
|
1688
|
+
if which in [None,'NaN']:
|
|
1689
|
+
return
|
|
1690
|
+
|
|
1691
|
+
return drug_names[which]
|
|
1692
|
+
except Exception as e:
|
|
1693
|
+
print(e)
|
|
1694
|
+
continue
|
|
1695
|
+
|
|
1696
|
+
def TotalCurrencyFromMass():
|
|
1697
|
+
msg=''
|
|
1698
|
+
while True:
|
|
1699
|
+
try:
|
|
1700
|
+
fields={
|
|
1701
|
+
'1 Unit Mass(Grams)':{
|
|
1702
|
+
'type':'dec.dec',
|
|
1703
|
+
'default':2.50,
|
|
1704
|
+
},
|
|
1705
|
+
'1 Unit Value($)':{
|
|
1706
|
+
'type':'dec.dec',
|
|
1707
|
+
'default':0.01
|
|
1708
|
+
},
|
|
1709
|
+
'Total Unit Mass (Total Coin/Bill Mass)':{
|
|
1710
|
+
'type':'dec.dec',
|
|
1711
|
+
'default':0.0
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
fd=FormBuilder(data=fields,passThruText=msg)
|
|
1715
|
+
if fd is None:
|
|
1716
|
+
return
|
|
1717
|
+
value=(decc(1/fd['1 Unit Mass(Grams)'])*decc(fd['1 Unit Value($)']))*decc(fd['Total Unit Mass (Total Coin/Bill Mass)'])
|
|
1718
|
+
return value
|
|
1719
|
+
except Exception as e:
|
|
1720
|
+
print(e)
|
|
1721
|
+
|
|
1722
|
+
def BaseCurrencyValueFromMass():
|
|
1723
|
+
msg=''
|
|
1724
|
+
while True:
|
|
1725
|
+
try:
|
|
1726
|
+
fields={
|
|
1727
|
+
'1 Unit Mass(Grams)':{
|
|
1728
|
+
'type':'dec.dec',
|
|
1729
|
+
'default':2.50,
|
|
1730
|
+
},
|
|
1731
|
+
'1 Unit Value($)':{
|
|
1732
|
+
'type':'dec.dec',
|
|
1733
|
+
'default':0.01
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
fd=FormBuilder(data=fields,passThruText=msg)
|
|
1737
|
+
if fd is None:
|
|
1738
|
+
return
|
|
1739
|
+
value=(decc(1/fd['1 Unit Mass(Grams)'])*decc(fd['1 Unit Value($)']))
|
|
1740
|
+
return value
|
|
1741
|
+
except Exception as e:
|
|
1742
|
+
print(e)
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
def USCurrencyMassValues():
|
|
1746
|
+
while True:
|
|
1747
|
+
try:
|
|
1748
|
+
drug_names={
|
|
1749
|
+
'Mass(Grams) - 1 Dollar Coin/1.0':decc(8.1),
|
|
1750
|
+
'Mass(Grams) - Half Dollar/0.50':decc(11.340),
|
|
1751
|
+
'Mass(Grams) - Quarter/0.25':decc(5.670),
|
|
1752
|
+
'Mass(Grams) - Nickel/0.05':decc(5.0),
|
|
1753
|
+
'Mass(Grams) - Dime/0.10':decc(2.268),
|
|
1754
|
+
'Mass(Grams) - Penny/0.01':decc(2.5),
|
|
1755
|
+
'Mass(Grams) - Bill($1/$2/$5/$10/$20/$50/$100':decc(1),
|
|
1756
|
+
|
|
1757
|
+
'Value for Mass(Grams) - 1 Dollar Coin/8.1 Grams':1.00,
|
|
1758
|
+
'Value for Mass(Grams) - Half Dollar/11.340 Grams':0.50,
|
|
1759
|
+
'Value for Mass(Grams) - Quarter/5.670 Grams':0.25,
|
|
1760
|
+
'Value for Mass(Grams) - Nickel/5 Grams':0.05,
|
|
1761
|
+
'Value for Mass(Grams) - Dime/2.268 Grams':0.10,
|
|
1762
|
+
'Value for Mass(Grams) - Penny/2.5 Grams':0.01,
|
|
1763
|
+
'Value for Mass(Grams) - 1$ Bill/1 Grams':1,
|
|
1764
|
+
'Value for Mass(Grams) - 2$ Bill/1 Grams':2,
|
|
1765
|
+
'Value for Mass(Grams) - 5$ Bill/1 Grams':5,
|
|
1766
|
+
'Value for Mass(Grams) - 10$ Bill/1 Grams':10,
|
|
1767
|
+
'Value for Mass(Grams) - 20$ Bill/1 Grams':20,
|
|
1768
|
+
'Value for Mass(Grams) - 50$ Bill/1 Grams':50,
|
|
1769
|
+
'Value for Mass(Grams) - 100$ Bill/1 Grams':100,
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
|
|
1773
|
+
keys=[]
|
|
1774
|
+
htext=[]
|
|
1775
|
+
cta=len(drug_names)
|
|
1776
|
+
for num,i in enumerate(drug_names):
|
|
1777
|
+
msg=f'{i} -> {drug_names[i]}'
|
|
1778
|
+
htext.append(std_colorize(msg,num,cta))
|
|
1779
|
+
keys.append(i)
|
|
1780
|
+
htext='\n'.join(htext)
|
|
1781
|
+
print(htext)
|
|
1782
|
+
which=Control(func=FormBuilderMkText,ptext="which index?",helpText=htext,data="integer")
|
|
1783
|
+
if which in [None,'NaN']:
|
|
1784
|
+
return
|
|
1785
|
+
return drug_names[keys[which]]
|
|
1786
|
+
|
|
1787
|
+
except Exception as e:
|
|
1788
|
+
print(e)
|
|
1789
|
+
continue
|
|
@@ -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=thSOphQxW14zVgIx0k0u41Me8fSJeNJf6UwljhgxuEg,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
|
|
@@ -366,7 +366,7 @@ radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6Sv
|
|
|
366
366
|
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=jMSrUX9pvEhf67uVwrPE2ZlBCems8V7tHJ1LcC15ovU,24603
|
|
367
367
|
radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
|
|
368
368
|
radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
|
|
369
|
-
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=
|
|
369
|
+
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=ShffoWWR3FLC79G1NhUHzhA2HD2F63NnByNEf0n5Nz4,454684
|
|
370
370
|
radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
|
|
371
371
|
radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
|
|
372
372
|
radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
|
|
@@ -378,14 +378,14 @@ radboy/TouchStampC/__pycache__/TouchStampC.cpython-313.pyc,sha256=6A1Z56mlsBBZi4
|
|
|
378
378
|
radboy/TouchStampC/__pycache__/__init__.cpython-311.pyc,sha256=0Rn25Y_gKIKFC7fRVMToQ99ozp8rqnK3HkTajb4skdo,236
|
|
379
379
|
radboy/TouchStampC/__pycache__/__init__.cpython-312.pyc,sha256=Qa5Iy6Fp7_w5wPhQCbj6FFvfMttQoNd5j6DTqYXa_GQ,274
|
|
380
380
|
radboy/TouchStampC/__pycache__/__init__.cpython-313.pyc,sha256=kA-p_LdocXJQHfYfDE0DQZ3fgzbfoL90Kr0soLsff_w,153
|
|
381
|
-
radboy/Unified/Unified.py,sha256=
|
|
381
|
+
radboy/Unified/Unified.py,sha256=SvwPHQFJr6F65_xkbmXtMaCq6ewRnT3MrzUhJp7-_II,66474
|
|
382
382
|
radboy/Unified/Unified2.py,sha256=TnJQ5Ir28cLG449o8mDe8Ya1Zx4WaRhuoHfEIrCbJME,42257
|
|
383
383
|
radboy/Unified/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
384
384
|
radboy/Unified/bareCA.py,sha256=CCqpwi2mhH-pzR4PzWxYrUIQcCxCIi05EtWMhdjfNLo,7169
|
|
385
385
|
radboy/Unified/clearalll.py,sha256=KeBpy_OrpjQL3sJZgOjsVACruwGoZTQMUJKqW26xu3M,3977
|
|
386
386
|
radboy/Unified/__pycache__/Unified.cpython-311.pyc,sha256=ZtvZDV9cVMV_r_Cuj6LR4m27CGUnZy0l9zUTILSnMRg,65018
|
|
387
387
|
radboy/Unified/__pycache__/Unified.cpython-312.pyc,sha256=BT3bLl4LQUs7m3H44WVjg6BsHfU9xnWNwpytZSA2smI,78625
|
|
388
|
-
radboy/Unified/__pycache__/Unified.cpython-313.pyc,sha256
|
|
388
|
+
radboy/Unified/__pycache__/Unified.cpython-313.pyc,sha256=-WdUWwuMFbeW9DHfH8zKDJDDPnUQNBcgHOzzd3buFYA,82621
|
|
389
389
|
radboy/Unified/__pycache__/__init__.cpython-311.pyc,sha256=2OjdGThHMNZ2yMrbdlwiKHKtCDLQfJdNhtDVtLDUKCk,232
|
|
390
390
|
radboy/Unified/__pycache__/__init__.cpython-312.pyc,sha256=5aXXASuWsXCly7t_gqJ6cVbdAeTo4Wom8989FszH4Xw,270
|
|
391
391
|
radboy/Unified/__pycache__/__init__.cpython-313.pyc,sha256=h03zVuB4hfY_ko4nkuSS-SIkjHOGTlFM9bDpMdQPwg4,149
|
|
@@ -413,7 +413,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
413
413
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
414
414
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
415
415
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
416
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
416
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=Gl1bxpduUsb2NT6dP-3uxLBfIwVe4xNUgMuhN5NX_pk,165
|
|
417
417
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
418
418
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
419
419
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -423,8 +423,8 @@ radboy/__pycache__/t.cpython-311.pyc,sha256=bVszNkmfiyoNLd0WUc8aBJc2geGseW4O28cq
|
|
|
423
423
|
radboy/__pycache__/te.cpython-311.pyc,sha256=vI8eNUE5VVrfCQvnrJ7WuWpoKcLz-vVK3ifdUZ4UNhk,592
|
|
424
424
|
radboy/__pycache__/x.cpython-311.pyc,sha256=3jIvWoO5y5WqrL_hRmXNK8O0vO7DwJ4gufjm2b0V7VI,1963
|
|
425
425
|
radboy/preloader/__init__.py,sha256=lrGR0JF0dkDM8N9ORGUKH_MucUFx1-PI38YsvqS-wgA,926
|
|
426
|
-
radboy/preloader/preloader.py,sha256=
|
|
427
|
-
radboy/preloader/preloader_func.py,sha256=
|
|
426
|
+
radboy/preloader/preloader.py,sha256=137c5pW-NRhskZeNsQYV6KAbINkmysrAk7OPKbEnKTo,8910
|
|
427
|
+
radboy/preloader/preloader_func.py,sha256=zcjgsVH9CKQzZ6eoQuJifF6ZTL4hQI3cRTs0-d0EhiE,63530
|
|
428
428
|
radboy/setCode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
429
429
|
radboy/setCode/setCode.py,sha256=8UOf4okbx-Zane99odeoLAS_lfIt8pIaFomN7EtnnVA,5202
|
|
430
430
|
radboy/setCode/__pycache__/__init__.cpython-311.pyc,sha256=cJuP5rve6Wn7ZO789tixyOlyrHZQWsBxDn9oZGoG5WE,232
|
|
@@ -441,7 +441,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
441
441
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
442
442
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
443
443
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
444
|
-
radboy-0.0.
|
|
445
|
-
radboy-0.0.
|
|
446
|
-
radboy-0.0.
|
|
447
|
-
radboy-0.0.
|
|
444
|
+
radboy-0.0.822.dist-info/METADATA,sha256=tQbaRIrlTW40Won4a4A8XpccZrBh3X7FmD-fGBhuiys,1920
|
|
445
|
+
radboy-0.0.822.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
446
|
+
radboy-0.0.822.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
447
|
+
radboy-0.0.822.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|