radboy 0.0.777__py3-none-any.whl → 0.0.778__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 +88 -49
- 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.777.dist-info → radboy-0.0.778.dist-info}/METADATA +1 -1
- {radboy-0.0.777.dist-info → radboy-0.0.778.dist-info}/RECORD +8 -8
- {radboy-0.0.777.dist-info → radboy-0.0.778.dist-info}/WHEEL +0 -0
- {radboy-0.0.777.dist-info → radboy-0.0.778.dist-info}/top_level.txt +0 -0
radboy/TasksMode/Tasks.py
CHANGED
|
@@ -1164,57 +1164,96 @@ def generateWhiteNoise():
|
|
|
1164
1164
|
print(e)
|
|
1165
1165
|
|
|
1166
1166
|
class TasksMode:
|
|
1167
|
-
def nanoid(self,auto=None):
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
'
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
'
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
'
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
'
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
if not auto:
|
|
1188
|
-
fd=FormBuilder(data=fields)
|
|
1189
|
-
if fd is None:
|
|
1190
|
-
return None
|
|
1191
|
-
else:
|
|
1192
|
-
fd={
|
|
1193
|
-
'chunk size':7,
|
|
1194
|
-
'size':21,
|
|
1195
|
-
'delim':'/',
|
|
1196
|
-
'alphabet':string.ascii_uppercase+string.digits,
|
|
1167
|
+
def nanoid(self,auto=None,check_dup=True):
|
|
1168
|
+
while True:
|
|
1169
|
+
with localcontext() as ctx:
|
|
1170
|
+
fields={
|
|
1171
|
+
'size':{
|
|
1172
|
+
'default':21,
|
|
1173
|
+
'type':'integer',
|
|
1174
|
+
},
|
|
1175
|
+
'alphabet':{
|
|
1176
|
+
'default':string.ascii_uppercase+string.digits,
|
|
1177
|
+
'type':'string',
|
|
1178
|
+
},
|
|
1179
|
+
'chunk size':{
|
|
1180
|
+
'default':7,
|
|
1181
|
+
'type':'integer',
|
|
1182
|
+
},
|
|
1183
|
+
'delim':{
|
|
1184
|
+
'default':'/',
|
|
1185
|
+
'type':'string',
|
|
1186
|
+
}
|
|
1197
1187
|
}
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1188
|
+
if not auto:
|
|
1189
|
+
fd=FormBuilder(data=fields)
|
|
1190
|
+
if fd is None:
|
|
1191
|
+
return None
|
|
1192
|
+
else:
|
|
1193
|
+
fd={
|
|
1194
|
+
'chunk size':7,
|
|
1195
|
+
'size':21,
|
|
1196
|
+
'delim':'/',
|
|
1197
|
+
'alphabet':string.ascii_uppercase+string.digits,
|
|
1198
|
+
}
|
|
1199
|
+
recieptidFile=detectGetOrSet("NanoIdFile","nanoid.txt",setValue=False,literal=True)
|
|
1200
|
+
idx=nanoid.generate(fd['alphabet'],fd['size'])
|
|
1201
|
+
idx=f'{fd["delim"]}'.join(stre(idx)/fd["chunk size"])
|
|
1201
1202
|
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1203
|
+
|
|
1204
|
+
if check_dup:
|
|
1205
|
+
idxx=str(idx)
|
|
1206
|
+
with Session(ENGINE) as session:
|
|
1207
|
+
f=[
|
|
1208
|
+
Entry.Name.icontains(idxx),
|
|
1209
|
+
Entry.Barcode.icontains(idxx),
|
|
1210
|
+
Entry.Code.icontains(idxx),
|
|
1211
|
+
Entry.Name.icontains(idxx),
|
|
1212
|
+
Entry.ALT_Barcode.icontains(idxx),
|
|
1213
|
+
Entry.DUP_Barcode.icontains(idxx),
|
|
1214
|
+
Entry.CaseID_BR.icontains(idxx),
|
|
1215
|
+
Entry.CaseID_LD.icontains(idxx),
|
|
1216
|
+
Entry.CaseID_6W.icontains(idxx),
|
|
1217
|
+
Entry.Tags.icontains(idxx),
|
|
1218
|
+
]
|
|
1219
|
+
check=session.query(Entry).filter(or_(*f)).first()
|
|
1220
|
+
if check is not None:
|
|
1221
|
+
print(f"{Fore.orange_red_1}A Collision may have occurred in Entry [{check}{Fore.orange_red_1},] ... trying {Fore.light_yellow}again!{Style.reset}")
|
|
1222
|
+
continue
|
|
1223
|
+
|
|
1224
|
+
f=[
|
|
1225
|
+
DayLog.Name.icontains(idxx),
|
|
1226
|
+
DayLog.Barcode.icontains(idxx),
|
|
1227
|
+
DayLog.Code.icontains(idxx),
|
|
1228
|
+
DayLog.Name.icontains(idxx),
|
|
1229
|
+
DayLog.ALT_Barcode.icontains(idxx),
|
|
1230
|
+
DayLog.DUP_Barcode.icontains(idxx),
|
|
1231
|
+
DayLog.CaseID_BR.icontains(idxx),
|
|
1232
|
+
DayLog.CaseID_LD.icontains(idxx),
|
|
1233
|
+
DayLog.CaseID_6W.icontains(idxx),
|
|
1234
|
+
DayLog.Tags.icontains(idxx),
|
|
1235
|
+
]
|
|
1236
|
+
check=session.query(DayLog).filter(or_(*f)).first()
|
|
1237
|
+
if check is not None:
|
|
1238
|
+
print(f"{Fore.orange_red_1}A Collision may have occurred in DayLog [{check}{Fore.orange_red_1},] ... trying {Fore.light_yellow}again!{Style.reset}")
|
|
1239
|
+
continue
|
|
1240
|
+
|
|
1241
|
+
if not auto:
|
|
1242
|
+
returnIDX=Control(func=FormBuilderMkText,ptext=f"return '{idx}'; it will be saved to {recieptidFile}",helpText=f"return '{idx}' as a string",data="boolean")
|
|
1243
|
+
else:
|
|
1244
|
+
returnIDX=None
|
|
1245
|
+
|
|
1246
|
+
if recieptidFile is not None:
|
|
1247
|
+
if auto:
|
|
1248
|
+
print(f"'{recieptidFile}' was updated with '{idx}'.")
|
|
1249
|
+
recieptidFile=Path(recieptidFile)
|
|
1250
|
+
with recieptidFile.open("w") as f:
|
|
1251
|
+
f.write(idx+"\n")
|
|
1252
|
+
|
|
1253
|
+
if returnIDX in [False,'NaN',None]:
|
|
1254
|
+
return None
|
|
1255
|
+
elif returnIDX in ['d',True]:
|
|
1256
|
+
return str(idx)
|
|
1218
1257
|
|
|
1219
1258
|
def mkRun(self):
|
|
1220
1259
|
rootdir=Control(func=FormBuilderMkText,ptext=f"Root Directory[d={ROOTDIR}/path|p=str(Path().cwd())]",helpText="root directory",data="string")
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.778'
|
|
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=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=y933wT1tIaUK9xIRchLa3TSdS_QP0A6Ky2Z3bMax6LI,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=
|
|
359
|
+
radboy/TasksMode/Tasks.py,sha256=0kJ2Cz7PySUow0Uro8XSmatz8Idr4gc4Bz9nRfsVYJE,364590
|
|
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=
|
|
368
|
+
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=GUeTVFn-2OgP03RXdAYQ3zRWdih3RdVmiRiGDhL-E4g,440990
|
|
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=
|
|
415
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=1hJ1mqF5tw5xmmoSEvl6n9RqpReHgRTYqG3NqNOVieM,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
|
|
@@ -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.778.dist-info/METADATA,sha256=3twZNHKJVftYzRyYtQTg-G_3cK1nek7po8d74hd1FsM,1920
|
|
444
|
+
radboy-0.0.778.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
445
|
+
radboy-0.0.778.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
446
|
+
radboy-0.0.778.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|