pypipr 1.0.117__tar.gz → 1.0.119__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.117 → pypipr-1.0.119}/PKG-INFO +230 -146
  2. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/__init__.py +3 -0
  3. pypipr-1.0.119/pypipr/bin_to_int.py +12 -0
  4. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/choices.py +1 -0
  5. pypipr-1.0.119/pypipr/hex_to_int.py +12 -0
  6. pypipr-1.0.119/pypipr/oct_to_int.py +12 -0
  7. {pypipr-1.0.117 → pypipr-1.0.119}/pyproject.toml +1 -1
  8. {pypipr-1.0.117 → pypipr-1.0.119}/readme.md +229 -145
  9. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/APIMixinView.py +0 -0
  10. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/ComparePerformance.py +0 -0
  11. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/LINUX.py +0 -0
  12. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/PintUreg.py +0 -0
  13. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/PintUregQuantity.py +0 -0
  14. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/RunParallel.py +0 -0
  15. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/WINDOWS.py +0 -0
  16. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/__terminal__.py +0 -0
  17. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/auto_reload.py +0 -0
  18. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/avg.py +0 -0
  19. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/basename.py +0 -0
  20. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/batch_calculate.py +0 -0
  21. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/batchmaker.py +0 -0
  22. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/calculate.py +0 -0
  23. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/choices.py.bak +0 -0
  24. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/chr_to_int.py +0 -0
  25. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/chunk_array.py +0 -0
  26. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/console_run.py +0 -0
  27. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/create_folder.py +0 -0
  28. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/datetime_from_string.py +0 -0
  29. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/datetime_now.py +0 -0
  30. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/dict_first.py +0 -0
  31. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/dirname.py +0 -0
  32. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/exit_if_empty.py +0 -0
  33. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/filter_empty.py +0 -0
  34. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/get_by_index.py +0 -0
  35. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/get_class_method.py +0 -0
  36. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/get_filemtime.py +0 -0
  37. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/get_filesize.py +0 -0
  38. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/github_pull.py +0 -0
  39. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/github_push.py +0 -0
  40. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/github_user.py +0 -0
  41. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/iargv.py +0 -0
  42. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/idumps.py +0 -0
  43. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/idumps_html.py +0 -0
  44. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/ienumerate.py +0 -0
  45. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/ienv.py +0 -0
  46. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/iexec.py +0 -0
  47. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/ijoin.py +0 -0
  48. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/iloads.py +0 -0
  49. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/iloads_html.py +0 -0
  50. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/input_char.py +0 -0
  51. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/int_to_bin.py +0 -0
  52. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/int_to_chr.py +0 -0
  53. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/int_to_hex.py +0 -0
  54. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/int_to_int.py +0 -0
  55. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/int_to_oct.py +0 -0
  56. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/iopen.py +0 -0
  57. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/iprint.py +0 -0
  58. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/irange.py +0 -0
  59. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/ireplace.py +0 -0
  60. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/is_empty.py +0 -0
  61. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/is_iterable.py +0 -0
  62. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/is_valid_url.py +0 -0
  63. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/iscandir.py +0 -0
  64. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/isplit.py +0 -0
  65. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/ivars.py +0 -0
  66. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/log.py +0 -0
  67. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/password_generator.py +0 -0
  68. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/pip_freeze_without_version.py +0 -0
  69. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/poetry_publish.py +0 -0
  70. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/poetry_update_version.py +0 -0
  71. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/print_colorize.py +0 -0
  72. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/print_dir.py +0 -0
  73. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/print_log.py +0 -0
  74. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/print_to_last_line.py +0 -0
  75. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/random_bool.py +0 -0
  76. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/restart.py +0 -0
  77. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/set_timeout.py +0 -0
  78. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/sets_ordered.py +0 -0
  79. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/str_cmp.py +0 -0
  80. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/text_colorize.py +0 -0
  81. {pypipr-1.0.117 → pypipr-1.0.119}/pypipr/to_str.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypipr
3
- Version: 1.0.117
3
+ Version: 1.0.119
4
4
  Summary: The Python Package Index Project
5
5
  Author: ufiapjj
6
6
  Author-email: ufiapjj@gmail.com
@@ -250,8 +250,8 @@ iprint(irange("z", "a", 4))
250
250
 
251
251
  Output:
252
252
  ```py
253
- <generator object int_range at 0x764f2f0540>
254
- <generator object int_range at 0x764f2f0540>
253
+ <generator object int_range at 0x74077c8540>
254
+ <generator object int_range at 0x74077c8540>
255
255
  [13, 12, 11, 10, 9, 8, 7, 6]
256
256
  [2, 5, 8]
257
257
  [2, 5, 8]
@@ -283,7 +283,7 @@ print(list(batchmaker(s)))
283
283
 
284
284
  Output:
285
285
  ```py
286
- <generator object batchmaker at 0x764f2e43a0>
286
+ <generator object batchmaker at 0x74077bc3a0>
287
287
  ['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
288
  ```
289
289
 
@@ -337,10 +337,26 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
337
337
 
338
338
  Output:
339
339
  ```py
340
- <generator object batch_calculate at 0x764f26b010>
340
+ <generator object batch_calculate at 0x740773f010>
341
341
  [('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
342
  ```
343
343
 
344
+ ## bin_to_int
345
+
346
+ `bin_to_int(n)`
347
+
348
+ Fungsi ini berguna untuk mengubah angka binary
349
+ menjadi angka integer.
350
+
351
+ ```python
352
+ print(bin_to_int(bin(244)))
353
+ ```
354
+
355
+ Output:
356
+ ```py
357
+ 244
358
+ ```
359
+
344
360
  ## is_empty
345
361
 
346
362
  `is_empty(variable, empty=[None, False, 0, 0, '0', '', '-0', '\n', '\t', set(), {}, [], ()])`
@@ -449,7 +465,7 @@ print(list(chunk_array(arr, 5)))
449
465
 
450
466
  Output:
451
467
  ```py
452
- <generator object chunk_array at 0x764f2f0540>
468
+ <generator object chunk_array at 0x74077c8540>
453
469
  [[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
454
470
  ```
455
471
 
@@ -500,9 +516,9 @@ print(datetime_now("Etc/GMT+7"))
500
516
 
501
517
  Output:
502
518
  ```py
503
- 2024-05-01 07:46:29.835163+07:00
504
- 2024-05-01 00:46:29.836024+00:00
505
- 2024-04-30 17:46:29.837421-07:00
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
506
522
  ```
507
523
 
508
524
  ## dict_first
@@ -608,7 +624,7 @@ iprint(filter_empty(var))
608
624
 
609
625
  Output:
610
626
  ```py
611
- <generator object filter_empty at 0x764f26b010>
627
+ <generator object filter_empty at 0x740773d5d0>
612
628
  [1, '0', True, {}, ['eee']]
613
629
  ```
614
630
 
@@ -638,8 +654,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
638
654
 
639
655
  Output:
640
656
  ```py
641
- <generator object get_class_method at 0x764f26b2e0>
642
- [<function ExampleGetClassMethod.a at 0x764f3091c0>, <function ExampleGetClassMethod.b at 0x764f3093a0>, <function ExampleGetClassMethod.c at 0x764f3094e0>, <function ExampleGetClassMethod.d at 0x764f309580>]
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>]
643
659
  ```
644
660
 
645
661
  ## get_filesize
@@ -688,6 +704,22 @@ menginput nya setiap saat.
688
704
  github_user('my@emil.com', 'MyName')
689
705
  ```
690
706
 
707
+ ## hex_to_int
708
+
709
+ `hex_to_int(n)`
710
+
711
+ Fungsi ini berguna untuk mengubah angka hexadecimal
712
+ menjadi angka integer.
713
+
714
+ ```python
715
+ print(hex_to_int(hex(244)))
716
+ ```
717
+
718
+ Output:
719
+ ```py
720
+ 244
721
+ ```
722
+
691
723
  ## iargv
692
724
 
693
725
  `iargv(key: int, cast=None, on_error=None)`
@@ -893,7 +925,7 @@ Output:
893
925
 
894
926
  ## ienumerate
895
927
 
896
- `ienumerate(iterator, start=0, key=<function int_to_int at 0x7653195e40>)`
928
+ `ienumerate(iterator, start=0, key=<function int_to_int at 0x740fd21ee0>)`
897
929
 
898
930
  meningkatkan fungsi enumerate() pada python
899
931
  untuk key menggunakan huruf dan basis angka lainnya.
@@ -906,7 +938,7 @@ iprint(ienumerate(it, key=int_to_chr))
906
938
 
907
939
  Output:
908
940
  ```py
909
- <generator object ienumerate at 0x764f26b2e0>
941
+ <generator object ienumerate at 0x740773f3d0>
910
942
  [('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
911
943
  ```
912
944
 
@@ -973,7 +1005,7 @@ print(ijoin(10, ' '))
973
1005
 
974
1006
  Output:
975
1007
  ```py
976
- dfs, qweqw, asd, weq
1008
+ qweqw, dfs, weq, asd
977
1009
  ,ini,path,seperti,url,
978
1010
  ini,path,seperti,url
979
1011
  <li>satu</li>
@@ -1019,50 +1051,83 @@ Output:
1019
1051
  ```py
1020
1052
  (['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
1021
1053
  [['Harga Emas Hari Ini - Rabu, 01 Mei 2024'],
1022
- ['Spot Emas USD↓2.288,71 (-7,31) / oz',
1054
+ ['Spot Emas USD↓2.288,05 (-7,97) / oz',
1023
1055
  'Kurs IDR16.249,00 / USD',
1024
- 'Emas IDR↓1.195.662 (-3.819) / gr'],
1025
- ['LM Antam (Jual)1.325.000 / gr', 'LM Antam (Beli)1.221.000 / gr']],
1056
+ 'Emas IDR↓1.195.317 (-4.164) / gr'],
1057
+ ['LM Antam (Jual)1.310.000 (-15.000) / gr',
1058
+ 'LM Antam (Beli)↓1.204.000 (-17.000) / gr']],
1026
1059
  [['Harga Emas Hari Ini'],
1027
1060
  ['Gram', 'Gedung Antam Jakarta', 'Pegadaian'],
1028
1061
  ['per Gram (Rp)', 'per Batangan (Rp)', 'per Gram (Rp)', 'per Batangan (Rp)'],
1029
1062
  ['1000',
1030
- '1.266',
1031
- '1.265.600',
1063
+ '1.251 (-15)',
1064
+ '1.250.600 (-15.000)',
1032
1065
  '1.043.040 (+8.200)',
1033
1066
  '1.043.040.000 (+8.200.000)'],
1034
1067
  ['500',
1035
- '2.531',
1036
- '1.265.640',
1068
+ '2.501 (-30)',
1069
+ '1.250.640 (-15.000)',
1037
1070
  '1.043.082 (+8.200)',
1038
1071
  '521.541.000 (+4.100.000)'],
1039
1072
  ['250',
1040
- '5.064',
1041
- '1.266.060',
1073
+ '5.004 (-60)',
1074
+ '1.251.060 (-15.000)',
1042
1075
  '1.043.512 (+8.200)',
1043
1076
  '260.878.000 (+2.050.000)'],
1044
1077
  ['100',
1045
- '12.671',
1046
- '1.267.120',
1078
+ '12.521 (-150)',
1079
+ '1.252.120 (-15.000)',
1047
1080
  '1.044.600 (+8.200)',
1048
1081
  '104.460.000 (+820.000)'],
1049
- ['50', '25.358', '1.267.900', '1.045.400 (+8.200)', '52.270.000 (+410.000)'],
1050
- ['25', '50.779', '1.269.480', '1.047.040 (+8.200)', '26.176.000 (+205.000)'],
1051
- ['10', '127.450', '1.274.500', '1.052.200 (+8.200)', '10.522.000 (+82.000)'],
1052
- ['5', '256.000', '1.280.000', '1.057.800 (+8.200)', '5.289.000 (+41.000)'],
1053
- ['3', '428.889', '1.286.667', '1.064.667 (+8.000)', '3.194.000 (+24.000)'],
1054
- ['2', '647.500', '1.295.000', '1.073.500 (+8.500)', '2.147.000 (+17.000)'],
1055
- ['1', '1.325.000', '1.325.000', '1.104.000 (+8.000)', '1.104.000 (+8.000)'],
1056
- ['0.5', '2.850.000', '1.425.000', '1.208.000 (+8.000)', '604.000 (+4.000)'],
1057
- ['Update harga LM Antam :30 April 2024, pukul 08:19Harga pembelian kembali '
1058
- ':Rp. 1.221.000/gram',
1082
+ ['50',
1083
+ '25.058 (-300)',
1084
+ '1.252.900 (-15.000)',
1085
+ '1.045.400 (+8.200)',
1086
+ '52.270.000 (+410.000)'],
1087
+ ['25',
1088
+ '50.179 (-600)',
1089
+ '1.254.480 (-15.000)',
1090
+ '1.047.040 (+8.200)',
1091
+ '26.176.000 (+205.000)'],
1092
+ ['10',
1093
+ '125.950 (-1.500)',
1094
+ '1.259.500 (-15.000)',
1095
+ '1.052.200 (+8.200)',
1096
+ '10.522.000 (+82.000)'],
1097
+ ['5',
1098
+ '253.000 (-3.000)',
1099
+ '1.265.000 (-15.000)',
1100
+ '1.057.800 (+8.200)',
1101
+ '5.289.000 (+41.000)'],
1102
+ ['3',
1103
+ '423.889 (-5.000)',
1104
+ '1.271.667 (-15.000)',
1105
+ '1.064.667 (+8.000)',
1106
+ '3.194.000 (+24.000)'],
1107
+ ['2',
1108
+ '640.000 (-7.500)',
1109
+ '1.280.000 (-15.000)',
1110
+ '1.073.500 (+8.500)',
1111
+ '2.147.000 (+17.000)'],
1112
+ ['1',
1113
+ '1.310.000 (-15.000)',
1114
+ '1.310.000 (-15.000)',
1115
+ '1.104.000 (+8.000)',
1116
+ '1.104.000 (+8.000)'],
1117
+ ['0.5',
1118
+ '2.820.000 (-30.000)',
1119
+ '1.410.000 (-15.000)',
1120
+ '1.208.000 (+8.000)',
1121
+ '604.000 (+4.000)'],
1122
+ ['Update harga LM Antam :01 Mei 2024, pukul 08:20Harga pembelian kembali '
1123
+ ':Rp. 1.204.000/gram (-17.000)',
1059
1124
  'Update harga LM Pegadaian :31 Agustus 2023']],
1060
1125
  [['Spot Harga Emas Hari Ini (Market Open)'],
1061
1126
  ['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
1062
- ['Ounce\xa0(oz)', '2.288,71 (-7,31)', '16.249,00', '37.189.249'],
1063
- ['Gram\xa0(gr)', '73,58', '16.249,00', '1.195.662 (-3.819)'],
1064
- ['Kilogram\xa0(kg)', '73.583,74', '16.249,00', '1.195.662.114'],
1065
- ['Update harga emas :01 Mei 2024, pukul 07:46Update kurs :30 April 2024, '
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, '
1066
1131
  'pukul 13:10']],
1067
1132
  [['Gram', 'UBS Gold 99.99%'],
1068
1133
  ['Jual', 'Beli'],
@@ -1084,36 +1149,36 @@ Output:
1084
1149
  ['Unit', 'USD', 'IDR'],
1085
1150
  ['Angka', '+/-', 'Angka', '+/-'],
1086
1151
  ['Hari Ini', 'Kurs', '', '', '16.249', '%'],
1087
- ['oz', '2.296,02', '-7,31-0,32%', '37.308.029', '-118.780-0,32%'],
1088
- ['gr', '73,82', '-0,24-0,32%', '1.199.481', '-3.819-0,32%'],
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%'],
1089
1154
  ['30 Hari', 'Kurs', '', '', '15.873', '+376+2,37%'],
1090
- ['oz', '2.239,34', '+49,37+2,20%', '35.545.044', '+1.644.205+4,63%'],
1091
- ['gr', '72,00', '+1,59+2,20%', '1.142.800', '+52.862+4,63%'],
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%'],
1092
1157
  ['2 Bulan', 'Kurs', '', '', '15.715', '+534+3,40%'],
1093
- ['oz', '2.082,55', '+206,16+9,90%', '32.727.273', '+4.461.976+13,63%'],
1094
- ['gr', '66,96', '+6,63+9,90', '1.052.206', '+143.456+13,63%'],
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%'],
1095
1160
  ['6 Bulan', 'Kurs', '', '', '15.861', '+388+2,45%'],
1096
- ['oz', '1.990,54', '+298,17+14,98%', '31.571.955', '+5.617.294+17,79%'],
1097
- ['gr', '64,00', '+9,59+14,98%', '1.015.062', '+180.600+17,79%'],
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%'],
1098
1163
  ['1 Tahun', 'Kurs', '', '', '15.731', '+518+3,29%'],
1099
- ['oz', '1.823,86', '+464,85+25,49%', '28.691.142', '+8.498.107+29,62%'],
1100
- ['gr', '58,64', '+14,95+25,49%', '922.442', '+273.220+29,62%'],
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%'],
1101
1166
  ['2 Tahun', 'Kurs', '', '', '14.418', '+1.831+12,70%'],
1102
- ['oz', '1.867,23', '+421,48+22,57%', '26.921.722', '+10.267.527+38,14%'],
1103
- ['gr', '60,03', '+13,55+22,57%', '865.553', '+330.109+38,14%'],
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%'],
1104
1169
  ['3 Tahun', 'Kurs', '', '', '14.468', '+1.781+12,31%'],
1105
- ['oz', '1.768,91', '+519,80+29,39%', '25.592.590', '+11.596.659+45,31%'],
1106
- ['gr', '56,87', '+16,71+29,39%', '822.821', '+372.841+45,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%'],
1107
1172
  ['5 Tahun', 'Kurs', '', '', '14.282', '+1.967+13,77%'],
1108
- ['oz', '1.280,82', '+1.007,89+78,69%', '18.292.671', '+18.896.578+103,30%'],
1109
- ['gr', '41,18', '+32,40+78,69%', '588.123', '+607.539+103,30%']])
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%']])
1110
1175
  (['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
1111
1176
  [[''],
1112
1177
  ['Emas 24 KaratHarga Emas 1 Gram', ''],
1113
- ['USD', '73,58↓', '-0,24-0,33%'],
1114
- ['KURS', '16.264,05↑', '+3,05+0,02%'],
1115
- ['IDR', '1.196.769,55↓', '-3.597,26-0,30%'],
1116
- ['Rabu, 01 Mei 2024 07:46']],
1178
+ ['USD', '73,56↓', '-0,26-0,35%'],
1179
+ ['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']],
1117
1182
  [[''],
1118
1183
  ['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
1119
1184
  'Hari Ini',
@@ -1124,19 +1189,19 @@ Output:
1124
1189
  '']],
1125
1190
  [['Pergerakkan Harga Emas 1 Gram'],
1126
1191
  ['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
1127
- ['USD', '73,82', '73,58 - 73,82', '73,70'],
1128
- ['KURS', '16.261,00', '16.261,00 - 16.264,05', '16.262,53'],
1129
- ['IDR', '1.200.366,81', '1.196.769,55 - 1.200.366,81', '1.198.568,18'],
1192
+ ['USD', '73,82', '73,56 - 73,82', '73,69'],
1193
+ ['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'],
1130
1195
  [''],
1131
1196
  ['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
1132
- ['USD', '66,32', '64,07 - 77,14', '+7,26 (10,95%)'],
1133
- ['KURS', '15.390,10', '15.390,00 - 16.307,80', '+873,95 (5,68%)'],
1134
- ['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+176.040,02 (17,25%)'],
1197
+ ['USD', '66,32', '64,07 - 77,14', '+7,24 (10,92%)'],
1198
+ ['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%)'],
1135
1200
  [''],
1136
1201
  ['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
1137
- ['USD', '63,97', '58,43 - 77,14', '+9,61 (15,02%)'],
1138
- ['KURS', '14.673,55', '14.669,40 - 16.307,80', '+1.590,50 (10,84%)'],
1139
- ['IDR', '938.709,73', '912.925,68 - 1.256.829,06', '+258.059,82 (27,49%)']])
1202
+ ['USD', '63,97', '58,43 - 77,14', '+9,59 (14,99%)'],
1203
+ ['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%)']])
1140
1205
  ```
1141
1206
 
1142
1207
  ## iloads
@@ -1266,7 +1331,7 @@ Output:
1266
1331
  ```py
1267
1332
  8
1268
1333
  ['mana', 'aja']
1269
- [<Element a at 0x764f306c10>, <Element a at 0x764f33cff0>, <Element a at 0x764f33d090>, <Element a at 0x764f33d0e0>, <Element a at 0x764f33d130>, <Element a at 0x764f33d180>, <Element a at 0x764f33d1d0>, <Element a at 0x764f33d220>, <Element a at 0x764f33d270>, <Element a at 0x764f33d2c0>, <Element a at 0x764f33d310>, <Element a at 0x764f33d360>, <Element a at 0x764f33d3b0>, <Element a at 0x764f33d400>, <Element a at 0x764f33d450>, <Element a at 0x764f33d4a0>, <Element a at 0x764f33d4f0>, <Element a at 0x764f33d540>]
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>]
1270
1335
  False
1271
1336
  ```
1272
1337
 
@@ -1328,7 +1393,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
1328
1393
 
1329
1394
  Output:
1330
1395
  ```py
1331
- <generator object iscandir at 0x764f2f0840>
1396
+ <generator object iscandir at 0x74077c8840>
1332
1397
  [PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
1333
1398
  ```
1334
1399
 
@@ -1365,73 +1430,76 @@ Output:
1365
1430
  'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
1366
1431
  'PintUregQuantity': <class 'pint.Quantity'>,
1367
1432
  'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
1368
- 'function': {'avg': <function avg at 0x765cea2700>,
1369
- 'get_filemtime': <function get_filemtime at 0x76532972e0>,
1370
- 'print_colorize': <function print_colorize at 0x76532974c0>,
1371
- 'print_log': <function print_log at 0x7653346b60>,
1372
- 'console_run': <function console_run at 0x7653297380>,
1373
- 'auto_reload': <function auto_reload at 0x765327fec0>,
1374
- 'basename': <function basename at 0x7653297240>,
1375
- 'chr_to_int': <function chr_to_int at 0x7653297a60>,
1376
- 'int_to_chr': <function int_to_chr at 0x7653297b00>,
1377
- 'irange': <function irange at 0x7653297d80>,
1378
- 'batchmaker': <function batchmaker at 0x7653297740>,
1379
- 'calculate': <function calculate at 0x76530bc2c0>,
1380
- 'batch_calculate': <function batch_calculate at 0x7653297600>,
1381
- 'is_empty': <function is_empty at 0x76530bc540>,
1382
- 'exit_if_empty': <function exit_if_empty at 0x76530bc400>,
1383
- 'input_char': <function input_char at 0x76530bc4a0>,
1384
- 'get_by_index': <function get_by_index at 0x76530bc5e0>,
1385
- 'choices': <function choices at 0x76530bc7c0>,
1386
- 'chunk_array': <function chunk_array at 0x76530bc860>,
1387
- 'create_folder': <function create_folder at 0x76530bc900>,
1388
- 'datetime_from_string': <function datetime_from_string at 0x76530bc9a0>,
1389
- 'datetime_now': <function datetime_now at 0x76530bca40>,
1390
- 'dict_first': <function dict_first at 0x76530bcae0>,
1391
- 'dirname': <function dirname at 0x76530bcb80>,
1392
- 'is_iterable': <function is_iterable at 0x76530bcd60>,
1393
- 'to_str': <function to_str at 0x76530bce00>,
1394
- 'filter_empty': <function filter_empty at 0x76530bcc20>,
1395
- 'get_class_method': <function get_class_method at 0x76530bccc0>,
1396
- 'get_filesize': <function get_filesize at 0x76530bcf40>,
1397
- 'github_pull': <function github_pull at 0x76530bcfe0>,
1398
- 'github_push': <function github_push at 0x76530bd1c0>,
1399
- 'github_user': <function github_user at 0x76530bd260>,
1400
- 'iargv': <function iargv at 0x76530bd080>,
1401
- 'idumps_html': <function idumps_html at 0x76530bd4e0>,
1402
- 'idumps': <function idumps at 0x76530bd3a0>,
1403
- 'int_to_int': <function int_to_int at 0x7653195e40>,
1404
- 'ienumerate': <function ienumerate at 0x76530bd9e0>,
1405
- 'ienv': <function ienv at 0x7653195d00>,
1406
- 'iexec': <function iexec at 0x7653195ee0>,
1407
- 'ijoin': <function ijoin at 0x7653196020>,
1408
- 'iloads_html': <function iloads_html at 0x7653196200>,
1409
- 'iloads': <function iloads at 0x7653195f80>,
1410
- 'int_to_bin': <function int_to_bin at 0x7653196160>,
1411
- 'int_to_hex': <function int_to_hex at 0x76531962a0>,
1412
- 'int_to_oct': <function int_to_oct at 0x7653196340>,
1413
- 'is_valid_url': <function is_valid_url at 0x7653196520>,
1414
- 'iopen': <function iopen at 0x7652f96980>,
1415
- 'iprint': <function iprint at 0x7653196480>,
1416
- 'ireplace': <function ireplace at 0x7653196840>,
1417
- 'iscandir': <function iscandir at 0x76530520c0>,
1418
- 'isplit': <function isplit at 0x7653052160>,
1419
- 'ivars': <function ivars at 0x7653052200>,
1420
- 'log': <function log at 0x76530522a0>,
1421
- 'password_generator': <function password_generator at 0x7653052340>,
1422
- 'pip_freeze_without_version': <function pip_freeze_without_version at 0x7653052480>,
1423
- 'poetry_publish': <function poetry_publish at 0x7653052520>,
1424
- 'poetry_update_version': <function poetry_update_version at 0x7653052660>,
1425
- 'print_dir': <function print_dir at 0x7653052840>,
1426
- 'print_to_last_line': <function print_to_last_line at 0x76530528e0>,
1427
- 'random_bool': <function random_bool at 0x7653052980>,
1428
- 'restart': <function restart at 0x7653052a20>,
1429
- 'set_timeout': <function set_timeout at 0x7653052ac0>,
1430
- 'sets_ordered': <function sets_ordered at 0x7653052b60>,
1431
- 'str_cmp': <function str_cmp at 0x7653052c00>,
1432
- 'text_colorize': <function text_colorize at 0x7653052ca0>},
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>},
1433
1501
  'variable': {'LINUX': True,
1434
- 'PintUreg': <pint.registry.UnitRegistry object at 0x765cea85d0>,
1502
+ 'PintUreg': <pint.registry.UnitRegistry object at 0x741857ca90>,
1435
1503
  'WINDOWS': False},
1436
1504
  'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
1437
1505
  'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
@@ -1493,6 +1561,22 @@ some_function_again()
1493
1561
  some_function_more()
1494
1562
  ```
1495
1563
 
1564
+ ## oct_to_int
1565
+
1566
+ `oct_to_int(n)`
1567
+
1568
+ Fungsi ini berguna untuk mengubah angka octal
1569
+ menjadi angka integer.
1570
+
1571
+ ```python
1572
+ print(oct_to_int(oct(244)))
1573
+ ```
1574
+
1575
+ Output:
1576
+ ```py
1577
+ 244
1578
+ ```
1579
+
1496
1580
  ## password_generator
1497
1581
 
1498
1582
  `password_generator(length=8, characters='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~')`
@@ -1505,7 +1589,7 @@ print(password_generator())
1505
1589
 
1506
1590
  Output:
1507
1591
  ```py
1508
- mu[nW(SF
1592
+ ].tfU}Rc
1509
1593
  ```
1510
1594
 
1511
1595
  ## pip_freeze_without_version
@@ -1563,7 +1647,7 @@ Output:
1563
1647
  __enter__ : https:/www.google.com
1564
1648
  __fspath__ : https:/www.google.com
1565
1649
  __getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
1566
- __hash__ : -8515626571815858843
1650
+ __hash__ : 7327379686933953002
1567
1651
  __init__ : None
1568
1652
  __init_subclass__ : None
1569
1653
  __module__ : pathlib
@@ -1576,8 +1660,8 @@ Output:
1576
1660
  _cached_cparts : ['https:', 'www.google.com']
1577
1661
  _cparts : ['https:', 'www.google.com']
1578
1662
  _drv :
1579
- _flavour : <pathlib._PosixFlavour object at 0x7662218b10>
1580
- _hash : -8515626571815858843
1663
+ _flavour : <pathlib._PosixFlavour object at 0x741cf0cb90>
1664
+ _hash : 7327379686933953002
1581
1665
  _parts : ['https:', 'www.google.com']
1582
1666
  _root :
1583
1667
  _str : https:/www.google.com
@@ -1599,7 +1683,7 @@ Output:
1599
1683
  is_reserved : False
1600
1684
  is_socket : False
1601
1685
  is_symlink : False
1602
- iterdir : <generator object Path.iterdir at 0x764f2f66c0>
1686
+ iterdir : <generator object Path.iterdir at 0x74077c2960>
1603
1687
  joinpath : https:/www.google.com
1604
1688
  name : www.google.com
1605
1689
  parent : https:
@@ -1639,7 +1723,7 @@ print(random_bool())
1639
1723
 
1640
1724
  Output:
1641
1725
  ```py
1642
- True
1726
+ False
1643
1727
  ```
1644
1728
 
1645
1729
  ## restart
@@ -1673,7 +1757,7 @@ x.cancel()
1673
1757
 
1674
1758
  Output:
1675
1759
  ```py
1676
- <Timer(Thread-2, started 508109683952)>
1760
+ <Timer(Thread-2, started 498316795120)>
1677
1761
  menghentikan timeout 7
1678
1762
  ```
1679
1763
 
@@ -1691,7 +1775,7 @@ print(list(sets_ordered(array)))
1691
1775
 
1692
1776
  Output:
1693
1777
  ```py
1694
- <generator object sets_ordered at 0x764f318e10>
1778
+ <generator object sets_ordered at 0x74077f1150>
1695
1779
  [2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
1696
1780
  ```
1697
1781
 
@@ -1785,7 +1869,7 @@ print(ExampleComparePerformance().compare_performance())
1785
1869
 
1786
1870
  Output:
1787
1871
  ```py
1788
- {'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x764f318930>,
1872
+ {'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x74077f0ba0>,
1789
1873
  'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
1790
1874
  'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
1791
1875
  'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
@@ -10,6 +10,7 @@ from .avg import avg
10
10
  from .basename import basename
11
11
  from .batch_calculate import batch_calculate
12
12
  from .batchmaker import batchmaker
13
+ from .bin_to_int import bin_to_int
13
14
  from .calculate import calculate
14
15
  from .choices import choices
15
16
  from .chr_to_int import chr_to_int
@@ -29,6 +30,7 @@ from .get_filesize import get_filesize
29
30
  from .github_pull import github_pull
30
31
  from .github_push import github_push
31
32
  from .github_user import github_user
33
+ from .hex_to_int import hex_to_int
32
34
  from .iargv import iargv
33
35
  from .idumps import idumps
34
36
  from .idumps_html import idumps_html
@@ -55,6 +57,7 @@ from .iscandir import iscandir
55
57
  from .isplit import isplit
56
58
  from .ivars import ivars
57
59
  from .log import log
60
+ from .oct_to_int import oct_to_int
58
61
  from .password_generator import password_generator
59
62
  from .pip_freeze_without_version import pip_freeze_without_version
60
63
  from .poetry_publish import poetry_publish
@@ -0,0 +1,12 @@
1
+ def bin_to_int(n):
2
+ """
3
+ Fungsi ini berguna untuk mengubah angka binary
4
+ menjadi angka integer.
5
+
6
+ ```python
7
+ print(bin_to_int(bin(244)))
8
+ ```
9
+ """
10
+ return int(n, 2)
11
+
12
+