pypipr 1.0.119__tar.gz → 1.0.121__tar.gz

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.
Files changed (81) hide show
  1. {pypipr-1.0.119 → pypipr-1.0.121}/PKG-INFO +128 -130
  2. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/LINUX.py +3 -3
  3. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/RunParallel.py +0 -6
  4. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/WINDOWS.py +4 -3
  5. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/__terminal__.py +1 -0
  6. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/auto_reload.py +1 -3
  7. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/batch_calculate.py +0 -17
  8. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/calculate.py +0 -6
  9. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/chr_to_int.py +0 -13
  10. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/github_push.py +0 -4
  11. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/github_user.py +0 -6
  12. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/iargv.py +1 -6
  13. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/input_char.py +0 -6
  14. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/int_to_chr.py +0 -7
  15. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/iopen.py +0 -7
  16. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/is_iterable.py +1 -1
  17. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/is_valid_url.py +0 -6
  18. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/iscandir.py +0 -5
  19. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/ivars.py +1 -12
  20. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/password_generator.py +0 -7
  21. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/pip_freeze_without_version.py +1 -7
  22. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/poetry_publish.py +0 -4
  23. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/poetry_update_version.py +0 -6
  24. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/random_bool.py +0 -3
  25. {pypipr-1.0.119 → pypipr-1.0.121}/pyproject.toml +1 -1
  26. {pypipr-1.0.119 → pypipr-1.0.121}/readme.md +127 -129
  27. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/APIMixinView.py +0 -0
  28. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/ComparePerformance.py +0 -0
  29. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/PintUreg.py +0 -0
  30. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/PintUregQuantity.py +0 -0
  31. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/__init__.py +0 -0
  32. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/avg.py +0 -0
  33. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/basename.py +0 -0
  34. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/batchmaker.py +0 -0
  35. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/bin_to_int.py +0 -0
  36. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/choices.py +0 -0
  37. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/choices.py.bak +0 -0
  38. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/chunk_array.py +0 -0
  39. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/console_run.py +0 -0
  40. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/create_folder.py +0 -0
  41. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/datetime_from_string.py +0 -0
  42. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/datetime_now.py +0 -0
  43. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/dict_first.py +0 -0
  44. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/dirname.py +0 -0
  45. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/exit_if_empty.py +0 -0
  46. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/filter_empty.py +0 -0
  47. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/get_by_index.py +0 -0
  48. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/get_class_method.py +0 -0
  49. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/get_filemtime.py +0 -0
  50. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/get_filesize.py +0 -0
  51. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/github_pull.py +0 -0
  52. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/hex_to_int.py +0 -0
  53. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/idumps.py +0 -0
  54. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/idumps_html.py +0 -0
  55. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/ienumerate.py +0 -0
  56. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/ienv.py +0 -0
  57. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/iexec.py +0 -0
  58. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/ijoin.py +0 -0
  59. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/iloads.py +0 -0
  60. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/iloads_html.py +0 -0
  61. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/int_to_bin.py +0 -0
  62. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/int_to_hex.py +0 -0
  63. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/int_to_int.py +0 -0
  64. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/int_to_oct.py +0 -0
  65. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/iprint.py +0 -0
  66. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/irange.py +0 -0
  67. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/ireplace.py +0 -0
  68. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/is_empty.py +0 -0
  69. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/isplit.py +0 -0
  70. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/log.py +0 -0
  71. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/oct_to_int.py +0 -0
  72. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/print_colorize.py +0 -0
  73. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/print_dir.py +0 -0
  74. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/print_log.py +0 -0
  75. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/print_to_last_line.py +0 -0
  76. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/restart.py +0 -0
  77. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/set_timeout.py +0 -0
  78. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/sets_ordered.py +0 -0
  79. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/str_cmp.py +0 -0
  80. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/text_colorize.py +0 -0
  81. {pypipr-1.0.119 → pypipr-1.0.121}/pypipr/to_str.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypipr
3
- Version: 1.0.119
3
+ Version: 1.0.121
4
4
  Summary: The Python Package Index Project
5
5
  Author: ufiapjj
6
6
  Author-email: ufiapjj@gmail.com
@@ -135,9 +135,7 @@ Pastikan kode aman untuk dijalankan.
135
135
  Jalankan kode ini di terminal console.
136
136
 
137
137
  ```py
138
- if __name__ == "__main__":
139
- auto_reload("file_name.py")
140
-
138
+ auto_reload("file_name.py")
141
139
  ```
142
140
 
143
141
  or run in terminal
@@ -250,8 +248,8 @@ iprint(irange("z", "a", 4))
250
248
 
251
249
  Output:
252
250
  ```py
253
- <generator object int_range at 0x74077c8540>
254
- <generator object int_range at 0x74077c8540>
251
+ <generator object int_range at 0x7767b94540>
252
+ <generator object int_range at 0x7767b94540>
255
253
  [13, 12, 11, 10, 9, 8, 7, 6]
256
254
  [2, 5, 8]
257
255
  [2, 5, 8]
@@ -283,7 +281,7 @@ print(list(batchmaker(s)))
283
281
 
284
282
  Output:
285
283
  ```py
286
- <generator object batchmaker at 0x74077bc3a0>
284
+ <generator object batchmaker at 0x7767b704c0>
287
285
  ['Urutan 1 dan 10 dan j dan Z saja.', 'Urutan 1 dan 10 dan j dan K saja.', 'Urutan 4 dan 10 dan j dan Z saja.', 'Urutan 4 dan 10 dan j dan K saja.']
288
286
  ```
289
287
 
@@ -337,7 +335,7 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
337
335
 
338
336
  Output:
339
337
  ```py
340
- <generator object batch_calculate at 0x740773f010>
338
+ <generator object batch_calculate at 0x7767b0b010>
341
339
  [('1 m ** 1', <Quantity(1, 'meter')>), ('1 m ** 2', <Quantity(1, 'meter ** 2')>), ('2 m ** 1', <Quantity(2, 'meter')>), ('2 m ** 2', <Quantity(2, 'meter ** 2')>), ('3 m ** 1', <Quantity(3, 'meter')>), ('3 m ** 2', <Quantity(3, 'meter ** 2')>), ('4 m ** 1', <Quantity(4, 'meter')>), ('4 m ** 2', <Quantity(4, 'meter ** 2')>), ('5 m ** 1', <Quantity(5, 'meter')>), ('5 m ** 2', <Quantity(5, 'meter ** 2')>), ('6 m ** 1', <Quantity(6, 'meter')>), ('6 m ** 2', <Quantity(6, 'meter ** 2')>), ('7 m ** 1', <Quantity(7, 'meter')>), ('7 m ** 2', <Quantity(7, 'meter ** 2')>), ('8 m ** 1', <Quantity(8, 'meter')>), ('8 m ** 2', <Quantity(8, 'meter ** 2')>), ('9 m ** 1', <Quantity(9, 'meter')>), ('9 m ** 2', <Quantity(9, 'meter ** 2')>)]
342
340
  ```
343
341
 
@@ -465,7 +463,7 @@ print(list(chunk_array(arr, 5)))
465
463
 
466
464
  Output:
467
465
  ```py
468
- <generator object chunk_array at 0x74077c8540>
466
+ <generator object chunk_array at 0x7767b94540>
469
467
  [[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
470
468
  ```
471
469
 
@@ -516,9 +514,9 @@ print(datetime_now("Etc/GMT+7"))
516
514
 
517
515
  Output:
518
516
  ```py
519
- 2024-05-01 09:48:24.914561+07:00
520
- 2024-05-01 02:48:24.915471+00:00
521
- 2024-04-30 19:48:24.917282-07:00
517
+ 2024-05-01 10:14:25.741965+07:00
518
+ 2024-05-01 03:14:25.742681+00:00
519
+ 2024-04-30 20:14:25.744145-07:00
522
520
  ```
523
521
 
524
522
  ## dict_first
@@ -624,7 +622,7 @@ iprint(filter_empty(var))
624
622
 
625
623
  Output:
626
624
  ```py
627
- <generator object filter_empty at 0x740773d5d0>
625
+ <generator object filter_empty at 0x7767b095d0>
628
626
  [1, '0', True, {}, ['eee']]
629
627
  ```
630
628
 
@@ -654,8 +652,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
654
652
 
655
653
  Output:
656
654
  ```py
657
- <generator object get_class_method at 0x740773f2e0>
658
- [<function ExampleGetClassMethod.a at 0x74077e1300>, <function ExampleGetClassMethod.b at 0x74077e1620>, <function ExampleGetClassMethod.c at 0x74077e14e0>, <function ExampleGetClassMethod.d at 0x74077e16c0>]
655
+ <generator object get_class_method at 0x7767b0b2e0>
656
+ [<function ExampleGetClassMethod.a at 0x7767ba9300>, <function ExampleGetClassMethod.b at 0x7767ba9620>, <function ExampleGetClassMethod.c at 0x7767ba94e0>, <function ExampleGetClassMethod.d at 0x7767ba96c0>]
659
657
  ```
660
658
 
661
659
  ## get_filesize
@@ -729,12 +727,12 @@ apabila parameter kosong.
729
727
  Parameter yg berupa string juga dapat diubah menggunakan cast.
730
728
 
731
729
  ```python
732
- if __name__ == "__main__":
733
- print(iargv(1, cast=int, on_error=100))
730
+ print(iargv(1, cast=int, on_error=100))
734
731
  ```
735
732
 
736
733
  Output:
737
734
  ```py
735
+ 100
738
736
  ```
739
737
 
740
738
  ## idumps_html
@@ -925,7 +923,7 @@ Output:
925
923
 
926
924
  ## ienumerate
927
925
 
928
- `ienumerate(iterator, start=0, key=<function int_to_int at 0x740fd21ee0>)`
926
+ `ienumerate(iterator, start=0, key=<function int_to_int at 0x776decdee0>)`
929
927
 
930
928
  meningkatkan fungsi enumerate() pada python
931
929
  untuk key menggunakan huruf dan basis angka lainnya.
@@ -938,7 +936,7 @@ iprint(ienumerate(it, key=int_to_chr))
938
936
 
939
937
  Output:
940
938
  ```py
941
- <generator object ienumerate at 0x740773f3d0>
939
+ <generator object ienumerate at 0x7767b0b3d0>
942
940
  [('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
943
941
  ```
944
942
 
@@ -1005,7 +1003,7 @@ print(ijoin(10, ' '))
1005
1003
 
1006
1004
  Output:
1007
1005
  ```py
1008
- qweqw, dfs, weq, asd
1006
+ dfs, asd, qweqw, weq
1009
1007
  ,ini,path,seperti,url,
1010
1008
  ini,path,seperti,url
1011
1009
  <li>satu</li>
@@ -1051,9 +1049,9 @@ Output:
1051
1049
  ```py
1052
1050
  (['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
1053
1051
  [['Harga Emas Hari Ini - Rabu, 01 Mei 2024'],
1054
- ['Spot Emas USD↓2.288,05 (-7,97) / oz',
1052
+ ['Spot Emas USD↓2.287,20 (-8,82) / oz',
1055
1053
  'Kurs IDR16.249,00 / USD',
1056
- 'Emas IDR↓1.195.317 (-4.164) / gr'],
1054
+ 'Emas IDR↓1.194.873 (-4.608) / gr'],
1057
1055
  ['LM Antam (Jual)↓1.310.000 (-15.000) / gr',
1058
1056
  'LM Antam (Beli)↓1.204.000 (-17.000) / gr']],
1059
1057
  [['Harga Emas Hari Ini'],
@@ -1124,10 +1122,10 @@ Output:
1124
1122
  'Update harga LM Pegadaian :31 Agustus 2023']],
1125
1123
  [['Spot Harga Emas Hari Ini (Market Open)'],
1126
1124
  ['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
1127
- ['Ounce\xa0(oz)', '2.288,05 (-7,97)', '16.249,00', '37.178.524'],
1128
- ['Gram\xa0(gr)', '73,56', '16.249,00', '1.195.317 (-4.164)'],
1129
- ['Kilogram\xa0(kg)', '73.562,52', '16.249,00', '1.195.317.319'],
1130
- ['Update harga emas :01 Mei 2024, pukul 09:48Update kurs :30 April 2024, '
1125
+ ['Ounce\xa0(oz)', '2.287,20 (-8,82)', '16.249,00', '37.164.713'],
1126
+ ['Gram\xa0(gr)', '73,54', '16.249,00', '1.194.873 (-4.608)'],
1127
+ ['Kilogram\xa0(kg)', '73.535,19', '16.249,00', '1.194.873.264'],
1128
+ ['Update harga emas :01 Mei 2024, pukul 10:14Update kurs :30 April 2024, '
1131
1129
  'pukul 13:10']],
1132
1130
  [['Gram', 'UBS Gold 99.99%'],
1133
1131
  ['Jual', 'Beli'],
@@ -1149,36 +1147,36 @@ Output:
1149
1147
  ['Unit', 'USD', 'IDR'],
1150
1148
  ['Angka', '+/-', 'Angka', '+/-'],
1151
1149
  ['Hari Ini', 'Kurs', '', '', '16.249', '%'],
1152
- ['oz', '2.296,02', '-7,97-0,35%', '37.308.029', '-129.505-0,35%'],
1153
- ['gr', '73,82', '-0,26-0,35%', '1.199.481', '-4.164-0,35%'],
1150
+ ['oz', '2.296,02', '-8,82-0,38%', '37.308.029', '-143.316-0,38%'],
1151
+ ['gr', '73,82', '-0,28-0,38%', '1.199.481', '-4.608-0,38%'],
1154
1152
  ['30 Hari', 'Kurs', '', '', '15.873', '+376+2,37%'],
1155
- ['oz', '2.239,34', '+48,71+2,18%', '35.545.044', '+1.633.481+4,60%'],
1156
- ['gr', '72,00', '+1,57+2,18%', '1.142.800', '+52.518+4,60%'],
1153
+ ['oz', '2.239,34', '+47,86+2,14%', '35.545.044', '+1.619.669+4,56%'],
1154
+ ['gr', '72,00', '+1,54+2,14%', '1.142.800', '+52.074+4,56%'],
1157
1155
  ['2 Bulan', 'Kurs', '', '', '15.715', '+534+3,40%'],
1158
- ['oz', '2.082,55', '+205,50+9,87%', '32.727.273', '+4.451.251+13,60%'],
1159
- ['gr', '66,96', '+6,61+9,87', '1.052.206', '+143.111+13,60%'],
1156
+ ['oz', '2.082,55', '+204,65+9,83%', '32.727.273', '+4.437.440+13,56%'],
1157
+ ['gr', '66,96', '+6,58+9,83', '1.052.206', '+142.667+13,56%'],
1160
1158
  ['6 Bulan', 'Kurs', '', '', '15.861', '+388+2,45%'],
1161
- ['oz', '1.990,54', '+297,51+14,95%', '31.571.955', '+5.606.570+17,76%'],
1162
- ['gr', '64,00', '+9,57+14,95%', '1.015.062', '+180.255+17,76%'],
1159
+ ['oz', '1.990,54', '+296,66+14,90%', '31.571.955', '+5.592.758+17,71%'],
1160
+ ['gr', '64,00', '+9,54+14,90%', '1.015.062', '+179.811+17,71%'],
1163
1161
  ['1 Tahun', 'Kurs', '', '', '15.731', '+518+3,29%'],
1164
- ['oz', '1.823,86', '+464,19+25,45%', '28.691.142', '+8.487.383+29,58%'],
1165
- ['gr', '58,64', '+14,92+25,45%', '922.442', '+272.876+29,58%'],
1162
+ ['oz', '1.823,86', '+463,34+25,40%', '28.691.142', '+8.473.571+29,53%'],
1163
+ ['gr', '58,64', '+14,90+25,40%', '922.442', '+272.432+29,53%'],
1166
1164
  ['2 Tahun', 'Kurs', '', '', '14.418', '+1.831+12,70%'],
1167
- ['oz', '1.867,23', '+420,82+22,54%', '26.921.722', '+10.256.802+38,10%'],
1168
- ['gr', '60,03', '+13,53+22,54%', '865.553', '+329.764+38,10%'],
1165
+ ['oz', '1.867,23', '+419,97+22,49%', '26.921.722', '+10.242.991+38,05%'],
1166
+ ['gr', '60,03', '+13,50+22,49%', '865.553', '+329.320+38,05%'],
1169
1167
  ['3 Tahun', 'Kurs', '', '', '14.468', '+1.781+12,31%'],
1170
- ['oz', '1.768,91', '+519,14+29,35%', '25.592.590', '+11.585.935+45,27%'],
1171
- ['gr', '56,87', '+16,69+29,35%', '822.821', '+372.496+45,27%'],
1168
+ ['oz', '1.768,91', '+518,29+29,30%', '25.592.590', '+11.572.123+45,22%'],
1169
+ ['gr', '56,87', '+16,66+29,30%', '822.821', '+372.052+45,22%'],
1172
1170
  ['5 Tahun', 'Kurs', '', '', '14.282', '+1.967+13,77%'],
1173
- ['oz', '1.280,82', '+1.007,23+78,64%', '18.292.671', '+18.885.853+103,24%'],
1174
- ['gr', '41,18', '+32,38+78,64%', '588.123', '+607.194+103,24%']])
1171
+ ['oz', '1.280,82', '+1.006,38+78,57%', '18.292.671', '+18.872.042+103,17%'],
1172
+ ['gr', '41,18', '+32,36+78,57%', '588.123', '+606.750+103,17%']])
1175
1173
  (['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
1176
1174
  [[''],
1177
1175
  ['Emas 24 KaratHarga Emas 1 Gram', ''],
1178
- ['USD', '73,56↓', '-0,26-0,35%'],
1176
+ ['USD', '73,54↓', '-0,28-0,38%'],
1179
1177
  ['KURS', '16.265,05↑', '+4,05+0,02%'],
1180
- ['IDR', '1.196.498,00↓', '-3.868,81-0,32%'],
1181
- ['Rabu, 01 Mei 2024 09:48']],
1178
+ ['IDR', '1.196.053,50↓', '-4.313,31-0,36%'],
1179
+ ['Rabu, 01 Mei 2024 10:14']],
1182
1180
  [[''],
1183
1181
  ['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
1184
1182
  'Hari Ini',
@@ -1189,19 +1187,19 @@ Output:
1189
1187
  '']],
1190
1188
  [['Pergerakkan Harga Emas 1 Gram'],
1191
1189
  ['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
1192
- ['USD', '73,82', '73,56 - 73,82', '73,69'],
1190
+ ['USD', '73,82', '73,54 - 73,82', '73,68'],
1193
1191
  ['KURS', '16.261,00', '16.261,00 - 16.265,05', '16.263,03'],
1194
- ['IDR', '1.200.366,81', '1.196.498,00 - 1.200.366,81', '1.198.432,41'],
1192
+ ['IDR', '1.200.366,81', '1.196.053,50 - 1.200.366,81', '1.198.210,16'],
1195
1193
  [''],
1196
1194
  ['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
1197
- ['USD', '66,32', '64,07 - 77,14', '+7,24 (10,92%)'],
1195
+ ['USD', '66,32', '64,07 - 77,14', '+7,22 (10,89%)'],
1198
1196
  ['KURS', '15.390,10', '15.390,00 - 16.307,80', '+874,95 (5,69%)'],
1199
- ['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+175.768,47 (17,22%)'],
1197
+ ['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+175.323,97 (17,18%)'],
1200
1198
  [''],
1201
1199
  ['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
1202
- ['USD', '63,97', '58,43 - 77,14', '+9,59 (14,99%)'],
1200
+ ['USD', '63,97', '58,43 - 77,14', '+9,57 (14,96%)'],
1203
1201
  ['KURS', '14.673,55', '14.669,40 - 16.307,80', '+1.591,50 (10,85%)'],
1204
- ['IDR', '938.709,73', '912.925,68 - 1.256.829,06', '+257.788,27 (27,46%)']])
1202
+ ['IDR', '938.709,73', '912.925,68 - 1.256.829,06', '+257.343,77 (27,41%)']])
1205
1203
  ```
1206
1204
 
1207
1205
  ## iloads
@@ -1331,7 +1329,7 @@ Output:
1331
1329
  ```py
1332
1330
  8
1333
1331
  ['mana', 'aja']
1334
- [<Element a at 0x74077db390>, <Element a at 0x7407819310>, <Element a at 0x74078193b0>, <Element a at 0x7407819400>, <Element a at 0x7407819450>, <Element a at 0x74078194a0>, <Element a at 0x74078194f0>, <Element a at 0x7407819540>, <Element a at 0x7407819590>, <Element a at 0x74078195e0>, <Element a at 0x7407819630>, <Element a at 0x7407819680>, <Element a at 0x74078196d0>, <Element a at 0x7407819720>, <Element a at 0x7407819770>, <Element a at 0x74078197c0>, <Element a at 0x7407819810>, <Element a at 0x7407819860>]
1332
+ [<Element a at 0x7767ba5b80>, <Element a at 0x77674e5400>, <Element a at 0x77674e54a0>, <Element a at 0x77674e54f0>, <Element a at 0x77674e5540>, <Element a at 0x77674e5590>, <Element a at 0x77674e55e0>, <Element a at 0x77674e5630>, <Element a at 0x77674e5680>, <Element a at 0x77674e56d0>, <Element a at 0x77674e5720>, <Element a at 0x77674e5770>, <Element a at 0x77674e57c0>, <Element a at 0x77674e5810>, <Element a at 0x77674e5860>, <Element a at 0x77674e58b0>, <Element a at 0x77674e5900>, <Element a at 0x77674e5950>]
1335
1333
  False
1336
1334
  ```
1337
1335
 
@@ -1393,7 +1391,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
1393
1391
 
1394
1392
  Output:
1395
1393
  ```py
1396
- <generator object iscandir at 0x74077c8840>
1394
+ <generator object iscandir at 0x7767b94840>
1397
1395
  [PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
1398
1396
  ```
1399
1397
 
@@ -1430,76 +1428,76 @@ Output:
1430
1428
  'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
1431
1429
  'PintUregQuantity': <class 'pint.Quantity'>,
1432
1430
  'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
1433
- 'function': {'avg': <function avg at 0x741857a700>,
1434
- 'get_filemtime': <function get_filemtime at 0x740fc4f2e0>,
1435
- 'print_colorize': <function print_colorize at 0x740fc4f4c0>,
1436
- 'print_log': <function print_log at 0x740fee6b60>,
1437
- 'console_run': <function console_run at 0x740fc4f380>,
1438
- 'auto_reload': <function auto_reload at 0x740fe0fec0>,
1439
- 'basename': <function basename at 0x740fc4f240>,
1440
- 'chr_to_int': <function chr_to_int at 0x740fc4fa60>,
1441
- 'int_to_chr': <function int_to_chr at 0x740fc4fb00>,
1442
- 'irange': <function irange at 0x740fc4fd80>,
1443
- 'batchmaker': <function batchmaker at 0x740fc4f740>,
1444
- 'calculate': <function calculate at 0x740fc382c0>,
1445
- 'batch_calculate': <function batch_calculate at 0x740fc4f600>,
1446
- 'bin_to_int': <function bin_to_int at 0x740fc4f6a0>,
1447
- 'is_empty': <function is_empty at 0x740fc38540>,
1448
- 'exit_if_empty': <function exit_if_empty at 0x740fc38400>,
1449
- 'input_char': <function input_char at 0x740fc384a0>,
1450
- 'get_by_index': <function get_by_index at 0x740fc385e0>,
1451
- 'choices': <function choices at 0x740fc387c0>,
1452
- 'chunk_array': <function chunk_array at 0x740fc38860>,
1453
- 'create_folder': <function create_folder at 0x740fc38900>,
1454
- 'datetime_from_string': <function datetime_from_string at 0x740fc389a0>,
1455
- 'datetime_now': <function datetime_now at 0x740fc38a40>,
1456
- 'dict_first': <function dict_first at 0x740fc38ae0>,
1457
- 'dirname': <function dirname at 0x740fc38b80>,
1458
- 'is_iterable': <function is_iterable at 0x740fc38d60>,
1459
- 'to_str': <function to_str at 0x740fc38e00>,
1460
- 'filter_empty': <function filter_empty at 0x740fc38c20>,
1461
- 'get_class_method': <function get_class_method at 0x740fc38cc0>,
1462
- 'get_filesize': <function get_filesize at 0x740fc38f40>,
1463
- 'github_pull': <function github_pull at 0x740fc38fe0>,
1464
- 'github_push': <function github_push at 0x740fc391c0>,
1465
- 'github_user': <function github_user at 0x740fc39260>,
1466
- 'hex_to_int': <function hex_to_int at 0x740fc39080>,
1467
- 'iargv': <function iargv at 0x740fc39300>,
1468
- 'idumps_html': <function idumps_html at 0x740fc39580>,
1469
- 'idumps': <function idumps at 0x740fc39440>,
1470
- 'int_to_int': <function int_to_int at 0x740fd21ee0>,
1471
- 'ienumerate': <function ienumerate at 0x740fc39a80>,
1472
- 'ienv': <function ienv at 0x740fd21da0>,
1473
- 'iexec': <function iexec at 0x740fd21f80>,
1474
- 'ijoin': <function ijoin at 0x740fd220c0>,
1475
- 'iloads_html': <function iloads_html at 0x740fd222a0>,
1476
- 'iloads': <function iloads at 0x740fd22020>,
1477
- 'int_to_bin': <function int_to_bin at 0x740fd22200>,
1478
- 'int_to_hex': <function int_to_hex at 0x740fd22340>,
1479
- 'int_to_oct': <function int_to_oct at 0x740fd223e0>,
1480
- 'is_valid_url': <function is_valid_url at 0x740fd225c0>,
1481
- 'iopen': <function iopen at 0x740fb0ea20>,
1482
- 'iprint': <function iprint at 0x740fd22520>,
1483
- 'ireplace': <function ireplace at 0x740fd228e0>,
1484
- 'iscandir': <function iscandir at 0x740fbc6160>,
1485
- 'isplit': <function isplit at 0x740fbc6200>,
1486
- 'ivars': <function ivars at 0x740fbc62a0>,
1487
- 'log': <function log at 0x740fbc6340>,
1488
- 'oct_to_int': <function oct_to_int at 0x740fbc63e0>,
1489
- 'password_generator': <function password_generator at 0x740fbc6480>,
1490
- 'pip_freeze_without_version': <function pip_freeze_without_version at 0x740fbc65c0>,
1491
- 'poetry_publish': <function poetry_publish at 0x740fbc6660>,
1492
- 'poetry_update_version': <function poetry_update_version at 0x740fbc67a0>,
1493
- 'print_dir': <function print_dir at 0x740fbc6980>,
1494
- 'print_to_last_line': <function print_to_last_line at 0x740fbc6a20>,
1495
- 'random_bool': <function random_bool at 0x740fbc6ac0>,
1496
- 'restart': <function restart at 0x740fbc6b60>,
1497
- 'set_timeout': <function set_timeout at 0x740fbc6c00>,
1498
- 'sets_ordered': <function sets_ordered at 0x740fbc6ca0>,
1499
- 'str_cmp': <function str_cmp at 0x740fbc6d40>,
1500
- 'text_colorize': <function text_colorize at 0x740fbc6de0>},
1431
+ 'function': {'avg': <function avg at 0x777376a700>,
1432
+ 'get_filemtime': <function get_filemtime at 0x776e04b2e0>,
1433
+ 'print_colorize': <function print_colorize at 0x776e04b4c0>,
1434
+ 'print_log': <function print_log at 0x776e2dab60>,
1435
+ 'console_run': <function console_run at 0x776e04b380>,
1436
+ 'auto_reload': <function auto_reload at 0x776e207ec0>,
1437
+ 'basename': <function basename at 0x776e04b240>,
1438
+ 'chr_to_int': <function chr_to_int at 0x776e04ba60>,
1439
+ 'int_to_chr': <function int_to_chr at 0x776e04bb00>,
1440
+ 'irange': <function irange at 0x776e04bd80>,
1441
+ 'batchmaker': <function batchmaker at 0x776e04b740>,
1442
+ 'calculate': <function calculate at 0x776e04b880>,
1443
+ 'batch_calculate': <function batch_calculate at 0x776e04b600>,
1444
+ 'bin_to_int': <function bin_to_int at 0x776e04b6a0>,
1445
+ 'is_empty': <function is_empty at 0x776e034540>,
1446
+ 'exit_if_empty': <function exit_if_empty at 0x776e034400>,
1447
+ 'input_char': <function input_char at 0x776e0344a0>,
1448
+ 'get_by_index': <function get_by_index at 0x776e0345e0>,
1449
+ 'choices': <function choices at 0x776e0347c0>,
1450
+ 'chunk_array': <function chunk_array at 0x776e034860>,
1451
+ 'create_folder': <function create_folder at 0x776e034900>,
1452
+ 'datetime_from_string': <function datetime_from_string at 0x776e0349a0>,
1453
+ 'datetime_now': <function datetime_now at 0x776e034a40>,
1454
+ 'dict_first': <function dict_first at 0x776e034ae0>,
1455
+ 'dirname': <function dirname at 0x776e034b80>,
1456
+ 'is_iterable': <function is_iterable at 0x776e034d60>,
1457
+ 'to_str': <function to_str at 0x776e034e00>,
1458
+ 'filter_empty': <function filter_empty at 0x776e034c20>,
1459
+ 'get_class_method': <function get_class_method at 0x776e034cc0>,
1460
+ 'get_filesize': <function get_filesize at 0x776e034f40>,
1461
+ 'github_pull': <function github_pull at 0x776e034fe0>,
1462
+ 'github_push': <function github_push at 0x776e035120>,
1463
+ 'github_user': <function github_user at 0x776e0351c0>,
1464
+ 'hex_to_int': <function hex_to_int at 0x776e035260>,
1465
+ 'iargv': <function iargv at 0x776e035300>,
1466
+ 'idumps_html': <function idumps_html at 0x776e035580>,
1467
+ 'idumps': <function idumps at 0x776e035440>,
1468
+ 'int_to_int': <function int_to_int at 0x776decdee0>,
1469
+ 'ienumerate': <function ienumerate at 0x776e035a80>,
1470
+ 'ienv': <function ienv at 0x776decdda0>,
1471
+ 'iexec': <function iexec at 0x776decdf80>,
1472
+ 'ijoin': <function ijoin at 0x776dece0c0>,
1473
+ 'iloads_html': <function iloads_html at 0x776dece2a0>,
1474
+ 'iloads': <function iloads at 0x776dece020>,
1475
+ 'int_to_bin': <function int_to_bin at 0x776dece200>,
1476
+ 'int_to_hex': <function int_to_hex at 0x776dece340>,
1477
+ 'int_to_oct': <function int_to_oct at 0x776dece3e0>,
1478
+ 'is_valid_url': <function is_valid_url at 0x776dece5c0>,
1479
+ 'iopen': <function iopen at 0x776df12a20>,
1480
+ 'iprint': <function iprint at 0x776dece520>,
1481
+ 'ireplace': <function ireplace at 0x776dece8e0>,
1482
+ 'iscandir': <function iscandir at 0x776dfc6160>,
1483
+ 'isplit': <function isplit at 0x776dfc6200>,
1484
+ 'ivars': <function ivars at 0x776dfc62a0>,
1485
+ 'log': <function log at 0x776dfc6340>,
1486
+ 'oct_to_int': <function oct_to_int at 0x776dfc63e0>,
1487
+ 'password_generator': <function password_generator at 0x776dfc6480>,
1488
+ 'pip_freeze_without_version': <function pip_freeze_without_version at 0x776dfc65c0>,
1489
+ 'poetry_publish': <function poetry_publish at 0x776dfc6660>,
1490
+ 'poetry_update_version': <function poetry_update_version at 0x776dfc67a0>,
1491
+ 'print_dir': <function print_dir at 0x776dfc6980>,
1492
+ 'print_to_last_line': <function print_to_last_line at 0x776dfc6a20>,
1493
+ 'random_bool': <function random_bool at 0x776dfc6ac0>,
1494
+ 'restart': <function restart at 0x776dfc6b60>,
1495
+ 'set_timeout': <function set_timeout at 0x776dfc6c00>,
1496
+ 'sets_ordered': <function sets_ordered at 0x776dfc6ca0>,
1497
+ 'str_cmp': <function str_cmp at 0x776dfc6d40>,
1498
+ 'text_colorize': <function text_colorize at 0x776dfc6de0>},
1501
1499
  'variable': {'LINUX': True,
1502
- 'PintUreg': <pint.registry.UnitRegistry object at 0x741857ca90>,
1500
+ 'PintUreg': <pint.registry.UnitRegistry object at 0x77737706d0>,
1503
1501
  'WINDOWS': False},
1504
1502
  'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
1505
1503
  'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
@@ -1589,7 +1587,7 @@ print(password_generator())
1589
1587
 
1590
1588
  Output:
1591
1589
  ```py
1592
- ].tfU}Rc
1590
+ {B`unu_i
1593
1591
  ```
1594
1592
 
1595
1593
  ## pip_freeze_without_version
@@ -1647,7 +1645,7 @@ Output:
1647
1645
  __enter__ : https:/www.google.com
1648
1646
  __fspath__ : https:/www.google.com
1649
1647
  __getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
1650
- __hash__ : 7327379686933953002
1648
+ __hash__ : -1583631696877642198
1651
1649
  __init__ : None
1652
1650
  __init_subclass__ : None
1653
1651
  __module__ : pathlib
@@ -1660,8 +1658,8 @@ Output:
1660
1658
  _cached_cparts : ['https:', 'www.google.com']
1661
1659
  _cparts : ['https:', 'www.google.com']
1662
1660
  _drv :
1663
- _flavour : <pathlib._PosixFlavour object at 0x741cf0cb90>
1664
- _hash : 7327379686933953002
1661
+ _flavour : <pathlib._PosixFlavour object at 0x777b91cc10>
1662
+ _hash : -1583631696877642198
1665
1663
  _parts : ['https:', 'www.google.com']
1666
1664
  _root :
1667
1665
  _str : https:/www.google.com
@@ -1683,7 +1681,7 @@ Output:
1683
1681
  is_reserved : False
1684
1682
  is_socket : False
1685
1683
  is_symlink : False
1686
- iterdir : <generator object Path.iterdir at 0x74077c2960>
1684
+ iterdir : <generator object Path.iterdir at 0x7767b8a960>
1687
1685
  joinpath : https:/www.google.com
1688
1686
  name : www.google.com
1689
1687
  parent : https:
@@ -1757,7 +1755,7 @@ x.cancel()
1757
1755
 
1758
1756
  Output:
1759
1757
  ```py
1760
- <Timer(Thread-2, started 498316795120)>
1758
+ <Timer(Thread-2, started 512816430320)>
1761
1759
  menghentikan timeout 7
1762
1760
  ```
1763
1761
 
@@ -1775,7 +1773,7 @@ print(list(sets_ordered(array)))
1775
1773
 
1776
1774
  Output:
1777
1775
  ```py
1778
- <generator object sets_ordered at 0x74077f1150>
1776
+ <generator object sets_ordered at 0x7767bb9150>
1779
1777
  [2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
1780
1778
  ```
1781
1779
 
@@ -1869,7 +1867,7 @@ print(ExampleComparePerformance().compare_performance())
1869
1867
 
1870
1868
  Output:
1871
1869
  ```py
1872
- {'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x74077f0ba0>,
1870
+ {'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7767bb8ba0>,
1873
1871
  'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
1874
1872
  'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
1875
1873
  'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
@@ -1,7 +1,7 @@
1
1
  import platform
2
2
 
3
+ """
4
+ True on linux
5
+ """
3
6
  LINUX = platform.system() == "Linux"
4
7
 
5
-
6
- if __name__ == "__main__":
7
- print(LINUX)
@@ -216,9 +216,3 @@ class ExampleRunParallel(RunParallel):
216
216
  result["pop"] = self.pop
217
217
  result["e"] = "e"
218
218
  return result
219
-
220
-
221
- if __name__ == "__main__":
222
- print(ExampleRunParallel().run_asyncio())
223
- print(ExampleRunParallel().run_multi_threading())
224
- print(ExampleRunParallel().run_multi_processing())
@@ -1,6 +1,7 @@
1
1
  import platform
2
2
 
3
- WINDOWS = platform.system() == "Windows"
4
3
 
5
- if __name__ == "__main__":
6
- print(WINDOWS)
4
+ """
5
+ True on windows
6
+ """
7
+ WINDOWS = platform.system() == "Windows"
@@ -6,6 +6,7 @@ def main():
6
6
  # m = m["module"] | m["variable"] | m["class"] | m["function"]
7
7
  m = m["variable"] | m["function"]
8
8
  m = [x for x in m]
9
+ m.sort()
9
10
 
10
11
  a = iargv(1)
11
12
  p = "Masukan Nomor Urut atau Nama Fungsi : "
@@ -14,9 +14,7 @@ def auto_reload(filename):
14
14
  Jalankan kode ini di terminal console.
15
15
 
16
16
  ```py
17
- if __name__ == "__main__":
18
- auto_reload("file_name.py")
19
-
17
+ auto_reload("file_name.py")
20
18
  ```
21
19
 
22
20
  or run in terminal
@@ -14,25 +14,8 @@ def batch_calculate(pattern):
14
14
  ```
15
15
  """
16
16
  patterns = batchmaker(pattern)
17
-
18
17
  for i in patterns:
19
18
  try:
20
19
  yield (i, calculate(i))
21
20
  except Exception:
22
21
  yield (i, None)
23
-
24
- # c = None
25
- # for i in patterns:
26
- # try:
27
- # c = calculate(i)
28
- # except Exception:
29
- # c = None
30
- # yield (i, c)
31
-
32
-
33
- if __name__ == "__main__":
34
- from ..ifunctions.iargv import iargv
35
- from ..ifunctions.iprint import iprint
36
-
37
- if i := iargv(1):
38
- iprint(batch_calculate(i))
@@ -27,9 +27,3 @@ def calculate(teks):
27
27
  """
28
28
  return PintUregQuantity(teks)
29
29
 
30
-
31
- if __name__ == "__main__":
32
- from ..ifunctions.iargv import iargv
33
-
34
- if i := iargv(1):
35
- print(i)
@@ -13,16 +13,3 @@ def chr_to_int(s, start=0, numbers="abcdefghijklmnopqrstuvwxyz"):
13
13
  for char in s:
14
14
  result = result * digit + numbers.index(char) + 1
15
15
  return result + start - 1
16
-
17
-
18
- if __name__ == "__main__":
19
- print(chr_to_int("z")) # Output: 25
20
- print(chr_to_int("aa")) # Output: 26
21
- print(chr_to_int("abc", numbers="abc")) # Output: 18
22
- for i in "abcdefghijklmnopqrstuvwxyz":
23
- print(chr_to_int(i, start=9))
24
-
25
-
26
-
27
-
28
-
@@ -28,7 +28,3 @@ def github_push(commit_msg=None):
28
28
  console_run("Menyimpan files", f'git commit -m "{msg}"')
29
29
  console_run("Mengirim files", "git push")
30
30
  print_log("Selesai Menjalankan Github Push")
31
-
32
-
33
- if __name__ == "__main__":
34
- github_push()
@@ -16,9 +16,3 @@ def github_user(email=None, name=None):
16
16
  )
17
17
  if name:
18
18
  console_run("Update Github User Name", f"git config --global user.name {name}")
19
-
20
-
21
- if __name__ == "__main__":
22
- from ..ifunctions.iargv import iargv
23
-
24
- github_user(iargv(1), iargv(2))
@@ -8,8 +8,7 @@ def iargv(key: int, cast=None, on_error=None):
8
8
  Parameter yg berupa string juga dapat diubah menggunakan cast.
9
9
 
10
10
  ```python
11
- if __name__ == "__main__":
12
- print(iargv(1, cast=int, on_error=100))
11
+ print(iargv(1, cast=int, on_error=100))
13
12
  ```
14
13
  """
15
14
  try:
@@ -20,7 +19,3 @@ def iargv(key: int, cast=None, on_error=None):
20
19
  return v
21
20
  except Exception:
22
21
  return on_error
23
-
24
-
25
- if __name__ == "__main__":
26
- print(sys.argv)
@@ -40,9 +40,3 @@ def input_char(
40
40
  if LINUX:
41
41
  return a
42
42
  raise Exception("Platform tidak didukung.")
43
-
44
-
45
- if __name__ == "__main__":
46
- input_char("Input char : ")
47
- input_char("Input char : ", default='Y')
48
- input_char("Input Char without print : ", echo_char=False)