radboy 0.0.658__py3-none-any.whl → 0.0.659__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 +110 -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.658.dist-info → radboy-0.0.659.dist-info}/METADATA +1 -1
- {radboy-0.0.658.dist-info → radboy-0.0.659.dist-info}/RECORD +8 -8
- {radboy-0.0.658.dist-info → radboy-0.0.659.dist-info}/WHEEL +0 -0
- {radboy-0.0.658.dist-info → radboy-0.0.659.dist-info}/top_level.txt +0 -0
radboy/TasksMode/Tasks.py
CHANGED
|
@@ -46,6 +46,8 @@ from radboy.preloader import preloader
|
|
|
46
46
|
from radboy.Comm2Common import *
|
|
47
47
|
import radboy.DB.OrderedAndRxd as OAR
|
|
48
48
|
import radboy.DB.LetterWriter as LW
|
|
49
|
+
from scipy.io.wavfile import write
|
|
50
|
+
|
|
49
51
|
|
|
50
52
|
def today():
|
|
51
53
|
dt=datetime.now()
|
|
@@ -1067,7 +1069,103 @@ SALES TAX ON APPLICABLE TANGIBLE ITEMS = (PRICE + CRV) * TTL TAX RATE
|
|
|
1067
1069
|
except Exception as e:
|
|
1068
1070
|
print(e,str(e),repr(e))
|
|
1069
1071
|
|
|
1072
|
+
def generate_static_video():
|
|
1073
|
+
try:
|
|
1074
|
+
print(f"{Fore.orange_red_1}Please ensure you are on a Linux System with ffmpeg installed!")
|
|
1075
|
+
formData={
|
|
1076
|
+
'resolution_width':{
|
|
1077
|
+
'default':1280,
|
|
1078
|
+
'type':'int',
|
|
1079
|
+
},
|
|
1080
|
+
'resolution_height':{
|
|
1081
|
+
'default':720,
|
|
1082
|
+
'type':'int'
|
|
1083
|
+
},
|
|
1084
|
+
'bchannel':{
|
|
1085
|
+
'default':random.randint(0,129),
|
|
1086
|
+
'type':'int',
|
|
1087
|
+
},
|
|
1088
|
+
'gchannel':{
|
|
1089
|
+
'default':random.randint(0,129),
|
|
1090
|
+
'type':'int'
|
|
1091
|
+
},
|
|
1092
|
+
'duration in seconds':{
|
|
1093
|
+
'default':3*60*60,
|
|
1094
|
+
'type':'float'
|
|
1095
|
+
},
|
|
1096
|
+
'rate in fps':{
|
|
1097
|
+
'default':30,
|
|
1098
|
+
'type':'float'
|
|
1099
|
+
},
|
|
1100
|
+
'output filename':{
|
|
1101
|
+
'default':'output.mkv',
|
|
1102
|
+
'type':'str'
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
fd=FormBuilder(data=formData)
|
|
1106
|
+
if fd is None:
|
|
1107
|
+
return
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
resolution_width=fd['resolution_width']
|
|
1111
|
+
resolution_height=fd['resolution_height']
|
|
1112
|
+
duration=fd['duration in seconds']
|
|
1113
|
+
output_filename=fd['output filename']
|
|
1114
|
+
bchannel=fd['bchannel']
|
|
1115
|
+
gchannel=fd['gchannel']
|
|
1116
|
+
rate=fd['rate in fps']
|
|
1117
|
+
|
|
1118
|
+
cmd=f'''ffmpeg -f lavfi -i nullsrc=s={resolution_height}x{resolution_width}:r={rate} -filter_complex "geq=random(1)*255:{bchannel}:{gchannel};aevalsrc=c=mono:n=64:exprs=-2+random(0)" -c:a pcm_s16le -t {duration} {output_filename}'''
|
|
1119
|
+
print(cmd)
|
|
1120
|
+
rvalue=os.system(cmd)
|
|
1121
|
+
print(rvalue)
|
|
1122
|
+
except Exception as e:
|
|
1123
|
+
print(e)
|
|
1124
|
+
|
|
1125
|
+
def generateWhiteNoise():
|
|
1126
|
+
try:
|
|
1127
|
+
formData={
|
|
1128
|
+
'sample rate':{
|
|
1129
|
+
'default':44100,
|
|
1130
|
+
'type':'int',
|
|
1131
|
+
},
|
|
1132
|
+
'duration in seconds':{
|
|
1133
|
+
'default':5,
|
|
1134
|
+
'type':'float'
|
|
1135
|
+
},
|
|
1136
|
+
'amplitude':{
|
|
1137
|
+
'default':0.5,
|
|
1138
|
+
'type':'float'
|
|
1139
|
+
},
|
|
1140
|
+
'output filename':{
|
|
1141
|
+
'default':'output.wav',
|
|
1142
|
+
'type':'str'
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
fd=FormBuilder(data=formData)
|
|
1146
|
+
if fd is None:
|
|
1147
|
+
return
|
|
1148
|
+
sample_rate=fd['sample rate']
|
|
1149
|
+
duration=fd['duration in seconds']
|
|
1150
|
+
amplitude=fd['amplitude']
|
|
1151
|
+
output_filename=fd['output filename']
|
|
1152
|
+
|
|
1153
|
+
white_noise= amplitude* np.random.uniform(-1,1,int(sample_rate*duration))
|
|
1154
|
+
white_noise_int16=(white_noise*32767).astype(np.int16)
|
|
1155
|
+
|
|
1156
|
+
write(output_filename,sample_rate,white_noise_int16)
|
|
1157
|
+
print(f"{Fore.orange_red_1}white noise saved to {Fore.light_sea_green}{output_filename}{Style.reset}")
|
|
1158
|
+
except Exception as e:
|
|
1159
|
+
print(e)
|
|
1160
|
+
|
|
1161
|
+
|
|
1070
1162
|
class TasksMode:
|
|
1163
|
+
def white_noise(self):
|
|
1164
|
+
generateWhiteNoise()
|
|
1165
|
+
|
|
1166
|
+
def white_noise_video(self):
|
|
1167
|
+
generate_static_video()
|
|
1168
|
+
|
|
1071
1169
|
def WriteLetter(self):
|
|
1072
1170
|
return LW.WriteLetter()
|
|
1073
1171
|
def setPrec(self):
|
|
@@ -5553,6 +5651,18 @@ where:
|
|
|
5553
5651
|
'exec':lambda self=self: OAR.OrderAndRxdUi(),
|
|
5554
5652
|
}
|
|
5555
5653
|
count+=1
|
|
5654
|
+
self.options[str(uuid1())]={
|
|
5655
|
+
'cmds':["#"+str(count),*[i for i in generate_cmds(startcmd=["generate"],endCmd=['wna','white noise audo','whitenoise-audio'])]],
|
|
5656
|
+
'desc':f"generate a white noise sound audio and save to file",
|
|
5657
|
+
'exec':lambda self=self: self.white_noise(),
|
|
5658
|
+
}
|
|
5659
|
+
count+=1
|
|
5660
|
+
self.options[str(uuid1())]={
|
|
5661
|
+
'cmds':["#"+str(count),*[i for i in generate_cmds(startcmd=["generate"],endCmd=['wnv','white noise video','whitenoise-video'])]],
|
|
5662
|
+
'desc':f"generate a white noise sound video and save to file",
|
|
5663
|
+
'exec':lambda self=self: self.white_noise_video(),
|
|
5664
|
+
}
|
|
5665
|
+
count+=1
|
|
5556
5666
|
self.options[str(uuid1())]={
|
|
5557
5667
|
'cmds':["#"+str(count),*[i for i in generate_cmds(startcmd=["count","count to","c+-"],endCmd=[" ",''])]],
|
|
5558
5668
|
'desc':f"count up or down by amount and stop at point given",
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.659'
|
|
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=iSV43AJj-ywazBP8QLCisMqFpnHJZvRc3hNDyoTt9tE,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
|
|
@@ -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=V58s4k6uXm2Z_QGaZ-mOujX5UQA6WsOEO_5FC0-4O3E,354013
|
|
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=AFHS8qlUO59t_hdnjZk6cnao6uWmui_HR8HamUOIJDU,428417
|
|
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=uL-i_DZBjnE9Xc2gJ3wUgAfIBmnsfy5uB3GVgnfvZTY,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.659.dist-info/METADATA,sha256=gJSo3ROhHteoyHDPsQDvYpk-D6l8JFQSGr5y5mUeiBs,1891
|
|
434
|
+
radboy-0.0.659.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
435
|
+
radboy-0.0.659.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
436
|
+
radboy-0.0.659.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|