radboy 0.0.659__py3-none-any.whl → 0.0.660__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/LetterWriter.py +2 -1
- radboy/DB/__pycache__/db.cpython-313.pyc +0 -0
- radboy/DB/db.py +126 -1
- radboy/TasksMode/Tasks.py +17 -0
- radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.659.dist-info → radboy-0.0.660.dist-info}/METADATA +1 -1
- {radboy-0.0.659.dist-info → radboy-0.0.660.dist-info}/RECORD +11 -11
- {radboy-0.0.659.dist-info → radboy-0.0.660.dist-info}/WHEEL +0 -0
- {radboy-0.0.659.dist-info → radboy-0.0.660.dist-info}/top_level.txt +0 -0
radboy/DB/LetterWriter.py
CHANGED
|
@@ -8,6 +8,7 @@ from uuid import uuid1
|
|
|
8
8
|
import base64,calendar
|
|
9
9
|
from colored import Fore,Style,Back
|
|
10
10
|
from radboy.FB.FormBuilder import *
|
|
11
|
+
from radboy.DB.db import *
|
|
11
12
|
@dataclass
|
|
12
13
|
class MSG:
|
|
13
14
|
DTOE:datetime=datetime.now()
|
|
@@ -44,7 +45,7 @@ def WriteLetter():
|
|
|
44
45
|
ct=len(fd)
|
|
45
46
|
mtext=[]
|
|
46
47
|
for num,i in enumerate(fd):
|
|
47
|
-
if fd[i]
|
|
48
|
+
if fd[i] not in ['',' ',None]:
|
|
48
49
|
if (num%2)!=0:
|
|
49
50
|
color_1=Fore.pale_violet_red_1
|
|
50
51
|
color_2=Fore.light_steel_blue
|
|
Binary file
|
radboy/DB/db.py
CHANGED
|
@@ -5787,4 +5787,129 @@ except Exception as e:
|
|
|
5787
5787
|
print(e,"Rebooting may fix this!")
|
|
5788
5788
|
ROBS,ROBE=['','']
|
|
5789
5789
|
|
|
5790
|
-
#'''
|
|
5790
|
+
#'''
|
|
5791
|
+
|
|
5792
|
+
def CD4TXT(code,shrt=True):
|
|
5793
|
+
if not isinstance(code,str):
|
|
5794
|
+
code=str(code)
|
|
5795
|
+
|
|
5796
|
+
with Session(ENGINE) as session:
|
|
5797
|
+
try:
|
|
5798
|
+
EID=int(code)
|
|
5799
|
+
except Exception as e:
|
|
5800
|
+
print(e)
|
|
5801
|
+
EID=None
|
|
5802
|
+
|
|
5803
|
+
if EID:
|
|
5804
|
+
query=session.query(Entry).filter(
|
|
5805
|
+
or_(
|
|
5806
|
+
Entry.Barcode.icontains(code),
|
|
5807
|
+
Entry.Code.icontains(code),
|
|
5808
|
+
Entry.Name.icontains(code),
|
|
5809
|
+
Entry.Note.icontains(code),
|
|
5810
|
+
Entry.Description.icontains(code),
|
|
5811
|
+
Entry.EntryId==EID,
|
|
5812
|
+
)
|
|
5813
|
+
|
|
5814
|
+
)
|
|
5815
|
+
else:
|
|
5816
|
+
query=session.query(Entry).filter(
|
|
5817
|
+
or_(
|
|
5818
|
+
Entry.Barcode.icontains(code),
|
|
5819
|
+
Entry.Code.icontains(code),
|
|
5820
|
+
Entry.Name.icontains(code),
|
|
5821
|
+
Entry.Note.icontains(code),
|
|
5822
|
+
Entry.Description.icontains(code),
|
|
5823
|
+
)
|
|
5824
|
+
|
|
5825
|
+
)
|
|
5826
|
+
ordered=orderQuery(query,Entry.Timestamp,inverse=True)
|
|
5827
|
+
|
|
5828
|
+
results=ordered.all()
|
|
5829
|
+
ct=len(results)
|
|
5830
|
+
htext=[]
|
|
5831
|
+
for num,i in enumerate(results):
|
|
5832
|
+
msg=std_colorize(f"{i.seeShort()}",num,ct)
|
|
5833
|
+
htext.append(msg)
|
|
5834
|
+
htext='\n'.join(htext)
|
|
5835
|
+
if len(results) < 1:
|
|
5836
|
+
return f'"No Item Was Found for {code}!"'
|
|
5837
|
+
|
|
5838
|
+
print(htext)
|
|
5839
|
+
selector=Control(func=FormBuilderMkText,ptext="Which indexes are you selecting?",helpText=htext,data="list")
|
|
5840
|
+
if selector is None:
|
|
5841
|
+
return f'"No Item Was Selected for {code}"'
|
|
5842
|
+
try:
|
|
5843
|
+
useText=[]
|
|
5844
|
+
for num,s in enumerate(selector):
|
|
5845
|
+
try:
|
|
5846
|
+
index=int(s)
|
|
5847
|
+
if shrt:
|
|
5848
|
+
txt=f"CODE('{code}')={results[index].seeShortRaw()}"
|
|
5849
|
+
else:
|
|
5850
|
+
txt=f"CODE('{code}')={strip_colors(str(results[index]))}"
|
|
5851
|
+
useText.append(txt)
|
|
5852
|
+
except Exception as e:
|
|
5853
|
+
print(e)
|
|
5854
|
+
listed=f'"({','.join(useText)})"'
|
|
5855
|
+
return listed
|
|
5856
|
+
except Exception as e:
|
|
5857
|
+
print(e)
|
|
5858
|
+
return f"An Exception is Preventing Lookup of '{code}';{e}"
|
|
5859
|
+
|
|
5860
|
+
def CD4E(code):
|
|
5861
|
+
if not isinstance(code,str):
|
|
5862
|
+
code=str(code)
|
|
5863
|
+
|
|
5864
|
+
with Session(ENGINE) as session:
|
|
5865
|
+
try:
|
|
5866
|
+
EID=int(code)
|
|
5867
|
+
except Exception as e:
|
|
5868
|
+
print(e)
|
|
5869
|
+
EID=None
|
|
5870
|
+
|
|
5871
|
+
if EID:
|
|
5872
|
+
query=session.query(Entry).filter(
|
|
5873
|
+
or_(
|
|
5874
|
+
Entry.Barcode.icontains(code),
|
|
5875
|
+
Entry.Code.icontains(code),
|
|
5876
|
+
Entry.Name.icontains(code),
|
|
5877
|
+
Entry.Note.icontains(code),
|
|
5878
|
+
Entry.Description.icontains(code),
|
|
5879
|
+
Entry.EntryId==EID,
|
|
5880
|
+
)
|
|
5881
|
+
|
|
5882
|
+
)
|
|
5883
|
+
else:
|
|
5884
|
+
query=session.query(Entry).filter(
|
|
5885
|
+
or_(
|
|
5886
|
+
Entry.Barcode.icontains(code),
|
|
5887
|
+
Entry.Code.icontains(code),
|
|
5888
|
+
Entry.Name.icontains(code),
|
|
5889
|
+
Entry.Note.icontains(code),
|
|
5890
|
+
Entry.Description.icontains(code),
|
|
5891
|
+
)
|
|
5892
|
+
|
|
5893
|
+
)
|
|
5894
|
+
ordered=orderQuery(query,Entry.Timestamp,inverse=True)
|
|
5895
|
+
|
|
5896
|
+
results=ordered.all()
|
|
5897
|
+
ct=len(results)
|
|
5898
|
+
htext=[]
|
|
5899
|
+
for num,i in enumerate(results):
|
|
5900
|
+
msg=std_colorize(f"{i.seeShort()}",num,ct)
|
|
5901
|
+
htext.append(msg)
|
|
5902
|
+
htext='\n'.join(htext)
|
|
5903
|
+
if len(results) < 1:
|
|
5904
|
+
return Entry('NOT FOUND','ERROR 404')
|
|
5905
|
+
|
|
5906
|
+
print(htext)
|
|
5907
|
+
selector=Control(func=FormBuilderMkText,ptext="Which indexes are you selecting?",helpText=htext,data="integer")
|
|
5908
|
+
if selector is None:
|
|
5909
|
+
return Entry('No Selection','Nothing Selected')
|
|
5910
|
+
try:
|
|
5911
|
+
index=selector
|
|
5912
|
+
return results[index]
|
|
5913
|
+
except Exception as e:
|
|
5914
|
+
print(e)
|
|
5915
|
+
return Entry('EXCEPTION','Exception')
|
radboy/TasksMode/Tasks.py
CHANGED
|
@@ -6248,6 +6248,23 @@ RATE(float value) can be used directly with td() to get gross
|
|
|
6248
6248
|
`RATE(26.75)*td('8h') == Rate.Gross(value=214.0)||Gross=$(float_value) -> Gross is a generic holder-class for the display
|
|
6249
6249
|
(a/b)*%=F - get F from a fraction times a custom percent, default %=100
|
|
6250
6250
|
a/b=F/d - if 3.76 dollars is used every 22.32 hours, then in 1 hour F is consumed/WHAT?
|
|
6251
|
+
|
|
6252
|
+
CD4TXT(str_code_or_id,shrt=True/False) -> Retrieves the text for an Entry(s) that is represented by CODE.
|
|
6253
|
+
shrt=True/False
|
|
6254
|
+
True -> get the short text for CODE
|
|
6255
|
+
False -> get the long text for the CODE
|
|
6256
|
+
str_code_or_id
|
|
6257
|
+
a string with barcode/code/desciption/name/entry id, or an integer entryId to lookup
|
|
6258
|
+
if results are found you will be prompted to select the one('s) you will be using.
|
|
6259
|
+
|
|
6260
|
+
if no results are found the text will return f'"No Item Was Found for CODE!"'
|
|
6261
|
+
if no item was selected the text will return f'"No Item Was Selected for CODE"'
|
|
6262
|
+
if an exception prevents operation the text will return f"An Exception is Preventing Lookup of CODE';EXCEPTION"
|
|
6263
|
+
|
|
6264
|
+
CD4E(str_code_or_id,shrt=True/False) -> Retrieves the Entry for an Entry(s) Code that is represented by CODE; you can access its properties via the dot(.) operator.
|
|
6265
|
+
if no item is found, then an un-commited Entry is returned; Entry('NOT FOUND','ERROR 404').
|
|
6266
|
+
if no item is selected, then an un-commited Entry is returned; Entry('No Selection','Nothing Selected').
|
|
6267
|
+
if an exception prevents operation, then an un-commited Entry is returned; Entry('EXCEPTION','Exception').
|
|
6251
6268
|
{Style.reset}'''
|
|
6252
6269
|
def mkValue(text,self):
|
|
6253
6270
|
try:
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.660'
|
|
Binary file
|
|
@@ -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=KI7Jmf3MX0Zng_YUvcjVKN2siyUOhaMAHQGzpPuX8KQ,41373
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=HVzz2j9RIBAdHhioHlbjRHUW1l05XF6VmcYkj7bJqZg,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
|
|
@@ -83,7 +83,7 @@ radboy/DB/DatePicker.py,sha256=B75mDtXQrkHRCpoU9TJsaBVvkK37ykMaJyaiqGOo4dM,18334
|
|
|
83
83
|
radboy/DB/DisplayItemDb.py,sha256=uVvrNyFyBuKvrw-BEPXKYvfa-QWyFN5ahESi2l6vUUA,52046
|
|
84
84
|
radboy/DB/EstimatedPayCalendarWorkSheet.txt,sha256=GOjRSmGxFoNTdAnpPe2kGv7CkXDrh0Mee01HslamGbo,17173
|
|
85
85
|
radboy/DB/ExerciseTracker.py,sha256=OS9i8jGIZPj-6m1bB0-eKNHQ6vf2iv_AYPEc0s4bkBM,27809
|
|
86
|
-
radboy/DB/LetterWriter.py,sha256=
|
|
86
|
+
radboy/DB/LetterWriter.py,sha256=0B14GB-hJK2Xf_TFASriOELFygiI1LwkSb__R3tUiU0,2631
|
|
87
87
|
radboy/DB/OrderedAndRxd.py,sha256=PZ_Rbm0H3DFhHuN1SZEnd1RhEnKOU_L0X0MHXwYN3-s,23004
|
|
88
88
|
radboy/DB/PayDay.py,sha256=H2kPGvBCDkMOz7lbxQhYtUt_oAInpxi37Q6MFrah98I,8710
|
|
89
89
|
radboy/DB/PayModels.py,sha256=hjwWxP7PL33hmfzQl5YTf0HqzaMxXJxFknPdxFJXJc8,3499
|
|
@@ -95,7 +95,7 @@ radboy/DB/SMLabelImporter.py,sha256=eUoBDxVUUEKGL2g_PwkASM67ZB7FmXtSnn4bCagskhY,
|
|
|
95
95
|
radboy/DB/__init__.py,sha256=JiigA9B7GalP7YuRdcwyGDu5PDSBahoi0lLjtScxlN8,49
|
|
96
96
|
radboy/DB/blankDataFile.py,sha256=YX_05Usi71UpDkZN9UTMYwUipbTndTAtEgqzBEga0kE,9285
|
|
97
97
|
radboy/DB/config.py,sha256=bvu43dUl1_yO3Zq3gsLuenGUgJSiS3S9Cs6ppFEvZbg,239
|
|
98
|
-
radboy/DB/db.py,sha256=
|
|
98
|
+
radboy/DB/db.py,sha256=AaHwBBY72PcPL6qI1aryHeroNQgY_hS4gA2odVGgqnA,261645
|
|
99
99
|
radboy/DB/glossary_db.py,sha256=1_qxeEpjjEtpWB_eDjsgJisimLv7OBm75MuqM-Lt6zg,28218
|
|
100
100
|
radboy/DB/masterLookup.py,sha256=DBaM2uscG3_X5dek49wjdnOzhrjWhKgvOEz_umdz0mY,4566
|
|
101
101
|
radboy/DB/msg.txt,sha256=YxWed6A6tuP1djJ5QPS2Rz3ING4TKKf8kUiCCPtzHXE,7937
|
|
@@ -131,7 +131,7 @@ radboy/DB/__pycache__/config.cpython-312.pyc,sha256=Qo7E6MHrF6yqvKgepNFyCoekZXiv
|
|
|
131
131
|
radboy/DB/__pycache__/config.cpython-313.pyc,sha256=_8wCIg_3jhyJjxnExD2Sm6aY-uZTw036p7Ki5znL7dc,376
|
|
132
132
|
radboy/DB/__pycache__/db.cpython-311.pyc,sha256=rNgigyBd0D-cg1JxKAS8t0B_k0IEJivgVlRaZE10Xis,210105
|
|
133
133
|
radboy/DB/__pycache__/db.cpython-312.pyc,sha256=ANDJPC0RoavbmSKFxG15vC7B4rEGyVt7xRJt7XGY3OA,334609
|
|
134
|
-
radboy/DB/__pycache__/db.cpython-313.pyc,sha256=
|
|
134
|
+
radboy/DB/__pycache__/db.cpython-313.pyc,sha256=c4pmtaCfyZF2zzTTbilslCmyHj9iNfnQEjwsiyX4A8k,409921
|
|
135
135
|
radboy/DB/__pycache__/glossary_db.cpython-312.pyc,sha256=8UL-29cKqtKovx0BANm6kzKKteef1BW_2qF3wumzst4,36023
|
|
136
136
|
radboy/DB/__pycache__/glossary_db.cpython-313.pyc,sha256=Ke9bkvllGv5CK0JdT9DRvQ3MOdrXxoYv7TVLNkqLux0,36582
|
|
137
137
|
radboy/DB/__pycache__/masterLookup.cpython-312.pyc,sha256=bQiOkmMwwHgcO18tYSWGQ-YUff4GQlKVhBMp1GoWAqY,6324
|
|
@@ -346,7 +346,7 @@ radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSA
|
|
|
346
346
|
radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
|
|
347
347
|
radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
|
|
348
348
|
radboy/TasksMode/SetEntryNEU.py,sha256=mkV9zAZe0lfpu_3coMuIILEzh6PgCNi7g9lJ4yDUpYM,20596
|
|
349
|
-
radboy/TasksMode/Tasks.py,sha256=
|
|
349
|
+
radboy/TasksMode/Tasks.py,sha256=6i8c3qFzDghuLIGVZEv5qF-izvqQ0uvek4mkZHxrWfQ,355150
|
|
350
350
|
radboy/TasksMode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
351
351
|
radboy/TasksMode/__pycache__/ReFormula.cpython-311.pyc,sha256=QEG3PwVw-8HTd_Mf9XbVcxU56F1fC9yBqWXYPLC39DU,4865
|
|
352
352
|
radboy/TasksMode/__pycache__/ReFormula.cpython-312.pyc,sha256=aX7BWm2PPjCTnxsbGUitR-2h9hq4AjaBiHMrUXvIl0Y,3967
|
|
@@ -355,7 +355,7 @@ radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6Sv
|
|
|
355
355
|
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=jMSrUX9pvEhf67uVwrPE2ZlBCems8V7tHJ1LcC15ovU,24603
|
|
356
356
|
radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
|
|
357
357
|
radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
|
|
358
|
-
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=
|
|
358
|
+
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=lnWIMHJjKXqvMW1dXrHBzJNV48wXnbqPgQj-17BPdcs,429557
|
|
359
359
|
radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
|
|
360
360
|
radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
|
|
361
361
|
radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
|
|
@@ -402,7 +402,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
402
402
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
403
403
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
404
404
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
405
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
405
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=zmv6kQx6V4yH-PMM96LiWASJMOXMhgD6FfT57dblim0,165
|
|
406
406
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
407
407
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
408
408
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -430,7 +430,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
430
430
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
431
431
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
432
432
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
433
|
-
radboy-0.0.
|
|
434
|
-
radboy-0.0.
|
|
435
|
-
radboy-0.0.
|
|
436
|
-
radboy-0.0.
|
|
433
|
+
radboy-0.0.660.dist-info/METADATA,sha256=5J3cukeMBqlhq1IL8PucmAIg-ZyDhbjKSUj1M-CKBd8,1891
|
|
434
|
+
radboy-0.0.660.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
435
|
+
radboy-0.0.660.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
436
|
+
radboy-0.0.660.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|