radboy 0.0.457__py3-none-any.whl → 0.0.458__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.

@@ -185,6 +185,12 @@ class TouchStampC:
185
185
  related_info=[]
186
186
  print(f"{Fore.light_red}{Back.grey_70}You CANNOT Go Back now!{Style.reset}")
187
187
  print(f"{Fore.light_green}Processing Note for Barcodes/Codes...{Style.reset}")
188
+ process_4Entry=Prompt.__init2__(None,func=FormBuilderMkText,ptext="search Entry's as component of note?",helpText="default == False",data="boolean")
189
+ if process_4Entry is None:
190
+ return
191
+ elif process_4Entry in ['d',]:
192
+ process_4Entry=False
193
+
188
194
  tmp=[]
189
195
  process=fd['Note'].split(' ')
190
196
  fd['Note']=f'''Note Text:\n{fd['Note']}'''
@@ -192,104 +198,111 @@ class TouchStampC:
192
198
  if i.lower() not in tmp:
193
199
  tmp.append(i.lower())
194
200
  process=tmp
195
- for xnum,i in enumerate(process):
196
- results=session.query(Entry).filter(or_(Entry.Barcode==i,Entry.Code==i,Entry.Barcode.icontains(i),Entry.Code.icontains(i))).all()
197
- ct=len(results)
198
- if ct > 0:
199
- print(f"There are {ct} Entry Results for - {Fore.light_magenta}{i}{Style.reset}")
200
- htext=[]
201
- for num,ii in enumerate(results):
202
- msg=f"{num}/{num+1} of {ct} -> {ii.seeShort()}"
203
- htext.append(msg)
204
- htext='\n'.join(htext)
205
- print(htext)
206
- print(f"There are {ct} Entry Results for - {Fore.light_magenta}{i}/{Fore.dark_goldenrod}{xnum}[Index]/{Fore.cyan}[Count]{xnum+1}{Fore.medium_violet_red} out of {len(process)}[Total] space-deliminated words searched in {Style.bold}{Fore.orange_red_1}Entry.Barcode|Entry.Code{Style.reset}")
207
- selected=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Select all that apply, separating with a comma[s=skp=skip]:",helpText=htext,data="list")
208
- if selected in [None,]:
209
- if self.next_barcode():
210
- continue
201
+ if process_4Entry:
202
+ for xnum,i in enumerate(process):
203
+ results=session.query(Entry).filter(or_(Entry.Barcode==i,Entry.Code==i,Entry.Barcode.icontains(i),Entry.Code.icontains(i))).all()
204
+ ct=len(results)
205
+ if ct > 0:
206
+ print(f"There are {ct} Entry Results for - {Fore.light_magenta}{i}{Style.reset}")
207
+ htext=[]
208
+ for num,ii in enumerate(results):
209
+ msg=f"{num}/{num+1} of {ct} -> {ii.seeShort()}"
210
+ htext.append(msg)
211
+ htext='\n'.join(htext)
212
+ print(htext)
213
+ print(f"There are {ct} Entry Results for - {Fore.light_magenta}{i}/{Fore.dark_goldenrod}{xnum}[Index]/{Fore.cyan}[Count]{xnum+1}{Fore.medium_violet_red} out of {len(process)}[Total] space-deliminated words searched in {Style.bold}{Fore.orange_red_1}Entry.Barcode|Entry.Code{Style.reset}")
214
+ selected=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Select all that apply, separating with a comma[s=skp=skip]:",helpText=htext,data="list")
215
+ if selected in [None,]:
216
+ if self.next_barcode():
217
+ continue
218
+ else:
219
+ return
220
+ elif selected in ['d',]:
221
+ selected=None
211
222
  else:
212
- return
213
- elif selected in ['d',]:
214
- selected=None
215
- else:
216
- skip=False
217
- for i in selected:
218
- if i.lower() in ['skip','skp','s']:
219
- skip=True
223
+ skip=False
224
+ for i in selected:
225
+ if i.lower() in ['skip','skp','s']:
226
+ skip=True
227
+ break
228
+ if skip:
220
229
  break
221
- if skip:
222
- break
223
- try:
224
- for select in selected:
225
- try:
226
- select=int(select)
227
- related_text=''
228
- excludes=['EntryId',]
229
- fields=[i.name for i in Entry.__table__.columns if str(i.name) not in excludes]
230
- for field in fields:
231
- related_text+=f"\t-\t{field} = {getattr(results[select],str(field))}\n"
232
- header=f'{results[select].Barcode} - START - Word({i})\n'
233
- footer=f'{results[select].Barcode} - END - Word({i})\n'
234
- finalText=header+related_text+footer
235
- print(finalText)
236
- if finalText not in related_info:
237
- related_info.append(finalText)
238
- except Exception as e:
239
- print(e)
240
- except Exception as e:
241
- print(e)
230
+ try:
231
+ for select in selected:
232
+ try:
233
+ select=int(select)
234
+ related_text=''
235
+ excludes=['EntryId',]
236
+ fields=[i.name for i in Entry.__table__.columns if str(i.name) not in excludes]
237
+ for field in fields:
238
+ related_text+=f"\t-\t{field} = {getattr(results[select],str(field))}\n"
239
+ header=f'{results[select].Barcode} - START - Word({i})\n'
240
+ footer=f'{results[select].Barcode} - END - Word({i})\n'
241
+ finalText=header+related_text+footer
242
+ print(finalText)
243
+ if finalText not in related_info:
244
+ related_info.append(finalText)
245
+ except Exception as e:
246
+ print(e)
247
+ except Exception as e:
248
+ print(e)
242
249
  print(f"{Fore.light_red}{Back.grey_70}You CANNOT Go Back now!{Style.reset}")
243
250
  print(f"{Fore.light_green}Processing Note for People in Roster...{Style.reset}")
244
- for i in process:
245
- results=session.query(Roster).filter(or_(Roster.FirstName.icontains(i),Roster.LastName.icontains(i))).all()
246
- ct=len(results)
247
- if ct > 0:
248
- print(f"There are {ct} Roster Results for - {Fore.light_magenta}{i}{Style.reset}")
249
- htext=[]
250
- for num,ii in enumerate(results):
251
- try:
252
- msg=f"{num}/{num+1} of {ct} -> {ii.LastName},{ii.FirstName}"
253
- htext.append(msg)
254
- except Exception as e:
255
- print(e,repr(e))
256
- htext='\n'.join(htext)
257
- print(htext)
258
- print(f"There are {ct} Roster Results for - {Fore.light_magenta}{i}/{Fore.dark_goldenrod}{xnum}[Index]/{Fore.cyan}[Count]{xnum+1}{Fore.medium_violet_red} out of {len(process)}[Total] space-deliminated words searched in {Style.bold}{Fore.orange_red_1}Roster{Style.reset}")
259
- selected=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Select all that apply, separating with a comma[s=skp=skip]:",helpText=htext,data="list")
260
- if selected in [None,]:
261
- if self.next_barcode():
262
- continue
251
+ process_4Ppl=Prompt.__init2__(None,func=FormBuilderMkText,ptext="search for people?",helpText="default == False",data="boolean")
252
+ if process_4Ppl is None:
253
+ return
254
+ elif process_4Ppl in ['d',]:
255
+ process_4Ppl=False
256
+ if process_4Ppl:
257
+ for i in process:
258
+ results=session.query(Roster).filter(or_(Roster.FirstName.icontains(i),Roster.LastName.icontains(i))).all()
259
+ ct=len(results)
260
+ if ct > 0:
261
+ print(f"There are {ct} Roster Results for - {Fore.light_magenta}{i}{Style.reset}")
262
+ htext=[]
263
+ for num,ii in enumerate(results):
264
+ try:
265
+ msg=f"{num}/{num+1} of {ct} -> {ii.LastName},{ii.FirstName}"
266
+ htext.append(msg)
267
+ except Exception as e:
268
+ print(e,repr(e))
269
+ htext='\n'.join(htext)
270
+ print(htext)
271
+ print(f"There are {ct} Roster Results for - {Fore.light_magenta}{i}/{Fore.dark_goldenrod}{xnum}[Index]/{Fore.cyan}[Count]{xnum+1}{Fore.medium_violet_red} out of {len(process)}[Total] space-deliminated words searched in {Style.bold}{Fore.orange_red_1}Roster{Style.reset}")
272
+ selected=Prompt.__init2__(None,func=FormBuilderMkText,ptext="Select all that apply, separating with a comma[s=skp=skip]:",helpText=htext,data="list")
273
+ if selected in [None,]:
274
+ if self.next_barcode():
275
+ continue
276
+ else:
277
+ return
278
+ elif selected in ['d',]:
279
+ selected=None
263
280
  else:
264
- return
265
- elif selected in ['d',]:
266
- selected=None
267
- else:
268
- skip=False
269
- for i in selected:
270
- if i.lower() in ['skip','skp','s']:
271
- skip=True
281
+ skip=False
282
+ for i in selected:
283
+ if i.lower() in ['skip','skp','s']:
284
+ skip=True
285
+ break
286
+ if skip:
272
287
  break
273
- if skip:
274
- break
275
- try:
276
- for select in selected:
277
- try:
278
- select=int(select)
279
- related_text=''
280
- excludes=['RoId',]
281
- fields=[str(i.name) for i in Roster.__table__.columns if str(i.name) not in excludes]
282
- for field in fields:
283
- related_text+=f"\t-\t{field} = {getattr(results[select],str(field))}\n"
284
- header=f'{results[select].LastName},{results[select].FirstName} - START\n'
285
- footer=f'{results[select].LastName},{results[select].FirstName} - END\n'
286
- finalText=header+related_text+footer
287
- if finalText not in related_info:
288
- related_info.append(finalText)
289
- except Exception as e:
290
- print(e)
291
- except Exception as e:
292
- print(e)
288
+ try:
289
+ for select in selected:
290
+ try:
291
+ select=int(select)
292
+ related_text=''
293
+ excludes=['RoId',]
294
+ fields=[str(i.name) for i in Roster.__table__.columns if str(i.name) not in excludes]
295
+ for field in fields:
296
+ related_text+=f"\t-\t{field} = {getattr(results[select],str(field))}\n"
297
+ header=f'{results[select].LastName},{results[select].FirstName} - START\n'
298
+ footer=f'{results[select].LastName},{results[select].FirstName} - END\n'
299
+ finalText=header+related_text+footer
300
+ if finalText not in related_info:
301
+ related_info.append(finalText)
302
+ except Exception as e:
303
+ print(e)
304
+ except Exception as e:
305
+ print(e)
293
306
  print(f"{Fore.light_red}{Back.grey_70}You CANNOT Go Back now!{Style.reset}")
294
307
  while True:
295
308
  try:
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.457'
1
+ VERSION='0.0.458'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.457
3
+ Version: 0.0.458
4
4
  Summary: A small example package
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=Lt2reA6xchq3U7Y08DvkrHboZ25i1ts7X2E9gSIwcVg,41101
7
7
  radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
8
- radboy/__init__.py,sha256=F2BZMpNHctUtvzSceVaVaL_12zQrvoEgA477myJ0JGk,17
8
+ radboy/__init__.py,sha256=jzI8mERdqmxqp9XslL15CtjRX90DldgCjMKKxGq56Lo,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
@@ -353,11 +353,11 @@ radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=D-NsV0_EJYLdpJmQSFb6-5
353
353
  radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
354
354
  radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
355
355
  radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
356
- radboy/TouchStampC/TouchStampC.py,sha256=pJsge-8KO9_bi5ChKhFmfXQFEzNJ3PMJR84v-96yQA8,32024
356
+ radboy/TouchStampC/TouchStampC.py,sha256=T64ZGUGFqlLGhPL0sYjbpw0LBX4o7b277OtK7cYujcc,33098
357
357
  radboy/TouchStampC/__init__.py,sha256=GWRzpU17OiYAq7ikbh5sxmmDOhc5uwJmVg6KrFEeywI,12
358
358
  radboy/TouchStampC/__pycache__/TouchStampC.cpython-311.pyc,sha256=JWYyl5Srdy3uwdOIEjLRN77Zoo_uwfsgjmWrVNGhsCA,27835
359
359
  radboy/TouchStampC/__pycache__/TouchStampC.cpython-312.pyc,sha256=xEB2dKJUq6wgxC6SGvBZci5Vd0hW8UbtyQZOI05Uwmo,41415
360
- radboy/TouchStampC/__pycache__/TouchStampC.cpython-313.pyc,sha256=imnqbfCvawmDw3YdXMwVnWSdRyxbOIXa6vC9wvUQp7A,41985
360
+ radboy/TouchStampC/__pycache__/TouchStampC.cpython-313.pyc,sha256=6A1Z56mlsBBZi4S0DG4H7xlUvgGYKXCBXgbwTplqDEY,42538
361
361
  radboy/TouchStampC/__pycache__/__init__.cpython-311.pyc,sha256=0Rn25Y_gKIKFC7fRVMToQ99ozp8rqnK3HkTajb4skdo,236
362
362
  radboy/TouchStampC/__pycache__/__init__.cpython-312.pyc,sha256=Qa5Iy6Fp7_w5wPhQCbj6FFvfMttQoNd5j6DTqYXa_GQ,274
363
363
  radboy/TouchStampC/__pycache__/__init__.cpython-313.pyc,sha256=kA-p_LdocXJQHfYfDE0DQZ3fgzbfoL90Kr0soLsff_w,153
@@ -396,7 +396,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
396
396
  radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
397
397
  radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
398
398
  radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
399
- radboy/__pycache__/__init__.cpython-313.pyc,sha256=3WztjYSqTAWxSd5o-oJPNPWfa9RYfhRNt0jhB_gsrpQ,165
399
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=TZ7Yd6nRq_N-JpTa6rVEL8X_LMih-zqCbKbKs9y2FSY,165
400
400
  radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
401
401
  radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
402
402
  radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
@@ -421,7 +421,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
421
421
  radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
422
422
  radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
423
423
  radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
424
- radboy-0.0.457.dist-info/METADATA,sha256=O4jv2GktkO1GnH6QXFxmcZjpbnLDNetQQPaueBOur5I,1601
425
- radboy-0.0.457.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
426
- radboy-0.0.457.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
427
- radboy-0.0.457.dist-info/RECORD,,
424
+ radboy-0.0.458.dist-info/METADATA,sha256=hoZ7ytcZidaGXfS6yeQD-EJFAbS0HquMmg0tLY32Ns8,1601
425
+ radboy-0.0.458.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
426
+ radboy-0.0.458.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
427
+ radboy-0.0.458.dist-info/RECORD,,