radboy 0.0.818__py3-none-any.whl → 0.0.820__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/FB/FBMTXT.py +48 -1
- radboy/FB/__pycache__/FBMTXT.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.818.dist-info → radboy-0.0.820.dist-info}/METADATA +1 -1
- {radboy-0.0.818.dist-info → radboy-0.0.820.dist-info}/RECORD +8 -8
- {radboy-0.0.818.dist-info → radboy-0.0.820.dist-info}/WHEEL +0 -0
- {radboy-0.0.818.dist-info → radboy-0.0.820.dist-info}/top_level.txt +0 -0
radboy/FB/FBMTXT.py
CHANGED
|
@@ -9,6 +9,7 @@ from datetime import timedelta
|
|
|
9
9
|
import calendar
|
|
10
10
|
from colored import Fore,Back,Style
|
|
11
11
|
import itertools
|
|
12
|
+
from uuid import uuid1
|
|
12
13
|
|
|
13
14
|
def generate_cmds(startcmd,endCmd):
|
|
14
15
|
cmd=(startcmd,endCmd)
|
|
@@ -304,13 +305,59 @@ def FormBuilderMkText(text,data,passThru=[],PassThru=True,alternative_false=None
|
|
|
304
305
|
print(e)
|
|
305
306
|
elif data.lower() in ['datetime','datetime-','datetime~']:
|
|
306
307
|
try:
|
|
307
|
-
|
|
308
|
+
def regexSelect(ds):
|
|
309
|
+
fmt={}
|
|
310
|
+
fmt[str(uuid1())]=[re.compile(r"[0-1][0-9].[0-9][0-9]"),"%m#CHAR#%y"]
|
|
311
|
+
fmt[str(uuid1())]=[re.compile(r"[0-1][0-9].[0-9][0-9][0-9][0-9]"),"%m#CHAR#%Y"]
|
|
312
|
+
fmt[str(uuid1())]=[re.compile(r"[0-9].[0-9][0-9][0-9][0-9]"),"%m#CHAR#%Y"]
|
|
313
|
+
fmt[str(uuid1())]=[re.compile(r"[0-9].[0-9][0-9]"),"%m#CHAR#%y"]
|
|
314
|
+
|
|
315
|
+
fmt[str(uuid1())]=[re.compile(r"[0-1][0-9].[0-9][0-9].[0-9][0-9]"),"%m#CHAR#%d#CHAR#%y"]
|
|
316
|
+
fmt[str(uuid1())]=[re.compile(r"[0-1][0-9].[0-9][0-9].[0-9][0-9][0-9][0-9]"),"%m#CHAR#%d#CHAR#%Y"]
|
|
317
|
+
fmt[str(uuid1())]=[re.compile(r"[0-9].[0-9][0-9].[0-9][0-9][0-9][0-9]"),"%m#CHAR#%d#CHAR#%Y"]
|
|
318
|
+
fmt[str(uuid1())]=[re.compile(r"[0-9].[0-9][0-9].[0-9][0-9]"),"%m#CHAR#%d#CHAR#%y"]
|
|
319
|
+
|
|
320
|
+
fmt[str(uuid1())]=[re.compile(r"[0-1][0-9].[0-9][0-9].[0-9][0-9]@[0-9][0-9]:[0-9][0-9]"),"%m#CHAR#%d#CHAR#%y@%H:%M"]
|
|
321
|
+
fmt[str(uuid1())]=[re.compile(r"[0-1][0-9].[0-9][0-9].[0-9][0-9][0-9][0-9]@[0-9][0-9]:[0-9][0-9]"),"%m#CHAR#%d#CHAR#%Y@%H:%M"]
|
|
322
|
+
fmt[str(uuid1())]=[re.compile(r"[0-9].[0-9][0-9].[0-9][0-9][0-9][0-9]@[0-9][0-9]:[0-9][0-9]"),"%m#CHAR#%d#CHAR#%Y@%H:%M"]
|
|
323
|
+
fmt[str(uuid1())]=[re.compile(r"[0-9].[0-9][0-9].[0-9][0-9]@[0-9][0-9]:[0-9][0-9]"),"%m#CHAR#%d#CHAR#%y@%H:%M"]
|
|
324
|
+
|
|
325
|
+
fmt[str(uuid1())]=[re.compile(r"[0-1][0-9].[0-9].[0-9][0-9]@[0-9][0-9]:[0-9][0-9]"),"%m#CHAR#%d#CHAR#%y@%H:%M"]
|
|
326
|
+
fmt[str(uuid1())]=[re.compile(r"[0-1][0-9].[0-9].[0-9][0-9][0-9][0-9]@[0-9][0-9]:[0-9][0-9]"),"%m#CHAR#%d#CHAR#%Y@%H:%M"]
|
|
327
|
+
fmt[str(uuid1())]=[re.compile(r"[0-9].[0-9].[0-9][0-9][0-9][0-9]@[0-9][0-9]:[0-9][0-9]"),"%m#CHAR#%d#CHAR#%Y@%H:%M"]
|
|
328
|
+
fmt[str(uuid1())]=[re.compile(r"[0-9].[0-9].[0-9][0-9]@[0-9][0-9]:[0-9][0-9]"),"%m#CHAR#%d#CHAR#%y@%H:%M"]
|
|
329
|
+
|
|
330
|
+
fmt[str(uuid1())]=[re.compile(r"[0-1][0-9].[0-9].[0-9][0-9]@[0-9][0-9]:[0-9]"),"%m#CHAR#%d#CHAR#%y@%H:%M"]
|
|
331
|
+
fmt[str(uuid1())]=[re.compile(r"[0-1][0-9].[0-9].[0-9][0-9][0-9][0-9]@[0-9][0-9]:[0-9][0-9]"),"%m#CHAR#%d#CHAR#%Y@%H:%M"]
|
|
332
|
+
fmt[str(uuid1())]=[re.compile(r"[0-9].[0-9].[0-9][0-9][0-9][0-9]@[0-9][0-9]:[0-9][0-9]"),"%m#CHAR#%d#CHAR#%Y@%H:%M"]
|
|
333
|
+
fmt[str(uuid1())]=[re.compile(r"[0-9].[0-9].[0-9][0-9]@[0-9][0-9]:[0-9]"),"%m#CHAR#%d#CHAR#%y@%H:%M"]
|
|
334
|
+
|
|
335
|
+
ct=len(fmt)
|
|
336
|
+
for num,i in enumerate(fmt):
|
|
337
|
+
print(db.std_colorize(fmt[i],num,ct))
|
|
338
|
+
|
|
339
|
+
for i in fmt:
|
|
340
|
+
if fmt[i][0].findall(ds) != []:
|
|
341
|
+
print(fmt[i][1])
|
|
342
|
+
for char in ds:
|
|
343
|
+
if char in string.punctuation:
|
|
344
|
+
try:
|
|
345
|
+
fmt[i][1]=fmt[i][1].replace("#CHAR#",char)
|
|
346
|
+
return True,datetime.strptime(ds,fmt[i][1])
|
|
347
|
+
except Exception as e:
|
|
348
|
+
print(e)
|
|
349
|
+
|
|
350
|
+
return False,None
|
|
351
|
+
|
|
308
352
|
TODAY_IS=datetime.now()
|
|
309
353
|
z=TODAY_IS
|
|
310
354
|
if text.lower() in ['y','yes','1','t','true','+']:
|
|
311
355
|
value=TM.Tasks.TasksMode(parent=None,engine=db.ENGINE,init_only=True).DateTimePkr()
|
|
312
356
|
elif text.lower() in ['now',]:
|
|
313
357
|
return datetime.now()
|
|
358
|
+
elif regexSelect(text.lower())[0] == True:
|
|
359
|
+
bild=regexSelect(text.lower())
|
|
360
|
+
return bild[-1]
|
|
314
361
|
elif text.lower() in ['today',]:
|
|
315
362
|
return datetime(year=TODAY_IS.year,month=TODAY_IS.month,day=TODAY_IS.day)
|
|
316
363
|
elif text.lower() in ['tomorrow',]:
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.820'
|
|
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=Q0WusTnfhCox4TLMGW1G4odsO2jH3egE_agOLoq3REA,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
|
|
@@ -203,11 +203,11 @@ radboy/ExtractPkg/__pycache__/ExtractPkg2.cpython-313.pyc,sha256=bgw-00G_ouurOtO
|
|
|
203
203
|
radboy/ExtractPkg/__pycache__/__init__.cpython-311.pyc,sha256=62yPgrgPZffZFLr6FscOqCdo45vfhScJ8aZbLTbD7I4,235
|
|
204
204
|
radboy/ExtractPkg/__pycache__/__init__.cpython-312.pyc,sha256=Ll1iKcG0MDtoCIloQ_frcihvCSe1HPtyERzcAoXwQT0,273
|
|
205
205
|
radboy/ExtractPkg/__pycache__/__init__.cpython-313.pyc,sha256=kL3Y3KxCTaGNg3aq5fhf2fsnQHZolGfvniEUfsx2bwY,152
|
|
206
|
-
radboy/FB/FBMTXT.py,sha256=
|
|
206
|
+
radboy/FB/FBMTXT.py,sha256=bme7uS4OvJeGs7wKkyx3GbsxNFjS1ZBDB6LyRI8Wfe0,45633
|
|
207
207
|
radboy/FB/FormBuilder.py,sha256=gbpzLcjL292aAHGimQFvrhnhMnMpDCwKQ0L3jio7FG8,20156
|
|
208
208
|
radboy/FB/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
209
209
|
radboy/FB/__pycache__/FBMTXT.cpython-312.pyc,sha256=XCVFa7Mo83LGIdRrTvcK73siUpcVIEQfXKCH2QHeViw,9626
|
|
210
|
-
radboy/FB/__pycache__/FBMTXT.cpython-313.pyc,sha256=
|
|
210
|
+
radboy/FB/__pycache__/FBMTXT.cpython-313.pyc,sha256=xpIgKzoFz05acvPtWCQS-fS9px6pnxqFqiE-JAnEjZs,61181
|
|
211
211
|
radboy/FB/__pycache__/FormBuilder.cpython-312.pyc,sha256=lNQdB-zApsXM7OQF9MIi0zRZD1SAL6stKEN-AyQiIKg,18873
|
|
212
212
|
radboy/FB/__pycache__/FormBuilder.cpython-313.pyc,sha256=Ydb7h_VUHhKWhF8eJHnkm3TNMoL5Da1BysxN0CWCMA0,26069
|
|
213
213
|
radboy/FB/__pycache__/__init__.cpython-312.pyc,sha256=ULEL8Au_CxcYpNAcSoSbI65M7-av1W6Zuy6kQJUu-Mw,265
|
|
@@ -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=hdVHXBa-GLd5AAtFM0EGL9NVnlfulz5_RpPl3ZJm1Cw,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
|
|
@@ -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.820.dist-info/METADATA,sha256=8wiAmSr_bbxfNIBwwKqHfrQLryRqc5VrkFap4LbnEuM,1920
|
|
445
|
+
radboy-0.0.820.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
446
|
+
radboy-0.0.820.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
447
|
+
radboy-0.0.820.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|