radboy 0.0.657__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/BNC/BnC.py CHANGED
@@ -451,13 +451,17 @@ class BnCUi:
451
451
  if ct < 1:
452
452
  print(f"{Fore.light_red}Nothing in the Bank!{Style.reset}")
453
453
  else:
454
- for num,r in enumerate(results):
455
- msg=std_colorize(r,num,ct)
456
- print(msg)
457
- which=Prompt.__init2__(self,func=self.mkint,ptext=f"{self.cashpoolTotal()}Which CashPool Item?",helpText=f"type a number between [0-{ct-1}]",data={'default':0})
458
- if which in [None,]:
459
- return
460
-
454
+ while True:
455
+ for num,r in enumerate(results):
456
+ msg=std_colorize(r,num,ct)
457
+ print(msg)
458
+ which=Prompt.__init2__(self,func=self.mkint,ptext=f"{self.cashpoolTotal()}Which CashPool Item?",helpText=f"type a number between [0-{ct-1}]",data={'default':0})
459
+ if which in [None,]:
460
+ return
461
+ if index_inList(which,results):
462
+ break
463
+ else:
464
+ print(f"{Fore.orange_red_1}Not a valid index! RETRY!!!{Style.reset}")
461
465
  selected=results[which]
462
466
  print(selected)
463
467
  if delete:
Binary file
radboy/DB/rad_types.py CHANGED
@@ -1,6 +1,11 @@
1
1
  from decimal import Decimal as TDecimal,getcontext
2
2
  import string,random,re
3
3
  from colored import Fore,Back,Style
4
+
5
+ def index_inList(x,b):
6
+ return (x <= -1 and x in list(range(-1,-(len(b)+1),-1))) or (x >= 0 and\
7
+ x in range((len(b))))
8
+
4
9
  class decc(TDecimal):
5
10
  ''' defines a decimal of 'cf\''''
6
11
  def __new__(self,value,cf=3):
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",
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.657'
1
+ VERSION='0.0.659'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.657
3
+ Version: 0.0.659
4
4
  Summary: A Retail Calculator for Android/Linux
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=KI7Jmf3MX0Zng_YUvcjVKN2siyUOhaMAHQGzpPuX8KQ,41373
7
7
  radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
8
- radboy/__init__.py,sha256=RMcIJVKAIXy70pcN3hRxTHvbZqJrAyLQd_ozUcmc0Dk,17
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
@@ -30,10 +30,10 @@ radboy/AlcoholConsumption/__pycache__/__init__.cpython-312.pyc,sha256=FEpSovOgKS
30
30
  radboy/AlcoholConsumption/__pycache__/__init__.cpython-313.pyc,sha256=clzbzV-Gt74SSTVTatmaPgJZlAFBRp5rKLuYv-GnDcA,1231
31
31
  radboy/AlcoholConsumption/__pycache__/ac.cpython-312.pyc,sha256=TJe0J4qDt01we79Q5PvrSm9njs4SHH7jxZnNPZo4uog,24016
32
32
  radboy/AlcoholConsumption/__pycache__/ac.cpython-313.pyc,sha256=kUw1MKA36H4PErMZytK42JRO3gpjEQT7dMI9qhaKF9g,24299
33
- radboy/BNC/BnC.py,sha256=XK7acX1M_aY97IDXL15Iwn5pwPqHpWwTRdWy_sy0_Ts,38939
33
+ radboy/BNC/BnC.py,sha256=Mmquye4j6nb9G-t1fcJT1H-OuUdqoDNEvrjLMoANWkc,39108
34
34
  radboy/BNC/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  radboy/BNC/__pycache__/BnC.cpython-312.pyc,sha256=v0_pV_IY00HwKYEBEcJUUiiyanOfKc22wf_SZ9csBG8,73548
36
- radboy/BNC/__pycache__/BnC.cpython-313.pyc,sha256=91zqzf1wxNiKXtsvOH3HBpft3w-JaL0JT9SoXY-dKHI,74298
36
+ radboy/BNC/__pycache__/BnC.cpython-313.pyc,sha256=pfRUrSHq0qmaxxPnx3ygU6Qtq_28ZX_McQCJ1_lJwL4,74530
37
37
  radboy/BNC/__pycache__/__init__.cpython-312.pyc,sha256=_aXP9W0QU1kZsSGw5vhHXkU98v3UqKswKuWpxEN0ovE,266
38
38
  radboy/BNC/__pycache__/__init__.cpython-313.pyc,sha256=wFpBCxg2spjCT2ZKdgtP6uvzeub8X-BTPUGZjEVE35s,145
39
39
  radboy/Collector2/Collector2.py,sha256=2Y-nKsst-E6g-xLi5MOp6jbQv8yAAG74SEM-WWzh1Cc,41232
@@ -99,7 +99,7 @@ radboy/DB/db.py,sha256=3Ui1IIdTMRWAitlSX2cgXgxpBslkuLYtxFsyw5ic9_8,257577
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
102
- radboy/DB/rad_types.py,sha256=kb6jjsMs2s2X4sG7knsbMkS1IhyP_ocd6snBQNYrMiU,4600
102
+ radboy/DB/rad_types.py,sha256=mtZpBMIFPcw1IhmO7UQ7nV_1gNNURs4INwx3x40hLUU,4725
103
103
  radboy/DB/renderText2Png.py,sha256=PWnTicLTfOPg9UlQYia3wMpjM9rh7MIyDVsmcsDRUBo,5678
104
104
  radboy/DB/testClass.py,sha256=t3zT1gbvReUncnPY8R9JUfKXQ5UEB2wmQx8DNeds0hI,310
105
105
  radboy/DB/__pycache__/DatePicker.cpython-311.pyc,sha256=VMJnJ7scb4VHMQi1HDZCF67KVYfb9m-fZK96IAoJzTQ,19676
@@ -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=pwYaY_9w2baCTpZT5e3NiQ5Ve6c-Xd27zSWXVOQks5k,350391
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=S_alcqUNXAzhHLMSYxPNjexS4cxcY6toIk8L4qxz-mM,424151
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=aloQQtckoD8LbCgiZbxy-U2poBg_TX9nIcQhiLVTcIw,165
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.657.dist-info/METADATA,sha256=Bj0pqmB1A9BxKAtDeDajyKbKEkw2RzrI-ERkRudCQ7I,1891
434
- radboy-0.0.657.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
435
- radboy-0.0.657.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
436
- radboy-0.0.657.dist-info/RECORD,,
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,,