radboy 0.0.644__py3-none-any.whl → 0.0.645__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 CHANGED
@@ -551,6 +551,54 @@ class Formulae:
551
551
  {Fore.grey_70}default_bottle_size=={Fore.light_yellow}{default_bottle_size},
552
552
  {Fore.light_sea_green}default_purchased_qty=={Fore.turquoise_4}{default_purchased_qty}
553
553
  {Style.reset}"""
554
+ def hashName(name=None):
555
+ if name is None:
556
+ name=Control(func=FormBuilderMkText,ptext="Text to Hash with time and uuid?",helpText="a string of text",data="string")
557
+ if name is None:
558
+ return
559
+
560
+ return hashlib.sha512(bytes(f'{name} {datetime.now()} {uuid1()}',"utf-8")).hexdigest()
561
+
562
+ def tax_info():
563
+ link='https://pub.gloco-sitedocs.com/CoR/BL/Guidelines_for_the_Tax_on_Prepared_Food_and_Beverages.pdf'
564
+ MSG=f'''
565
+ SEASIDE TTL SALES TAX: 0.0925
566
+ CARMEL-BY-THE-SEA TTL SALES TAX: 0.0825
567
+ CA CRV>=24 FLOZ = 0.10 per container per package
568
+ CA CRV<24 FLOZ = 0.05 per container per package
569
+
570
+ GLOUCESTER VA SALES TAX ON FOOD AND HYGIENE = 0.01
571
+ GLOUCESTER VA SALES TAX ON NON-FOOD PRODUCTS and OTHER GENERAL MERCHANDISE = 0.063
572
+ Prepared Food & Beverage Tax Ordinance = 0.04
573
+ So According to {hashName("Cindy Carter")}, it looks like 15% for prepared food. I think its
574
+ more like 10.1% but a real reciept will answer this.
575
+
576
+ Please Review the link returned {link}
577
+
578
+ IF NO CRV, THEN CRV = 0
579
+ SALES TAX ON APPLICABLE TANGIBLE ITEMS = (PRICE + CRV) * TTL TAX RATE
580
+
581
+ '''
582
+ print(MSG)
583
+ return link,
584
+
585
+ def hourlyWageToSalary():
586
+ #Hourly Rate × Hours Worked Per Week × 52 Weeks in a Year = Annual Salary
587
+ data={
588
+ 'Hourly Rate':{
589
+ 'default':13,
590
+ 'type':'dec.dec'
591
+ },
592
+ 'Hours Worked Per Week':{
593
+ 'default':32,
594
+ 'type':'dec.dec'
595
+ },
596
+ }
597
+ fb=FormBuilder(data=data)
598
+ if fb is None:
599
+ return
600
+ annual_salary=fb['Hourly Rate']*fb['Hours Worked Per Week']*decc(52)
601
+ return annual_salary
554
602
 
555
603
  def beverage_PTCRV_base():
556
604
  result=None
@@ -825,6 +873,21 @@ class Formulae:
825
873
  'desc':f'{Fore.light_yellow}tax rate{Fore.medium_violet_red} from old price and new price{Style.reset}',
826
874
  'exec':tax_rate_from_oldPriceAndNewPrice
827
875
  },
876
+ f'{uuid1()}':{
877
+ 'cmds':generate_cmds(startcmd=['salary','sal','slry'],endCmd=['2hours','2hr','tohr','tohour','-hour','-hr']),
878
+ 'desc':f'{Fore.light_yellow}Annual Salary{Fore.medium_violet_red} from hourly wage rate and hours worked{Style.reset}',
879
+ 'exec':hourlyWageToSalary
880
+ },
881
+ f'{uuid1()}':{
882
+ 'cmds':generate_cmds(startcmd=['hash','hsh','checksum','cksm'],endCmd=['text','txt','t',]),
883
+ 'desc':f'{Fore.light_yellow}Hash a String of Text{Fore.medium_violet_red} as a replacement representation where directly using the text may be an issue sorts.{Style.reset}',
884
+ 'exec':hashName
885
+ },
886
+ f'{uuid1()}':{
887
+ 'cmds':generate_cmds(startcmd=['tax','tx',],endCmd=['information','info.','info','i',]),
888
+ 'desc':f'{Fore.light_yellow}Display Tax Information for Reference{Fore.medium_violet_red}this is not for everyone, just anyone that\'s been where I have been.{Style.reset}',
889
+ 'exec':tax_info
890
+ },
828
891
 
829
892
  }
830
893
  self.options[f'{uuid1()}']={
radboy/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION='0.0.644'
1
+ VERSION='0.0.645'
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: radboy
3
- Version: 0.0.644
3
+ Version: 0.0.645
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=x3DgnppG_dURSXOzw0eYGOILhZInbmDzxpWPRcBtuB4,17
8
+ radboy/__init__.py,sha256=tSuepBDI2PQVw2T6delVczv7OmRIDLuTO_s93VtZd3w,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
@@ -147,7 +147,7 @@ radboy/DayLog/BhTrSa/__init__.py,sha256=q6xDsXAiWpQR2QWILKZKf--D3apR_KOE1CRbZaP7
147
147
  radboy/DayLog/BhTrSa/bhtrsaa.py,sha256=3ECYU_2yMNS_zsN0ZD6BbiIwbWcJ9mokUwOt_hkTAYs,18233
148
148
  radboy/DayLog/__pycache__/DayLogger.cpython-311.pyc,sha256=TmRnRZHp5tMTokSEB8hWTxnasi-iJdh6TmYcb_nXGoY,29557
149
149
  radboy/DayLog/__pycache__/DayLogger.cpython-312.pyc,sha256=bfDCQZrIhgQYzoUle7roicRE_bhGPYZtIbCRIiDrsxU,68240
150
- radboy/DayLog/__pycache__/DayLogger.cpython-313.pyc,sha256=_Ds7pmkSzbaE_mU6tjEt71_l7pxjT9pjrtlTsIQQVRM,154611
150
+ radboy/DayLog/__pycache__/DayLogger.cpython-313.pyc,sha256=KibtDP2R929a4wo-DULTECtY2PykTMKFTgdkYlqwSpE,154512
151
151
  radboy/DayLog/__pycache__/__init__.cpython-311.pyc,sha256=Z5Y4DdVF77LZf6-Of92MDGFdi-IXik1ASQd4AdLNNfQ,231
152
152
  radboy/DayLog/__pycache__/__init__.cpython-312.pyc,sha256=lP_GHzSPt5JTrT1jLWiRMFGPmSdJYBn4eRV__OxgJ6s,269
153
153
  radboy/DayLog/__pycache__/__init__.cpython-313.pyc,sha256=UQw5v4r7yismC9qcqP0dEme6h-lawbOA5pXYpkqUwFk,148
@@ -345,7 +345,7 @@ radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSA
345
345
  radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
346
346
  radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
347
347
  radboy/TasksMode/SetEntryNEU.py,sha256=mkV9zAZe0lfpu_3coMuIILEzh6PgCNi7g9lJ4yDUpYM,20596
348
- radboy/TasksMode/Tasks.py,sha256=d2vmzH1oOy5-2-bxlJpDNEan9klH1bl8xLv9I8wp42I,343180
348
+ radboy/TasksMode/Tasks.py,sha256=1-N6JJoPN9zgK1TEHEWmgHWcBMN4L3HhkIViDRMuKys,346398
349
349
  radboy/TasksMode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
350
350
  radboy/TasksMode/__pycache__/ReFormula.cpython-311.pyc,sha256=QEG3PwVw-8HTd_Mf9XbVcxU56F1fC9yBqWXYPLC39DU,4865
351
351
  radboy/TasksMode/__pycache__/ReFormula.cpython-312.pyc,sha256=aX7BWm2PPjCTnxsbGUitR-2h9hq4AjaBiHMrUXvIl0Y,3967
@@ -354,7 +354,7 @@ radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6Sv
354
354
  radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=jMSrUX9pvEhf67uVwrPE2ZlBCems8V7tHJ1LcC15ovU,24603
355
355
  radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
356
356
  radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
357
- radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=BWDbB8ind3Xe-FO4WlY6uoLnzSL6mXnzxDxJFeDBkRM,417894
357
+ radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=K9LcR1Jn8hquAeySRYgawsCW1C-npMx0W6miSmKGgqg,421146
358
358
  radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
359
359
  radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
360
360
  radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
@@ -401,7 +401,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
401
401
  radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
402
402
  radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
403
403
  radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
404
- radboy/__pycache__/__init__.cpython-313.pyc,sha256=-weT8C-PAkK55R-0hUqlpulTCiihSURZBw56Ibo86AI,165
404
+ radboy/__pycache__/__init__.cpython-313.pyc,sha256=qN1ACU-FPmiV7VKpuAwZ1Ov3uuspy39kCxkgNQ7W0Vs,165
405
405
  radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
406
406
  radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
407
407
  radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
@@ -429,7 +429,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
429
429
  radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
430
430
  radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
431
431
  radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
432
- radboy-0.0.644.dist-info/METADATA,sha256=ejOS0Y3bhnn9PShBKWdam8UtHCX6jOA029x5fALoXVQ,1891
433
- radboy-0.0.644.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
434
- radboy-0.0.644.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
435
- radboy-0.0.644.dist-info/RECORD,,
432
+ radboy-0.0.645.dist-info/METADATA,sha256=M8gKRqzwvzm8qxJXJcsXA4ioblkPVv4Nscc4KSyvaHM,1891
433
+ radboy-0.0.645.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
434
+ radboy-0.0.645.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
435
+ radboy-0.0.645.dist-info/RECORD,,