pypipr 1.0.108__tar.gz → 1.0.109__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 (73) hide show
  1. {pypipr-1.0.108 → pypipr-1.0.109}/PKG-INFO +165 -221
  2. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/auto_reload.py +7 -1
  3. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/batchmaker.py +1 -8
  4. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/chr_to_int.py +2 -2
  5. pypipr-1.0.109/pypipr/irange.py +58 -0
  6. {pypipr-1.0.108 → pypipr-1.0.109}/pyproject.toml +1 -1
  7. {pypipr-1.0.108 → pypipr-1.0.109}/readme.md +164 -220
  8. pypipr-1.0.108/pypipr/irange.py +0 -39
  9. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/APIMixinView.py +0 -0
  10. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/ComparePerformance.py +0 -0
  11. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/LINUX.py +0 -0
  12. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/PintUreg.py +0 -0
  13. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/PintUregQuantity.py +0 -0
  14. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/RunParallel.py +0 -0
  15. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/WINDOWS.py +0 -0
  16. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/__init__.py +0 -0
  17. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/__terminal__.py +0 -0
  18. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/avg.py +0 -0
  19. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/basename.py +0 -0
  20. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/batch_calculate.py +0 -0
  21. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/calculate.py +0 -0
  22. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/choices.py +0 -0
  23. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/chunk_array.py +0 -0
  24. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/console_run.py +0 -0
  25. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/create_folder.py +0 -0
  26. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/datetime_from_string.py +0 -0
  27. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/datetime_now.py +0 -0
  28. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/dict_first.py +0 -0
  29. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/dirname.py +0 -0
  30. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/exit_if_empty.py +0 -0
  31. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/filter_empty.py +0 -0
  32. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/get_by_index.py +0 -0
  33. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/get_class_method.py +0 -0
  34. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/get_filemtime.py +0 -0
  35. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/get_filesize.py +0 -0
  36. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/github_pull.py +0 -0
  37. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/github_push.py +0 -0
  38. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/github_user.py +0 -0
  39. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/iargv.py +0 -0
  40. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/idumps.py +0 -0
  41. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/idumps_html.py +0 -0
  42. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/ienv.py +0 -0
  43. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/iexec.py +0 -0
  44. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/ijoin.py +0 -0
  45. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/iloads.py +0 -0
  46. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/iloads_html.py +0 -0
  47. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/input_char.py +0 -0
  48. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/int_to_chr.py +0 -0
  49. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/iopen.py +0 -0
  50. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/iprint.py +0 -0
  51. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/ireplace.py +0 -0
  52. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/is_empty.py +0 -0
  53. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/is_iterable.py +0 -0
  54. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/is_valid_url.py +0 -0
  55. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/iscandir.py +0 -0
  56. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/isplit.py +0 -0
  57. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/ivars.py +0 -0
  58. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/log.py +0 -0
  59. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/password_generator.py +0 -0
  60. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/pip_freeze_without_version.py +0 -0
  61. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/poetry_publish.py +0 -0
  62. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/poetry_update_version.py +0 -0
  63. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/print_colorize.py +0 -0
  64. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/print_dir.py +0 -0
  65. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/print_log.py +0 -0
  66. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/print_to_last_line.py +0 -0
  67. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/random_bool.py +0 -0
  68. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/restart.py +0 -0
  69. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/set_timeout.py +0 -0
  70. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/sets_ordered.py +0 -0
  71. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/str_cmp.py +0 -0
  72. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/text_colorize.py +0 -0
  73. {pypipr-1.0.108 → pypipr-1.0.109}/pypipr/to_str.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypipr
3
- Version: 1.0.108
3
+ Version: 1.0.109
4
4
  Summary: The Python Package Index Project
5
5
  Author: ufiapjj
6
6
  Author-email: ufiapjj@gmail.com
@@ -137,6 +137,13 @@ Jalankan kode ini di terminal console.
137
137
  ```py
138
138
  if __name__ == "__main__":
139
139
  auto_reload("file_name.py")
140
+
141
+ ```
142
+
143
+ or run in terminal
144
+
145
+ ```
146
+ pypipr auto_reload
140
147
  ```
141
148
 
142
149
  ## basename
@@ -163,7 +170,7 @@ Fungsi ini berguna untuk mengubah urutan huruf menjadi angka.
163
170
  ```python
164
171
  print(chr_to_int('z')) # Output: 26
165
172
  print(chr_to_int('aa')) # Output: 27
166
- print(chr_to_int('abc', numbers="abc")) # Output: 10
173
+ print(chr_to_int('abc', numbers="abc")) # Output: 18
167
174
  ```
168
175
 
169
176
  Output:
@@ -224,7 +231,7 @@ kmc
224
231
 
225
232
  ## irange
226
233
 
227
- `irange(start, stop=None, step=1, index=0, numbers='abcdefghijklmnopqrstuvwxyz')`
234
+ `irange(start, stop=None, step=None, index=0, numbers='abcdefghijklmnopqrstuvwxyz')`
228
235
 
229
236
  Meningkatkan fungsi range() dari python untuk pengulangan menggunakan huruf
230
237
 
@@ -238,11 +245,11 @@ print(list(irange(10, 5)))
238
245
 
239
246
  Output:
240
247
  ```py
241
- <generator object char_range at 0x7384c3fcd0>
242
- <generator object char_range at 0x7384c3fcd0>
248
+ <generator object str_range at 0x7253023cd0>
249
+ <generator object str_range at 0x7253023cd0>
243
250
  ['a', 'k', 'u']
244
251
  [1, 2, 3, 4, 5, 6]
245
- []
252
+ [10, 9, 8, 7, 6]
246
253
  ```
247
254
 
248
255
  ## batchmaker
@@ -264,12 +271,6 @@ print(batchmaker(s))
264
271
  print(list(batchmaker(s)))
265
272
  ```
266
273
 
267
- Output:
268
- ```py
269
- <generator object batchmaker at 0x7384b4c160>
270
- []
271
- ```
272
-
273
274
  ## calculate
274
275
 
275
276
  `calculate(teks)`
@@ -320,7 +321,7 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
320
321
 
321
322
  Output:
322
323
  ```py
323
- <generator object batch_calculate at 0x7384ac2e30>
324
+ <generator object batch_calculate at 0x7252eeed40>
324
325
  [('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')>)]
325
326
  ```
326
327
 
@@ -413,7 +414,7 @@ print(list(chunk_array(arr, 5)))
413
414
 
414
415
  Output:
415
416
  ```py
416
- <generator object chunk_array at 0x7384b48240>
417
+ <generator object chunk_array at 0x7252f50440>
417
418
  [[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
418
419
  ```
419
420
 
@@ -464,9 +465,9 @@ print(datetime_now("Etc/GMT+7"))
464
465
 
465
466
  Output:
466
467
  ```py
467
- 2024-04-29 21:55:16.569628+07:00
468
- 2024-04-29 14:55:16.570325+00:00
469
- 2024-04-29 07:55:16.571597-07:00
468
+ 2024-04-30 12:59:48.069039+07:00
469
+ 2024-04-30 05:59:48.075135+00:00
470
+ 2024-04-29 22:59:48.089036-07:00
470
471
  ```
471
472
 
472
473
  ## dict_first
@@ -584,7 +585,7 @@ print(filter_empty(var))
584
585
 
585
586
  Output:
586
587
  ```py
587
- <generator object filter_empty at 0x7384ac13f0>
588
+ <generator object filter_empty at 0x7252eed300>
588
589
  ```
589
590
 
590
591
  ## get_by_index
@@ -630,8 +631,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
630
631
 
631
632
  Output:
632
633
  ```py
633
- <generator object get_class_method at 0x7384ac3100>
634
- [<function ExampleGetClassMethod.a at 0x7384b544a0>, <function ExampleGetClassMethod.b at 0x7384b54720>, <function ExampleGetClassMethod.c at 0x7384b547c0>, <function ExampleGetClassMethod.d at 0x7384b54860>]
634
+ <generator object get_class_method at 0x7252eef010>
635
+ [<function ExampleGetClassMethod.a at 0x7252f605e0>, <function ExampleGetClassMethod.b at 0x7252f60860>, <function ExampleGetClassMethod.c at 0x7252f60900>, <function ExampleGetClassMethod.d at 0x7252f609a0>]
635
636
  ```
636
637
 
637
638
  ## get_filesize
@@ -929,7 +930,7 @@ print(ijoin(10, ' '))
929
930
 
930
931
  Output:
931
932
  ```py
932
- qweqw, weq, dfs, asd
933
+ weq, asd, qweqw, dfs
933
934
  ,ini,path,seperti,url,
934
935
  ini,path,seperti,url
935
936
  <li>satu</li>
@@ -972,118 +973,61 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
972
973
  Output:
973
974
  ```py
974
975
  (['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
975
- [['Harga Emas Hari Ini - Senin, 29 April 2024'],
976
- ['Spot Emas USD↓2.336,06 (-1,88) / oz',
977
- 'Kurs IDR↑16.222,00 (+14,00) / USD',
978
- 'Emas IDR1.218.371 (+72) / gr'],
979
- ['LM Antam (Jual)1.325.000 (-1.000) / gr',
980
- 'LM Antam (Beli)↓1.221.000 (-1.000) / gr']],
976
+ [['Harga Emas Hari Ini - Selasa, 30 April 2024'],
977
+ ['Spot Emas USD↓2.323,14 (-21,40) / oz',
978
+ 'Kurs IDR↑16.249,00 (+27,00) / USD',
979
+ 'Emas IDR1.213.649 (-9.145) / gr'],
980
+ ['LM Antam (Jual)1.325.000 / gr', 'LM Antam (Beli)1.221.000 / gr']],
981
981
  [['Harga Emas Hari Ini'],
982
982
  ['Gram', 'Gedung Antam Jakarta', 'Pegadaian'],
983
983
  ['per Gram (Rp)', 'per Batangan (Rp)', 'per Gram (Rp)', 'per Batangan (Rp)'],
984
984
  ['1000',
985
- '1.266 (-1)',
986
- '1.265.600 (-1.000)',
985
+ '1.266',
986
+ '1.265.600',
987
987
  '1.043.040 (+8.200)',
988
988
  '1.043.040.000 (+8.200.000)'],
989
989
  ['500',
990
- '2.531 (-2)',
991
- '1.265.640 (-1.000)',
990
+ '2.531',
991
+ '1.265.640',
992
992
  '1.043.082 (+8.200)',
993
993
  '521.541.000 (+4.100.000)'],
994
994
  ['250',
995
- '5.064 (-4)',
996
- '1.266.060 (-1.000)',
995
+ '5.064',
996
+ '1.266.060',
997
997
  '1.043.512 (+8.200)',
998
998
  '260.878.000 (+2.050.000)'],
999
999
  ['100',
1000
- '12.671 (-10)',
1001
- '1.267.120 (-1.000)',
1000
+ '12.671',
1001
+ '1.267.120',
1002
1002
  '1.044.600 (+8.200)',
1003
1003
  '104.460.000 (+820.000)'],
1004
- ['50',
1005
- '25.358 (-20)',
1006
- '1.267.900 (-1.000)',
1007
- '1.045.400 (+8.200)',
1008
- '52.270.000 (+410.000)'],
1009
- ['25',
1010
- '50.779 (-40)',
1011
- '1.269.480 (-1.000)',
1012
- '1.047.040 (+8.200)',
1013
- '26.176.000 (+205.000)'],
1014
- ['10',
1015
- '127.450 (-100)',
1016
- '1.274.500 (-1.000)',
1017
- '1.052.200 (+8.200)',
1018
- '10.522.000 (+82.000)'],
1019
- ['5',
1020
- '256.000 (-200)',
1021
- '1.280.000 (-1.000)',
1022
- '1.057.800 (+8.200)',
1023
- '5.289.000 (+41.000)'],
1024
- ['3',
1025
- '428.889 (-333)',
1026
- '1.286.667 (-1.000)',
1027
- '1.064.667 (+8.000)',
1028
- '3.194.000 (+24.000)'],
1029
- ['2',
1030
- '647.500 (-500)',
1031
- '1.295.000 (-1.000)',
1032
- '1.073.500 (+8.500)',
1033
- '2.147.000 (+17.000)'],
1034
- ['1',
1035
- '1.325.000 (-1.000)',
1036
- '1.325.000 (-1.000)',
1037
- '1.104.000 (+8.000)',
1038
- '1.104.000 (+8.000)'],
1039
- ['0.5',
1040
- '2.850.000 (-2.000)',
1041
- '1.425.000 (-1.000)',
1042
- '1.208.000 (+8.000)',
1043
- '604.000 (+4.000)'],
1044
- ['Update harga LM Antam :29 April 2024, pukul 07:56Harga pembelian kembali '
1045
- ':Rp. 1.221.000/gram (-1.000)',
1004
+ ['50', '25.358', '1.267.900', '1.045.400 (+8.200)', '52.270.000 (+410.000)'],
1005
+ ['25', '50.779', '1.269.480', '1.047.040 (+8.200)', '26.176.000 (+205.000)'],
1006
+ ['10', '127.450', '1.274.500', '1.052.200 (+8.200)', '10.522.000 (+82.000)'],
1007
+ ['5', '256.000', '1.280.000', '1.057.800 (+8.200)', '5.289.000 (+41.000)'],
1008
+ ['3', '428.889', '1.286.667', '1.064.667 (+8.000)', '3.194.000 (+24.000)'],
1009
+ ['2', '647.500', '1.295.000', '1.073.500 (+8.500)', '2.147.000 (+17.000)'],
1010
+ ['1', '1.325.000', '1.325.000', '1.104.000 (+8.000)', '1.104.000 (+8.000)'],
1011
+ ['0.5', '2.850.000', '1.425.000', '1.208.000 (+8.000)', '604.000 (+4.000)'],
1012
+ ['Update harga LM Antam :30 April 2024, pukul 08:19Harga pembelian kembali '
1013
+ ':Rp. 1.221.000/gram',
1046
1014
  'Update harga LM Pegadaian :31 Agustus 2023']],
1047
1015
  [['Spot Harga Emas Hari Ini (Market Open)'],
1048
1016
  ['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
1049
- ['Ounce\xa0(oz)', '2.336,06 (-1,88)', '16.222,00 (+14,00)', '37.895.565'],
1050
- ['Gram\xa0(gr)', '75,11', '16.222,00', '1.218.371 (+72)'],
1051
- ['Kilogram\xa0(kg)', '75.106,07', '16.222,00', '1.218.370.718'],
1052
- ['Update harga emas :29 April 2024, pukul 21:54Update kurs :29 April 2024, '
1053
- 'pukul 13:10']],
1017
+ ['Ounce\xa0(oz)', '2.323,14 (-21,40)', '16.249,00 (+27,00)', '37.748.702'],
1018
+ ['Gram\xa0(gr)', '74,69', '16.249,00', '1.213.649 (-9.145)'],
1019
+ ['Kilogram\xa0(kg)', '74.690,69', '16.249,00', '1.213.648.948'],
1020
+ ['Update harga emas :30 April 2024, pukul 12:59Update kurs :30 April 2024, '
1021
+ 'pukul 09:10']],
1054
1022
  [['Gram', 'UBS Gold 99.99%'],
1055
1023
  ['Jual', 'Beli'],
1056
1024
  ['/ Batang', '/ Gram', '/ Batang', '/ Gram'],
1057
- ['100',
1058
- '126.300.000 (-512.000)',
1059
- '1.263.000 (-5.120)',
1060
- '125.185.000 (+200.000)',
1061
- '1.251.850 (+2.000)'],
1062
- ['50',
1063
- '63.300.000 (-145.000)',
1064
- '1.266.000 (-2.900)',
1065
- '62.645.000 (+100.000)',
1066
- '1.252.900 (+2.000)'],
1067
- ['25',
1068
- '31.700.000 (-62.000)',
1069
- '1.268.000 (-2.480)',
1070
- '31.425.000 (+50.000)',
1071
- '1.257.000 (+2.000)'],
1072
- ['10',
1073
- '12.720.000 (-35.000)',
1074
- '1.272.000 (-3.500)',
1075
- '12.620.000 (+20.000)',
1076
- '1.262.000 (+2.000)'],
1077
- ['5',
1078
- '6.385.000 (-20.000)',
1079
- '1.277.000 (-4.000)',
1080
- '6.362.000 (+10.000)',
1081
- '1.272.400 (+2.000)'],
1082
- ['1',
1083
- '1.325.000 (-1.000)',
1084
- '1.325.000 (-1.000)',
1085
- '1.305.000 (+2.000)',
1086
- '1.305.000 (+2.000)'],
1025
+ ['100', '126.300.000', '1.263.000', '125.185.000', '1.251.850'],
1026
+ ['50', '63.300.000', '1.266.000', '62.645.000', '1.252.900'],
1027
+ ['25', '31.700.000', '1.268.000', '31.425.000', '1.257.000'],
1028
+ ['10', '12.720.000', '1.272.000', '12.620.000', '1.262.000'],
1029
+ ['5', '6.385.000', '1.277.000', '6.362.000', '1.272.400'],
1030
+ ['1', '1.325.000', '1.325.000', '1.305.000', '1.305.000'],
1087
1031
  ['', 'Update :29 April 2024, pukul 16:06']],
1088
1032
  [['Konversi Satuan'],
1089
1033
  ['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
@@ -1094,37 +1038,37 @@ Output:
1094
1038
  ['Waktu', 'Emas'],
1095
1039
  ['Unit', 'USD', 'IDR'],
1096
1040
  ['Angka', '+/-', 'Angka', '+/-'],
1097
- ['Hari Ini', 'Kurs', '', '', '16.208', '+14+0,09%'],
1098
- ['oz', '2.337,94', '-1,88-0,08%', '37.893.332', '+2.234+0,01%'],
1099
- ['gr', '75,17', '-0,06-0,08%', '1.218.299', '+72+0,01%'],
1100
- ['30 Hari', 'Kurs', '', '', '15.853', '+369+2,33%'],
1101
- ['oz', '2.232,75', '+103,31+4,63%', '35.395.786', '+2.499.780+7,06%'],
1102
- ['gr', '71,78', '+3,32+4,63%', '1.138.001', '+80.370+7,06%'],
1103
- ['2 Bulan', 'Kurs', '', '', '15.673', '+549+3,50%'],
1104
- ['oz', '2.045,83', '+290,23+14,19%', '32.064.294', '+5.831.272+18,19%'],
1105
- ['gr', '65,77', '+9,33+14,19', '1.030.891', '+187.480+18,19%'],
1106
- ['6 Bulan', 'Kurs', '', '', '15.897', '+325+2,04%'],
1107
- ['oz', '1.977,80', '+358,26+18,11%', '31.441.087', '+6.454.479+20,53%'],
1108
- ['gr', '63,59', '+11,52+18,11%', '1.010.854', '+207.516+20,53%'],
1109
- ['1 Tahun', 'Kurs', '', '', '15.731', '+491+3,12%'],
1110
- ['oz', '1.823,86', '+512,20+28,08%', '28.691.142', '+9.204.424+32,08%'],
1111
- ['gr', '58,64', '+16,47+28,08%', '922.442', '+295.929+32,08%'],
1112
- ['2 Tahun', 'Kurs', '', '', '14.418', '+1.804+12,51%'],
1113
- ['oz', '1.896,95', '+439,11+23,15%', '27.350.225', '+10.545.340+38,56%'],
1114
- ['gr', '60,99', '+14,12+23,15%', '879.330', '+339.041+38,56%'],
1115
- ['3 Tahun', 'Kurs', '', '', '14.468', '+1.754+12,12%'],
1116
- ['oz', '1.767,08', '+568,98+32,20%', '25.566.113', '+12.329.452+48,23%'],
1117
- ['gr', '56,81', '+18,29+32,20%', '821.970', '+396.401+48,23%'],
1118
- ['5 Tahun', 'Kurs', '', '', '14.215', '+2.007+14,12%'],
1119
- ['oz', '1.280,61', '+1.055,45+82,42%', '18.203.871', '+19.691.694+108,17%'],
1120
- ['gr', '41,17', '+33,93+82,42%', '585.268', '+633.103+108,17%']])
1041
+ ['Hari Ini', 'Kurs', '', '', '16.222', '+27+0,17%'],
1042
+ ['oz', '2.344,54', '-21,40-0,91%', '38.033.128', '-284.426-0,75%'],
1043
+ ['gr', '75,38', '-0,69-0,91%', '1.222.793', '-9.145-0,75%'],
1044
+ ['30 Hari', 'Kurs', '', '', '15.853', '+396+2,50%'],
1045
+ ['oz', '2.232,75', '+90,39+4,05%', '35.395.786', '+2.352.916+6,65%'],
1046
+ ['gr', '71,78', '+2,91+4,05%', '1.138.001', '+75.648+6,65%'],
1047
+ ['2 Bulan', 'Kurs', '', '', '15.715', '+534+3,40%'],
1048
+ ['oz', '2.081,20', '+241,94+11,63%', '32.706.058', '+5.042.644+15,42%'],
1049
+ ['gr', '66,91', '+7,78+11,63', '1.051.524', '+162.125+15,42%'],
1050
+ ['6 Bulan', 'Kurs', '', '', '15.946', '+303+1,90%'],
1051
+ ['oz', '1.981,84', '+341,30+17,22%', '31.602.421', '+6.146.281+19,45%'],
1052
+ ['gr', '63,72', '+10,97+17,22%', '1.016.041', '+197.608+19,45%'],
1053
+ ['1 Tahun', 'Kurs', '', '', '15.731', '+518+3,29%'],
1054
+ ['oz', '1.823,86', '+499,28+27,37%', '28.691.142', '+9.057.560+31,57%'],
1055
+ ['gr', '58,64', '+16,05+27,37%', '922.442', '+291.207+31,57%'],
1056
+ ['2 Tahun', 'Kurs', '', '', '14.418', '+1.831+12,70%'],
1057
+ ['oz', '1.896,95', '+426,19+22,47%', '27.350.225', '+10.398.477+38,02%'],
1058
+ ['gr', '60,99', '+13,70+22,47%', '879.330', '+334.319+38,02%'],
1059
+ ['3 Tahun', 'Kurs', '', '', '14.468', '+1.781+12,31%'],
1060
+ ['oz', '1.768,91', '+554,23+31,33%', '25.592.590', '+12.156.112+47,50%'],
1061
+ ['gr', '56,87', '+17,82+31,33%', '822.821', '+390.828+47,50%'],
1062
+ ['5 Tahun', 'Kurs', '', '', '14.245', '+2.004+14,07%'],
1063
+ ['oz', '1.270,94', '+1.052,20+82,79%', '18.104.540', '+19.644.162+108,50%'],
1064
+ ['gr', '40,86', '+33,83+82,79%', '582.074', '+631.574+108,50%']])
1121
1065
  (['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
1122
1066
  [[''],
1123
1067
  ['Emas 24 KaratHarga Emas 1 Gram', ''],
1124
- ['USD', '75,11↓', '-0,06-0,08%'],
1125
- ['KURS', '16.230,40↓', '-10,90-0,07%'],
1126
- ['IDR', '1.219.048,57↓', '-1.753,37-0,14%'],
1127
- ['Senin, 29 April 2024 21:55']],
1068
+ ['USD', '74,69↓', '-0,69-0,92%'],
1069
+ ['KURS', '16.269,00↑', '+55,50+0,34%'],
1070
+ ['IDR', '1.215.142,76↓', '-7.009,98-0,57%'],
1071
+ ['Selasa, 30 April 2024 12:59']],
1128
1072
  [[''],
1129
1073
  ['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
1130
1074
  'Hari Ini',
@@ -1135,19 +1079,19 @@ Output:
1135
1079
  '']],
1136
1080
  [['Pergerakkan Harga Emas 1 Gram'],
1137
1081
  ['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
1138
- ['USD', '75,17', '75,11 - 75,17', '75,14'],
1139
- ['KURS', '16.241,30', '16.230,40 - 16.241,30', '16.235,85'],
1140
- ['IDR', '1.220.801,94', '1.219.048,57 - 1.220.801,94', '1.219.925,26'],
1082
+ ['USD', '75,38', '74,69 - 75,38', '75,04'],
1083
+ ['KURS', '16.213,50', '16.213,50 - 16.269,00', '16.241,25'],
1084
+ ['IDR', '1.222.152,74', '1.215.142,76 - 1.222.152,74', '1.218.647,75'],
1141
1085
  [''],
1142
1086
  ['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
1143
- ['USD', '66,32', '64,07 - 77,14', '+8,79 (13,25%)'],
1144
- ['KURS', '15.390,10', '15.390,00 - 16.307,80', '+840,30 (5,46%)'],
1145
- ['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+198.319,04 (19,43%)'],
1087
+ ['USD', '66,32', '64,07 - 77,14', '+8,37 (12,62%)'],
1088
+ ['KURS', '15.390,10', '15.390,00 - 16.307,80', '+878,90 (5,71%)'],
1089
+ ['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+194.413,23 (19,05%)'],
1146
1090
  [''],
1147
1091
  ['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
1148
- ['USD', '64,04', '58,43 - 77,14', '+11,07 (17,29%)'],
1149
- ['KURS', '14.671,35', '14.669,40 - 16.307,80', '+1.559,05 (10,63%)'],
1150
- ['IDR', '939.568,98', '912.925,68 - 1.256.829,06', '+279.479,59 (29,75%)']])
1092
+ ['USD', '63,97', '58,43 - 77,14', '+10,72 (16,76%)'],
1093
+ ['KURS', '14.673,55', '14.669,40 - 16.307,80', '+1.595,45 (10,87%)'],
1094
+ ['IDR', '938.709,73', '912.925,68 - 1.256.829,06', '+276.433,03 (29,45%)']])
1151
1095
  ```
1152
1096
 
1153
1097
  ## iloads
@@ -1241,7 +1185,7 @@ Output:
1241
1185
  ```py
1242
1186
  8
1243
1187
  ['mana', 'aja']
1244
- [<Element a at 0x7384b59090>, <Element a at 0x7384b94910>, <Element a at 0x7384b949b0>, <Element a at 0x7384b94a00>, <Element a at 0x7384b94a50>, <Element a at 0x7384b94aa0>, <Element a at 0x7384b94af0>, <Element a at 0x7384b94b40>, <Element a at 0x7384b94b90>, <Element a at 0x7384b94be0>, <Element a at 0x7384b94c30>, <Element a at 0x7384b94c80>, <Element a at 0x7384b94cd0>, <Element a at 0x7384b94d20>, <Element a at 0x7384b94d70>, <Element a at 0x7384b94dc0>, <Element a at 0x7384b94e10>, <Element a at 0x7384b94e60>, <Element a at 0x7384b94eb0>, <Element a at 0x7384b94f00>]
1188
+ [<Element a at 0x7252f5df90>, <Element a at 0x7252f9cf00>, <Element a at 0x7252f9cfa0>, <Element a at 0x7252f9cff0>, <Element a at 0x7252f9d040>, <Element a at 0x7252f9d090>, <Element a at 0x7252f9d0e0>, <Element a at 0x7252f9d130>, <Element a at 0x7252f9d180>, <Element a at 0x7252f9d1d0>, <Element a at 0x7252f9d220>, <Element a at 0x7252f9d270>, <Element a at 0x7252f9d2c0>, <Element a at 0x7252f9d310>, <Element a at 0x7252f9d360>, <Element a at 0x7252f9d3b0>, <Element a at 0x7252f9d400>, <Element a at 0x7252f9d450>]
1245
1189
  False
1246
1190
  ```
1247
1191
 
@@ -1303,7 +1247,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
1303
1247
 
1304
1248
  Output:
1305
1249
  ```py
1306
- <generator object iscandir at 0x7384b48540>
1250
+ <generator object iscandir at 0x7252f50740>
1307
1251
  [PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
1308
1252
  ```
1309
1253
 
@@ -1340,68 +1284,68 @@ Output:
1340
1284
  'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
1341
1285
  'PintUregQuantity': <class 'pint.Quantity'>,
1342
1286
  'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
1343
- 'function': {'avg': <function avg at 0x7393816700>,
1344
- 'get_filemtime': <function get_filemtime at 0x738aecf2e0>,
1345
- 'print_colorize': <function print_colorize at 0x738aecf4c0>,
1346
- 'print_log': <function print_log at 0x738af92b60>,
1347
- 'console_run': <function console_run at 0x738aecf380>,
1348
- 'auto_reload': <function auto_reload at 0x738aebbec0>,
1349
- 'basename': <function basename at 0x738aecf240>,
1350
- 'chr_to_int': <function chr_to_int at 0x738aecfa60>,
1351
- 'int_to_chr': <function int_to_chr at 0x738aecfb00>,
1352
- 'irange': <function irange at 0x738aecf920>,
1353
- 'batchmaker': <function batchmaker at 0x738aecf740>,
1354
- 'calculate': <function calculate at 0x738aecfba0>,
1355
- 'batch_calculate': <function batch_calculate at 0x738aecf600>,
1356
- 'is_iterable': <function is_iterable at 0x738aecfc40>,
1357
- 'print_to_last_line': <function print_to_last_line at 0x738aecfce0>,
1358
- 'text_colorize': <function text_colorize at 0x738aecfd80>,
1359
- 'choices': <function choices at 0x738aecf6a0>,
1360
- 'chunk_array': <function chunk_array at 0x738aecf7e0>,
1361
- 'create_folder': <function create_folder at 0x738aecfe20>,
1362
- 'datetime_from_string': <function datetime_from_string at 0x738aecfec0>,
1363
- 'datetime_now': <function datetime_now at 0x738aecff60>,
1364
- 'dict_first': <function dict_first at 0x738acf8040>,
1365
- 'dirname': <function dirname at 0x738acf80e0>,
1366
- 'is_empty': <function is_empty at 0x738acf82c0>,
1367
- 'exit_if_empty': <function exit_if_empty at 0x738aecf560>,
1368
- 'to_str': <function to_str at 0x738acf8400>,
1369
- 'filter_empty': <function filter_empty at 0x738acf8180>,
1370
- 'get_by_index': <function get_by_index at 0x738acf8360>,
1371
- 'get_class_method': <function get_class_method at 0x738acf84a0>,
1372
- 'get_filesize': <function get_filesize at 0x738acf85e0>,
1373
- 'github_pull': <function github_pull at 0x738acf8680>,
1374
- 'github_push': <function github_push at 0x738acf8860>,
1375
- 'github_user': <function github_user at 0x738acf8900>,
1376
- 'iargv': <function iargv at 0x738acf8720>,
1377
- 'idumps_html': <function idumps_html at 0x738acf8b80>,
1378
- 'idumps': <function idumps at 0x738acf8a40>,
1379
- 'ienv': <function ienv at 0x738acf9080>,
1380
- 'iexec': <function iexec at 0x738add13a0>,
1381
- 'ijoin': <function ijoin at 0x738add1580>,
1382
- 'iloads_html': <function iloads_html at 0x738add1760>,
1383
- 'iloads': <function iloads at 0x738add14e0>,
1384
- 'input_char': <function input_char at 0x738add16c0>,
1385
- 'is_valid_url': <function is_valid_url at 0x738add1940>,
1386
- 'iopen': <function iopen at 0x738abd9da0>,
1387
- 'iprint': <function iprint at 0x738add18a0>,
1388
- 'ireplace': <function ireplace at 0x738add1c60>,
1389
- 'iscandir': <function iscandir at 0x738ac9d4e0>,
1390
- 'isplit': <function isplit at 0x738ac9d580>,
1391
- 'ivars': <function ivars at 0x738ac9d620>,
1392
- 'log': <function log at 0x738ac9d6c0>,
1393
- 'password_generator': <function password_generator at 0x738ac9d760>,
1394
- 'pip_freeze_without_version': <function pip_freeze_without_version at 0x738ac9d8a0>,
1395
- 'poetry_publish': <function poetry_publish at 0x738ac9d940>,
1396
- 'poetry_update_version': <function poetry_update_version at 0x738ac9da80>,
1397
- 'print_dir': <function print_dir at 0x738ac9dc60>,
1398
- 'random_bool': <function random_bool at 0x738ac9dd00>,
1399
- 'restart': <function restart at 0x738ac9dda0>,
1400
- 'set_timeout': <function set_timeout at 0x738ac9de40>,
1401
- 'sets_ordered': <function sets_ordered at 0x738ac9dee0>,
1402
- 'str_cmp': <function str_cmp at 0x738ac9df80>},
1287
+ 'function': {'avg': <function avg at 0x725d0a2700>,
1288
+ 'get_filemtime': <function get_filemtime at 0x725830b2e0>,
1289
+ 'print_colorize': <function print_colorize at 0x725830b4c0>,
1290
+ 'print_log': <function print_log at 0x725859ab60>,
1291
+ 'console_run': <function console_run at 0x725830b380>,
1292
+ 'auto_reload': <function auto_reload at 0x72584c3ec0>,
1293
+ 'basename': <function basename at 0x725830b240>,
1294
+ 'chr_to_int': <function chr_to_int at 0x725830b9c0>,
1295
+ 'int_to_chr': <function int_to_chr at 0x725830ba60>,
1296
+ 'irange': <function irange at 0x725830b880>,
1297
+ 'batchmaker': <function batchmaker at 0x725830b740>,
1298
+ 'calculate': <function calculate at 0x725830bce0>,
1299
+ 'batch_calculate': <function batch_calculate at 0x725830b600>,
1300
+ 'is_iterable': <function is_iterable at 0x725830bd80>,
1301
+ 'print_to_last_line': <function print_to_last_line at 0x725830be20>,
1302
+ 'text_colorize': <function text_colorize at 0x725830bec0>,
1303
+ 'choices': <function choices at 0x725830b6a0>,
1304
+ 'chunk_array': <function chunk_array at 0x725830b7e0>,
1305
+ 'create_folder': <function create_folder at 0x725830bf60>,
1306
+ 'datetime_from_string': <function datetime_from_string at 0x72582fc040>,
1307
+ 'datetime_now': <function datetime_now at 0x72582fc0e0>,
1308
+ 'dict_first': <function dict_first at 0x72582fc180>,
1309
+ 'dirname': <function dirname at 0x72582fc220>,
1310
+ 'is_empty': <function is_empty at 0x72582fc400>,
1311
+ 'exit_if_empty': <function exit_if_empty at 0x725830b560>,
1312
+ 'to_str': <function to_str at 0x72582fc540>,
1313
+ 'filter_empty': <function filter_empty at 0x72582fc2c0>,
1314
+ 'get_by_index': <function get_by_index at 0x72582fc4a0>,
1315
+ 'get_class_method': <function get_class_method at 0x72582fc5e0>,
1316
+ 'get_filesize': <function get_filesize at 0x72582fc720>,
1317
+ 'github_pull': <function github_pull at 0x72582fc7c0>,
1318
+ 'github_push': <function github_push at 0x72582fc9a0>,
1319
+ 'github_user': <function github_user at 0x72582fca40>,
1320
+ 'iargv': <function iargv at 0x72582fc860>,
1321
+ 'idumps_html': <function idumps_html at 0x72582fccc0>,
1322
+ 'idumps': <function idumps at 0x72582fcb80>,
1323
+ 'ienv': <function ienv at 0x72582fd1c0>,
1324
+ 'iexec': <function iexec at 0x72583d94e0>,
1325
+ 'ijoin': <function ijoin at 0x72583d96c0>,
1326
+ 'iloads_html': <function iloads_html at 0x72583d98a0>,
1327
+ 'iloads': <function iloads at 0x72583d9620>,
1328
+ 'input_char': <function input_char at 0x72583d9800>,
1329
+ 'is_valid_url': <function is_valid_url at 0x72583d9a80>,
1330
+ 'iopen': <function iopen at 0x72581f1ee0>,
1331
+ 'iprint': <function iprint at 0x72583d99e0>,
1332
+ 'ireplace': <function ireplace at 0x72583d9da0>,
1333
+ 'iscandir': <function iscandir at 0x72582ad620>,
1334
+ 'isplit': <function isplit at 0x72582ad6c0>,
1335
+ 'ivars': <function ivars at 0x72582ad760>,
1336
+ 'log': <function log at 0x72582ad800>,
1337
+ 'password_generator': <function password_generator at 0x72582ad8a0>,
1338
+ 'pip_freeze_without_version': <function pip_freeze_without_version at 0x72582ad9e0>,
1339
+ 'poetry_publish': <function poetry_publish at 0x72582ada80>,
1340
+ 'poetry_update_version': <function poetry_update_version at 0x72582adbc0>,
1341
+ 'print_dir': <function print_dir at 0x72582adda0>,
1342
+ 'random_bool': <function random_bool at 0x72582ade40>,
1343
+ 'restart': <function restart at 0x72582adee0>,
1344
+ 'set_timeout': <function set_timeout at 0x72582adf80>,
1345
+ 'sets_ordered': <function sets_ordered at 0x72582ae020>,
1346
+ 'str_cmp': <function str_cmp at 0x72582ae0c0>},
1403
1347
  'variable': {'LINUX': True,
1404
- 'PintUreg': <pint.registry.UnitRegistry object at 0x73939fbf50>,
1348
+ 'PintUreg': <pint.registry.UnitRegistry object at 0x725d0a8450>,
1405
1349
  'WINDOWS': False},
1406
1350
  'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
1407
1351
  'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
@@ -1475,7 +1419,7 @@ print(password_generator())
1475
1419
 
1476
1420
  Output:
1477
1421
  ```py
1478
- br3+8mbt
1422
+ Ym}9H"{5
1479
1423
  ```
1480
1424
 
1481
1425
  ## pip_freeze_without_version
@@ -1533,7 +1477,7 @@ Output:
1533
1477
  __enter__ : https:/www.google.com
1534
1478
  __fspath__ : https:/www.google.com
1535
1479
  __getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
1536
- __hash__ : 9538007634898831
1480
+ __hash__ : 3977985606964424013
1537
1481
  __init__ : None
1538
1482
  __init_subclass__ : None
1539
1483
  __module__ : pathlib
@@ -1546,8 +1490,8 @@ Output:
1546
1490
  _cached_cparts : ['https:', 'www.google.com']
1547
1491
  _cparts : ['https:', 'www.google.com']
1548
1492
  _drv :
1549
- _flavour : <pathlib._PosixFlavour object at 0x73966307d0>
1550
- _hash : 9538007634898831
1493
+ _flavour : <pathlib._PosixFlavour object at 0x7262454610>
1494
+ _hash : 3977985606964424013
1551
1495
  _parts : ['https:', 'www.google.com']
1552
1496
  _root :
1553
1497
  _str : https:/www.google.com
@@ -1569,7 +1513,7 @@ Output:
1569
1513
  is_reserved : False
1570
1514
  is_socket : False
1571
1515
  is_symlink : False
1572
- iterdir : <generator object Path.iterdir at 0x7384b51fc0>
1516
+ iterdir : <generator object Path.iterdir at 0x7252f59fc0>
1573
1517
  joinpath : https:/www.google.com
1574
1518
  name : www.google.com
1575
1519
  parent : https:
@@ -1597,7 +1541,7 @@ print(random_bool())
1597
1541
 
1598
1542
  Output:
1599
1543
  ```py
1600
- False
1544
+ True
1601
1545
  ```
1602
1546
 
1603
1547
  ## restart
@@ -1623,7 +1567,7 @@ x.cancel()
1623
1567
 
1624
1568
  Output:
1625
1569
  ```py
1626
- <Timer(Thread-2, started 496119037168)>
1570
+ <Timer(Thread-2, started 490989403376)>
1627
1571
  menghentikan timeout 7
1628
1572
  ```
1629
1573
 
@@ -1641,7 +1585,7 @@ print(list(sets_ordered(array)))
1641
1585
 
1642
1586
  Output:
1643
1587
  ```py
1644
- <generator object sets_ordered at 0x7384b70a00>
1588
+ <generator object sets_ordered at 0x7252f78ad0>
1645
1589
  [2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
1646
1590
  ```
1647
1591
 
@@ -1716,7 +1660,7 @@ print(ExampleComparePerformance().compare_performance())
1716
1660
 
1717
1661
  Output:
1718
1662
  ```py
1719
- {'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7384b70450>,
1663
+ {'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7252f78520>,
1720
1664
  'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
1721
1665
  'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
1722
1666
  'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
@@ -16,6 +16,13 @@ def auto_reload(filename):
16
16
  ```py
17
17
  if __name__ == "__main__":
18
18
  auto_reload("file_name.py")
19
+
20
+ ```
21
+
22
+ or run in terminal
23
+
24
+ ```
25
+ pypipr auto_reload
19
26
  ```
20
27
  """
21
28
  mtime = get_filemtime(filename)
@@ -27,7 +34,6 @@ def auto_reload(filename):
27
34
  while True:
28
35
  last_mtime = mtime
29
36
  console_run(cmd, print_info=False)
30
- # subprocess.run(cmd, shell=True)
31
37
  while mtime == last_mtime:
32
38
  time.sleep(1)
33
39
  mtime = get_filemtime(filename)