pypipr 1.0.128__py3-none-any.whl → 1.0.130__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pypipr/__init__.py CHANGED
@@ -32,6 +32,7 @@ from .github_push import github_push
32
32
  from .github_user import github_user
33
33
  from .hex_to_int import hex_to_int
34
34
  from .iargv import iargv
35
+ from .idir import idir
35
36
  from .idumps import idumps
36
37
  from .idumps_html import idumps_html
37
38
  from .ienumerate import ienumerate
pypipr/choices.py CHANGED
@@ -1,9 +1,6 @@
1
1
  from .exit_if_empty import exit_if_empty
2
- from .print_colorize import print_colorize
3
2
  from .input_char import input_char
4
- from .get_by_index import get_by_index
5
-
6
-
3
+ from .print_colorize import print_colorize
7
4
 
8
5
 
9
6
  def print_choices(l):
@@ -18,16 +15,17 @@ def get_choices(prompt):
18
15
  return i
19
16
 
20
17
 
18
+ def convert_to_str(daftar):
19
+ if len(daftar) == 1:
20
+ daftar = daftar[0]
21
+ return daftar
22
+
23
+
21
24
  def filter_choices(contains, daftar):
22
25
  if contains.isdigit():
23
- # daftar = get_by_index(daftar, int(contains))
24
26
  daftar = [v for i, v in enumerate(daftar) if contains in str(i)]
25
27
  else:
26
28
  daftar = [v for v in daftar if contains in v]
27
-
28
- if len(daftar) == 1:
29
- daftar = get_by_index(daftar, 0)
30
-
31
29
  return daftar
32
30
 
33
31
 
@@ -55,10 +53,11 @@ def choices(daftar, contains=None, prompt="Choose : "):
55
53
  print(res)
56
54
  ```
57
55
  """
58
- daftar = list(v for v in daftar)
56
+ daftar = list(str(v) for v in daftar)
59
57
  while isinstance(daftar, list):
60
58
  contains = contains or get_contains(daftar, prompt)
61
59
  daftar = filter_choices(contains, daftar)
62
60
  exit_if_empty(daftar)
63
- contains = None if contains != daftar else daftar
61
+ daftar = convert_to_str(daftar)
62
+ contains = None
64
63
  return daftar
pypipr/idir.py ADDED
@@ -0,0 +1,16 @@
1
+ def idir(obj, skip_underscore=True):
2
+ """
3
+ Sama seperti dir() python, tetapi skip underscore
4
+
5
+ ```python
6
+ iprint(idir(__import__('pypipr')))
7
+ ```
8
+ """
9
+ r = []
10
+ for i in dir(obj):
11
+ if i.startswith("__") or i.endswith("__"):
12
+ if skip_underscore:
13
+ continue
14
+
15
+ r.append(i)
16
+ return r
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypipr
3
- Version: 1.0.128
3
+ Version: 1.0.130
4
4
  Summary: The Python Package Index Project
5
5
  Author: ufiapjj
6
6
  Author-email: ufiapjj@gmail.com
@@ -248,8 +248,8 @@ iprint(irange("z", "a", 4))
248
248
 
249
249
  Output:
250
250
  ```py
251
- <generator object int_range at 0x76b1e5f740>
252
- <generator object int_range at 0x76b1e5f740>
251
+ <generator object int_range at 0x776445f840>
252
+ <generator object int_range at 0x776445f840>
253
253
  [13, 12, 11, 10, 9, 8, 7, 6]
254
254
  [2, 5, 8]
255
255
  [2, 5, 8]
@@ -281,7 +281,7 @@ print(list(batchmaker(s)))
281
281
 
282
282
  Output:
283
283
  ```py
284
- <generator object batchmaker at 0x76b1b59c60>
284
+ <generator object batchmaker at 0x7764169c60>
285
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.']
286
286
  ```
287
287
 
@@ -335,7 +335,7 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
335
335
 
336
336
  Output:
337
337
  ```py
338
- <generator object batch_calculate at 0x76b1b69f30>
338
+ <generator object batch_calculate at 0x7764176020>
339
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')>)]
340
340
  ```
341
341
 
@@ -408,23 +408,6 @@ input_char("Input char : ", default='Y')
408
408
  input_char("Input Char without print : ", echo_char=False)
409
409
  ```
410
410
 
411
- ## get_by_index
412
-
413
- `get_by_index(obj, index, on_error=None)`
414
-
415
- Mendapatkan value dari object berdasarkan indexnya.
416
- Jika error out of range maka akan mengembalikan on_error.
417
-
418
- ```python
419
- l = [1, 3, 5]
420
- print(get_by_index(l, 7))
421
- ```
422
-
423
- Output:
424
- ```py
425
- None
426
- ```
427
-
428
411
  ## choices
429
412
 
430
413
  `choices(daftar, contains=None, prompt='Choose : ')`
@@ -458,7 +441,7 @@ print(list(chunk_array(arr, 5)))
458
441
 
459
442
  Output:
460
443
  ```py
461
- <generator object chunk_array at 0x76b1e5f740>
444
+ <generator object chunk_array at 0x776445f940>
462
445
  [[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
463
446
  ```
464
447
 
@@ -509,9 +492,9 @@ print(datetime_now("Etc/GMT+7"))
509
492
 
510
493
  Output:
511
494
  ```py
512
- 2024-05-07 20:13:38.464929+07:00
513
- 2024-05-07 13:13:38.466964+00:00
514
- 2024-05-07 06:13:38.471350-07:00
495
+ 2024-05-07 22:51:25.970341+07:00
496
+ 2024-05-07 15:51:25.971347+00:00
497
+ 2024-05-07 08:51:25.974497-07:00
515
498
  ```
516
499
 
517
500
  ## dict_first
@@ -617,10 +600,27 @@ iprint(filter_empty(var))
617
600
 
618
601
  Output:
619
602
  ```py
620
- <generator object filter_empty at 0x76b1b69c60>
603
+ <generator object filter_empty at 0x7764175d50>
621
604
  [1, '0', True, {}, ['eee']]
622
605
  ```
623
606
 
607
+ ## get_by_index
608
+
609
+ `get_by_index(obj, index, on_error=None)`
610
+
611
+ Mendapatkan value dari object berdasarkan indexnya.
612
+ Jika error out of range maka akan mengembalikan on_error.
613
+
614
+ ```python
615
+ l = [1, 3, 5]
616
+ print(get_by_index(l, 7))
617
+ ```
618
+
619
+ Output:
620
+ ```py
621
+ None
622
+ ```
623
+
624
624
  ## get_class_method
625
625
 
626
626
  `get_class_method(cls)`
@@ -647,8 +647,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
647
647
 
648
648
  Output:
649
649
  ```py
650
- <generator object get_class_method at 0x76b1b6a200>
651
- [<function ExampleGetClassMethod.a at 0x76b1bb9c60>, <function ExampleGetClassMethod.b at 0x76b1bb9bc0>, <function ExampleGetClassMethod.c at 0x76b1bb9a80>, <function ExampleGetClassMethod.d at 0x76b1bb9d00>]
650
+ <generator object get_class_method at 0x77641762f0>
651
+ [<function ExampleGetClassMethod.a at 0x77641c1bc0>, <function ExampleGetClassMethod.b at 0x77641c1b20>, <function ExampleGetClassMethod.c at 0x77641c1d00>, <function ExampleGetClassMethod.d at 0x77641c1da0>]
652
652
  ```
653
653
 
654
654
  ## get_filesize
@@ -749,6 +749,127 @@ Output:
749
749
  100
750
750
  ```
751
751
 
752
+ ## idir
753
+
754
+ `idir(obj, skip_underscore=True)`
755
+
756
+ Sama seperti dir() python, tetapi skip underscore
757
+
758
+ ```python
759
+ iprint(idir(__import__('pypipr')))
760
+ ```
761
+
762
+ Output:
763
+ ```py
764
+ ['ComparePerformance',
765
+ 'LINUX',
766
+ 'PintUreg',
767
+ 'PintUregQuantity',
768
+ 'RunParallel',
769
+ 'WINDOWS',
770
+ 'asyncio',
771
+ 'auto_reload',
772
+ 'avg',
773
+ 'basename',
774
+ 'batch_calculate',
775
+ 'batchmaker',
776
+ 'bin_to_int',
777
+ 'calculate',
778
+ 'choices',
779
+ 'chr_to_int',
780
+ 'chunk_array',
781
+ 'colorama',
782
+ 'console_run',
783
+ 'create_folder',
784
+ 'csv',
785
+ 'datetime',
786
+ 'datetime_from_string',
787
+ 'datetime_now',
788
+ 'dict_first',
789
+ 'dirname',
790
+ 'exit_if_empty',
791
+ 'filter_empty',
792
+ 'functools',
793
+ 'get_by_index',
794
+ 'get_class_method',
795
+ 'get_filemtime',
796
+ 'get_filesize',
797
+ 'github_init',
798
+ 'github_pull',
799
+ 'github_push',
800
+ 'github_user',
801
+ 'hex_to_int',
802
+ 'iargv',
803
+ 'idir',
804
+ 'idumps',
805
+ 'idumps_html',
806
+ 'ienumerate',
807
+ 'ienv',
808
+ 'iexec',
809
+ 'ijoin',
810
+ 'iloads',
811
+ 'iloads_html',
812
+ 'input_char',
813
+ 'inspect',
814
+ 'int_to_bin',
815
+ 'int_to_chr',
816
+ 'int_to_hex',
817
+ 'int_to_int',
818
+ 'int_to_oct',
819
+ 'io',
820
+ 'iopen',
821
+ 'iprint',
822
+ 'irange',
823
+ 'ireplace',
824
+ 'is_empty',
825
+ 'is_iterable',
826
+ 'is_valid_url',
827
+ 'iscandir',
828
+ 'isplit',
829
+ 'ivars',
830
+ 'json',
831
+ 'log',
832
+ 'lxml',
833
+ 'math',
834
+ 'multiprocessing',
835
+ 'oct_to_int',
836
+ 'operator',
837
+ 'os',
838
+ 'password_generator',
839
+ 'pathlib',
840
+ 'pint',
841
+ 'pip_freeze_without_version',
842
+ 'poetry_publish',
843
+ 'poetry_update_version',
844
+ 'pprint',
845
+ 'print_colorize',
846
+ 'print_dir',
847
+ 'print_log',
848
+ 'print_to_last_line',
849
+ 'queue',
850
+ 'random',
851
+ 'random_bool',
852
+ 're',
853
+ 'requests',
854
+ 'restart',
855
+ 'set_timeout',
856
+ 'sets_ordered',
857
+ 'str_cmp',
858
+ 'string',
859
+ 'subprocess',
860
+ 'sys',
861
+ 'text_colorize',
862
+ 'textwrap',
863
+ 'threading',
864
+ 'time',
865
+ 'to_str',
866
+ 'tzdata',
867
+ 'uuid',
868
+ 'webbrowser',
869
+ 'yaml',
870
+ 'zoneinfo']
871
+ ```
872
+
752
873
  ## idumps_html
753
874
 
754
875
  `idumps_html(data, indent=None)`
@@ -937,7 +1058,7 @@ Output:
937
1058
 
938
1059
  ## ienumerate
939
1060
 
940
- `ienumerate(iterator, start=0, key=<function int_to_int at 0x76b8281120>)`
1061
+ `ienumerate(iterator, start=0, key=<function int_to_int at 0x776957d1c0>)`
941
1062
 
942
1063
  meningkatkan fungsi enumerate() pada python
943
1064
  untuk key menggunakan huruf dan basis angka lainnya.
@@ -950,7 +1071,7 @@ iprint(ienumerate(it, key=int_to_chr))
950
1071
 
951
1072
  Output:
952
1073
  ```py
953
- <generator object ienumerate at 0x76b1b6a2f0>
1074
+ <generator object ienumerate at 0x77641763e0>
954
1075
  [('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
955
1076
  ```
956
1077
 
@@ -1017,7 +1138,7 @@ print(ijoin(10, ' '))
1017
1138
 
1018
1139
  Output:
1019
1140
  ```py
1020
- weq, qweqw, asd, dfs
1141
+ qweqw, dfs, asd, weq
1021
1142
  ,ini,path,seperti,url,
1022
1143
  ini,path,seperti,url
1023
1144
  <li>satu</li>
@@ -1063,9 +1184,9 @@ Output:
1063
1184
  ```py
1064
1185
  (['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
1065
1186
  [['Harga Emas Hari Ini - Selasa, 07 Mei 2024'],
1066
- ['Spot Emas USD↓2.319,63 (-4,02) / oz',
1187
+ ['Spot Emas USD↓2.315,16 (-8,49) / oz',
1067
1188
  'Kurs IDR↓16.025,01 (-68,99) / USD',
1068
- 'Emas IDR↓1.195.111 (-7.225) / gr'],
1189
+ 'Emas IDR↓1.192.808 (-9.528) / gr'],
1069
1190
  ['LM Antam (Jual)↑1.318.000 (+8.000) / gr',
1070
1191
  'LM Antam (Beli)↑1.210.000 (+7.000) / gr']],
1071
1192
  [['Harga Emas Hari Ini'],
@@ -1136,10 +1257,10 @@ Output:
1136
1257
  'Update harga LM Pegadaian :31 Agustus 2023']],
1137
1258
  [['Spot Harga Emas Hari Ini (Market Open)'],
1138
1259
  ['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
1139
- ['Ounce\xa0(oz)', '2.319,63 (-4,02)', '16.025,01 (-68,99)', '37.172.094'],
1140
- ['Gram\xa0(gr)', '74,58', '16.025,01', '1.195.111 (-7.225)'],
1141
- ['Kilogram\xa0(kg)', '74.577,84', '16.025,01', '1.195.110.573'],
1142
- ['Update harga emas :07 Mei 2024, pukul 20:13Update kurs :07 Mei 2024, pukul '
1260
+ ['Ounce\xa0(oz)', '2.315,16 (-8,49)', '16.025,01 (-68,99)', '37.100.462'],
1261
+ ['Gram\xa0(gr)', '74,43', '16.025,01', '1.192.808 (-9.528)'],
1262
+ ['Kilogram\xa0(kg)', '74.434,12', '16.025,01', '1.192.807.557'],
1263
+ ['Update harga emas :07 Mei 2024, pukul 22:51Update kurs :07 Mei 2024, pukul '
1143
1264
  '13:10']],
1144
1265
  [['Gram', 'UBS Gold 99.99%'],
1145
1266
  ['Jual', 'Beli'],
@@ -1185,36 +1306,36 @@ Output:
1185
1306
  ['Unit', 'USD', 'IDR'],
1186
1307
  ['Angka', '+/-', 'Angka', '+/-'],
1187
1308
  ['Hari Ini', 'Kurs', '', '', '16.094', '-69-0,43%'],
1188
- ['oz', '2.323,65', '-4,02-0,17%', '37.396.823', '-224.729-0,60%'],
1189
- ['gr', '74,71', '-0,13-0,17%', '1.202.336', '-7.225-0,60%'],
1309
+ ['oz', '2.323,65', '-8,49-0,37%', '37.396.823', '-296.361-0,79%'],
1310
+ ['gr', '74,71', '-0,27-0,37%', '1.202.336', '-9.528-0,79%'],
1190
1311
  ['30 Hari', 'Kurs', '', '', '15.907', '+118+0,74%'],
1191
- ['oz', '2.329,93', '-10,30-0,44%', '37.062.197', '+109.897+0,30%'],
1192
- ['gr', '74,91', '-0,33-0,44%', '1.191.577', '+3.533+0,30%'],
1312
+ ['oz', '2.329,93', '-14,77-0,63%', '37.062.197', '+38.266+0,10%'],
1313
+ ['gr', '74,91', '-0,47-0,63%', '1.191.577', '+1.230+0,10%'],
1193
1314
  ['2 Bulan', 'Kurs', '', '', '15.658', '+367+2,34%'],
1194
- ['oz', '2.179,67', '+139,96+6,42%', '34.129.273', '+3.042.821+8,92%'],
1195
- ['gr', '70,08', '+4,50+6,42', '1.097.282', '+97.829+8,92%'],
1315
+ ['oz', '2.179,67', '+135,49+6,22%', '34.129.273', '+2.971.189+8,71%'],
1316
+ ['gr', '70,08', '+4,36+6,22', '1.097.282', '+95.526+8,71%'],
1196
1317
  ['6 Bulan', 'Kurs', '', '', '15.629', '+396+2,53%'],
1197
- ['oz', '1.960,90', '+358,73+18,29%', '30.646.906', '+6.525.188+21,29%'],
1198
- ['gr', '63,04', '+11,53+18,29%', '985.321', '+209.790+21,29%'],
1318
+ ['oz', '1.960,90', '+354,26+18,07%', '30.646.906', '+6.453.556+21,06%'],
1319
+ ['gr', '63,04', '+11,39+18,07%', '985.321', '+207.487+21,06%'],
1199
1320
  ['1 Tahun', 'Kurs', '', '', '15.731', '+294+1,87%'],
1200
- ['oz', '1.823,86', '+495,77+27,18%', '28.691.142', '+8.480.952+29,56%'],
1201
- ['gr', '58,64', '+15,94+27,18%', '922.442', '+272.669+29,56%'],
1321
+ ['oz', '1.823,86', '+491,30+26,94%', '28.691.142', '+8.409.320+29,31%'],
1322
+ ['gr', '58,64', '+15,80+26,94%', '922.442', '+270.366+29,31%'],
1202
1323
  ['2 Tahun', 'Kurs', '', '', '14.418', '+1.607+11,15%'],
1203
- ['oz', '1.883,86', '+435,77+23,13%', '27.161.493', '+10.010.600+36,86%'],
1204
- ['gr', '60,57', '+14,01+23,13%', '873.262', '+321.848+36,86%'],
1324
+ ['oz', '1.883,86', '+431,30+22,89%', '27.161.493', '+9.938.969+36,59%'],
1325
+ ['gr', '60,57', '+13,87+22,89%', '873.262', '+319.545+36,59%'],
1205
1326
  ['3 Tahun', 'Kurs', '', '', '14.364', '+1.661+11,56%'],
1206
- ['oz', '1.831,43', '+488,20+26,66%', '26.306.661', '+10.865.433+41,30%'],
1207
- ['gr', '58,88', '+15,70+26,66%', '845.779', '+349.332+41,30%'],
1327
+ ['oz', '1.831,43', '+483,73+26,41%', '26.306.661', '+10.793.802+41,03%'],
1328
+ ['gr', '58,88', '+15,55+26,41%', '845.779', '+347.029+41,03%'],
1208
1329
  ['5 Tahun', 'Kurs', '', '', '14.338', '+1.687+11,77%'],
1209
- ['oz', '1.284,03', '+1.035,60+80,65%', '18.410.422', '+18.761.672+101,91%'],
1210
- ['gr', '41,28', '+33,30+80,65%', '591.909', '+603.202+101,91%']])
1330
+ ['oz', '1.284,03', '+1.031,13+80,30%', '18.410.422', '+18.690.040+101,52%'],
1331
+ ['gr', '41,28', '+33,15+80,30%', '591.909', '+600.899+101,52%']])
1211
1332
  (['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
1212
1333
  [[''],
1213
1334
  ['Emas 24 KaratHarga Emas 1 Gram', ''],
1214
- ['USD', '74,58↓', '-0,13-0,17%'],
1215
- ['KURS', '16.057,20↑', '+13,30+0,08%'],
1216
- ['IDR', '1.197.511,23↓', '-1.081,73-0,09%'],
1217
- ['Selasa, 07 Mei 2024 20:13']],
1335
+ ['USD', '74,43↓', '-0,28-0,37%'],
1336
+ ['KURS', '16.056,00↑', '+12,10+0,08%'],
1337
+ ['IDR', '1.195.114,27↓', '-3.478,69-0,29%'],
1338
+ ['Selasa, 07 Mei 2024 22:51']],
1218
1339
  [[''],
1219
1340
  ['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
1220
1341
  'Hari Ini',
@@ -1225,19 +1346,19 @@ Output:
1225
1346
  '']],
1226
1347
  [['Pergerakkan Harga Emas 1 Gram'],
1227
1348
  ['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
1228
- ['USD', '74,71', '74,58 - 74,71', '74,65'],
1229
- ['KURS', '16.043,90', '16.043,90 - 16.057,20', '16.050,55'],
1230
- ['IDR', '1.198.592,96', '1.197.511,23 - 1.198.592,96', '1.198.052,10'],
1349
+ ['USD', '74,71', '74,43 - 74,71', '74,57'],
1350
+ ['KURS', '16.043,90', '16.043,90 - 16.056,00', '16.049,95'],
1351
+ ['IDR', '1.198.592,96', '1.195.114,27 - 1.198.592,96', '1.196.853,62'],
1231
1352
  [''],
1232
1353
  ['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
1233
- ['USD', '66,32', '64,07 - 77,14', '+8,26 (12,45%)'],
1234
- ['KURS', '15.390,10', '15.390,00 - 16.307,80', '+667,10 (4,33%)'],
1235
- ['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+176.781,70 (17,32%)'],
1354
+ ['USD', '66,32', '64,07 - 77,14', '+8,11 (12,23%)'],
1355
+ ['KURS', '15.390,10', '15.390,00 - 16.307,80', '+665,90 (4,33%)'],
1356
+ ['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+174.384,74 (17,08%)'],
1236
1357
  [''],
1237
1358
  ['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
1238
- ['USD', '64,84', '58,43 - 77,14', '+9,74 (15,02%)'],
1239
- ['KURS', '14.674,80', '14.674,80 - 16.307,80', '+1.382,40 (9,42%)'],
1240
- ['IDR', '951.570,92', '912.925,68 - 1.256.829,06', '+245.940,31 (25,85%)']])
1359
+ ['USD', '64,84', '58,43 - 77,14', '+9,59 (14,79%)'],
1360
+ ['KURS', '14.674,80', '14.674,80 - 16.307,80', '+1.381,20 (9,41%)'],
1361
+ ['IDR', '951.570,92', '912.925,68 - 1.256.829,06', '+243.543,35 (25,59%)']])
1241
1362
  ```
1242
1363
 
1243
1364
  ## iloads
@@ -1367,7 +1488,7 @@ Output:
1367
1488
  ```py
1368
1489
  8
1369
1490
  ['mana', 'aja']
1370
- [<Element a at 0x76b1babd40>, <Element a at 0x76b1bfa260>, <Element a at 0x76b1bfa300>, <Element a at 0x76b1bfa350>, <Element a at 0x76b1bfa3a0>, <Element a at 0x76b1bfa3f0>, <Element a at 0x76b1bfa440>, <Element a at 0x76b1bfa490>, <Element a at 0x76b1bfa4e0>, <Element a at 0x76b1bfa530>, <Element a at 0x76b1bfa580>, <Element a at 0x76b1bfa5d0>, <Element a at 0x76b1bfa620>, <Element a at 0x76b1bfa670>, <Element a at 0x76b1bfa6c0>, <Element a at 0x76b1bfa710>, <Element a at 0x76b1bfa760>, <Element a at 0x76b1bfa7b0>]
1491
+ [<Element a at 0x77697600a0>, <Element a at 0x77641b6f80>, <Element a at 0x77642063f0>, <Element a at 0x7764206490>, <Element a at 0x77642064e0>, <Element a at 0x7764206530>, <Element a at 0x7764206580>, <Element a at 0x77642065d0>, <Element a at 0x7764206620>, <Element a at 0x7764206670>, <Element a at 0x77642066c0>, <Element a at 0x7764206710>, <Element a at 0x7764206760>, <Element a at 0x77642067b0>, <Element a at 0x7764206800>, <Element a at 0x7764206850>, <Element a at 0x77642068a0>, <Element a at 0x77642068f0>]
1371
1492
  False
1372
1493
  ```
1373
1494
 
@@ -1429,7 +1550,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
1429
1550
 
1430
1551
  Output:
1431
1552
  ```py
1432
- <generator object iscandir at 0x76b1e5fa40>
1553
+ <generator object iscandir at 0x776445fb40>
1433
1554
  [PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
1434
1555
  ```
1435
1556
 
@@ -1462,80 +1583,81 @@ iprint(ivars(__import__('pypipr')))
1462
1583
 
1463
1584
  Output:
1464
1585
  ```py
1465
- {'function': {'avg': <function avg at 0x76c059fb00>,
1466
- 'get_filemtime': <function get_filemtime at 0x76b848bd80>,
1467
- 'print_colorize': <function print_colorize at 0x76b848bf60>,
1468
- 'print_log': <function print_log at 0x76b848be20>,
1469
- 'console_run': <function console_run at 0x76b848bec0>,
1470
- 'auto_reload': <function auto_reload at 0x76ba00b2e0>,
1471
- 'basename': <function basename at 0x76b848bce0>,
1472
- 'chr_to_int': <function chr_to_int at 0x76b8490540>,
1473
- 'int_to_chr': <function int_to_chr at 0x76b84905e0>,
1474
- 'irange': <function irange at 0x76b8490860>,
1475
- 'batchmaker': <function batchmaker at 0x76b8490220>,
1476
- 'calculate': <function calculate at 0x76b8490360>,
1477
- 'batch_calculate': <function batch_calculate at 0x76b84900e0>,
1478
- 'bin_to_int': <function bin_to_int at 0x76b8490180>,
1479
- 'is_empty': <function is_empty at 0x76b8491080>,
1480
- 'exit_if_empty': <function exit_if_empty at 0x76b8490f40>,
1481
- 'input_char': <function input_char at 0x76b84904a0>,
1482
- 'get_by_index': <function get_by_index at 0x76b8491120>,
1483
- 'choices': <function choices at 0x76b8491300>,
1484
- 'chunk_array': <function chunk_array at 0x76b84913a0>,
1485
- 'create_folder': <function create_folder at 0x76b8491440>,
1486
- 'datetime_from_string': <function datetime_from_string at 0x76b84914e0>,
1487
- 'datetime_now': <function datetime_now at 0x76b8491580>,
1488
- 'dict_first': <function dict_first at 0x76b8493740>,
1489
- 'dirname': <function dirname at 0x76b84937e0>,
1490
- 'is_iterable': <function is_iterable at 0x76b84939c0>,
1491
- 'to_str': <function to_str at 0x76b8493a60>,
1492
- 'filter_empty': <function filter_empty at 0x76b8493880>,
1493
- 'get_class_method': <function get_class_method at 0x76b8493920>,
1494
- 'get_filesize': <function get_filesize at 0x76b8493ba0>,
1495
- 'github_init': <function github_init at 0x76b8493c40>,
1496
- 'github_pull': <function github_pull at 0x76b8493ce0>,
1497
- 'github_push': <function github_push at 0x76b8493e20>,
1498
- 'github_user': <function github_user at 0x76b8493ec0>,
1499
- 'hex_to_int': <function hex_to_int at 0x76b8493f60>,
1500
- 'iargv': <function iargv at 0x76b8214040>,
1501
- 'idumps_html': <function idumps_html at 0x76b82142c0>,
1502
- 'idumps': <function idumps at 0x76b8214180>,
1503
- 'int_to_int': <function int_to_int at 0x76b8281120>,
1504
- 'ienumerate': <function ienumerate at 0x76b824b4c0>,
1505
- 'ienv': <function ienv at 0x76b8280fe0>,
1506
- 'iexec': <function iexec at 0x76b82811c0>,
1507
- 'ijoin': <function ijoin at 0x76b8281300>,
1508
- 'iloads_html': <function iloads_html at 0x76b82814e0>,
1509
- 'iloads': <function iloads at 0x76c0fea660>,
1510
- 'int_to_bin': <function int_to_bin at 0x76b8281260>,
1511
- 'int_to_hex': <function int_to_hex at 0x76b8281440>,
1512
- 'int_to_oct': <function int_to_oct at 0x76b8281580>,
1513
- 'is_valid_url': <function is_valid_url at 0x76b8281760>,
1514
- 'iopen': <function iopen at 0x76b82ecf40>,
1515
- 'iprint': <function iprint at 0x76b82816c0>,
1516
- 'ireplace': <function ireplace at 0x76b8281a80>,
1517
- 'iscandir': <function iscandir at 0x76b819e2a0>,
1518
- 'isplit': <function isplit at 0x76b819e340>,
1519
- 'ivars': <function ivars at 0x76b819e3e0>,
1520
- 'log': <function log at 0x76b819e480>,
1521
- 'oct_to_int': <function oct_to_int at 0x76b819e520>,
1522
- 'password_generator': <function password_generator at 0x76b819e5c0>,
1523
- 'pip_freeze_without_version': <function pip_freeze_without_version at 0x76b819e700>,
1524
- 'poetry_publish': <function poetry_publish at 0x76b819e7a0>,
1525
- 'poetry_update_version': <function poetry_update_version at 0x76b819e8e0>,
1526
- 'print_dir': <function print_dir at 0x76b819eac0>,
1527
- 'print_to_last_line': <function print_to_last_line at 0x76b819eb60>,
1528
- 'random_bool': <function random_bool at 0x76b819ec00>,
1529
- 'restart': <function restart at 0x76b819eca0>,
1530
- 'set_timeout': <function set_timeout at 0x76b819ed40>,
1531
- 'sets_ordered': <function sets_ordered at 0x76b819ede0>,
1532
- 'str_cmp': <function str_cmp at 0x76b819ee80>,
1533
- 'text_colorize': <function text_colorize at 0x76b819ef20>},
1586
+ {'function': {'avg': <function avg at 0x7775317b00>,
1587
+ 'get_filemtime': <function get_filemtime at 0x776974fd80>,
1588
+ 'print_colorize': <function print_colorize at 0x776974ff60>,
1589
+ 'print_log': <function print_log at 0x776974fe20>,
1590
+ 'console_run': <function console_run at 0x776974fec0>,
1591
+ 'auto_reload': <function auto_reload at 0x7769c1b2e0>,
1592
+ 'basename': <function basename at 0x776974fce0>,
1593
+ 'chr_to_int': <function chr_to_int at 0x7769754540>,
1594
+ 'int_to_chr': <function int_to_chr at 0x77697545e0>,
1595
+ 'irange': <function irange at 0x7769754860>,
1596
+ 'batchmaker': <function batchmaker at 0x7769754220>,
1597
+ 'calculate': <function calculate at 0x7769754360>,
1598
+ 'batch_calculate': <function batch_calculate at 0x77697540e0>,
1599
+ 'bin_to_int': <function bin_to_int at 0x7769754180>,
1600
+ 'is_empty': <function is_empty at 0x7769754fe0>,
1601
+ 'exit_if_empty': <function exit_if_empty at 0x7769754ea0>,
1602
+ 'input_char': <function input_char at 0x77697544a0>,
1603
+ 'choices': <function choices at 0x7769755260>,
1604
+ 'chunk_array': <function chunk_array at 0x7769755300>,
1605
+ 'create_folder': <function create_folder at 0x77697553a0>,
1606
+ 'datetime_from_string': <function datetime_from_string at 0x7769755440>,
1607
+ 'datetime_now': <function datetime_now at 0x77697554e0>,
1608
+ 'dict_first': <function dict_first at 0x77697576a0>,
1609
+ 'dirname': <function dirname at 0x7769757740>,
1610
+ 'is_iterable': <function is_iterable at 0x7769757920>,
1611
+ 'to_str': <function to_str at 0x77697579c0>,
1612
+ 'filter_empty': <function filter_empty at 0x77697577e0>,
1613
+ 'get_by_index': <function get_by_index at 0x7769755620>,
1614
+ 'get_class_method': <function get_class_method at 0x7769757a60>,
1615
+ 'get_filesize': <function get_filesize at 0x7769757ba0>,
1616
+ 'github_init': <function github_init at 0x7769757c40>,
1617
+ 'github_pull': <function github_pull at 0x7769757ce0>,
1618
+ 'github_push': <function github_push at 0x7769757e20>,
1619
+ 'github_user': <function github_user at 0x7769757ec0>,
1620
+ 'hex_to_int': <function hex_to_int at 0x7769757f60>,
1621
+ 'iargv': <function iargv at 0x776950c040>,
1622
+ 'idir': <function idir at 0x776950c180>,
1623
+ 'idumps_html': <function idumps_html at 0x776950c360>,
1624
+ 'idumps': <function idumps at 0x776950c0e0>,
1625
+ 'int_to_int': <function int_to_int at 0x776957d1c0>,
1626
+ 'ienumerate': <function ienumerate at 0x776950c860>,
1627
+ 'ienv': <function ienv at 0x776957d080>,
1628
+ 'iexec': <function iexec at 0x776957d260>,
1629
+ 'ijoin': <function ijoin at 0x776957d3a0>,
1630
+ 'iloads_html': <function iloads_html at 0x776957d580>,
1631
+ 'iloads': <function iloads at 0x77756a2660>,
1632
+ 'int_to_bin': <function int_to_bin at 0x776957d300>,
1633
+ 'int_to_hex': <function int_to_hex at 0x776957d4e0>,
1634
+ 'int_to_oct': <function int_to_oct at 0x776957d620>,
1635
+ 'is_valid_url': <function is_valid_url at 0x776957d800>,
1636
+ 'iopen': <function iopen at 0x77695e4fe0>,
1637
+ 'iprint': <function iprint at 0x776957d760>,
1638
+ 'ireplace': <function ireplace at 0x776957db20>,
1639
+ 'iscandir': <function iscandir at 0x7769486340>,
1640
+ 'isplit': <function isplit at 0x77694863e0>,
1641
+ 'ivars': <function ivars at 0x7769486480>,
1642
+ 'log': <function log at 0x7769486520>,
1643
+ 'oct_to_int': <function oct_to_int at 0x77694865c0>,
1644
+ 'password_generator': <function password_generator at 0x7769486660>,
1645
+ 'pip_freeze_without_version': <function pip_freeze_without_version at 0x77694867a0>,
1646
+ 'poetry_publish': <function poetry_publish at 0x7769486840>,
1647
+ 'poetry_update_version': <function poetry_update_version at 0x7769486980>,
1648
+ 'print_dir': <function print_dir at 0x7769486b60>,
1649
+ 'print_to_last_line': <function print_to_last_line at 0x7769486c00>,
1650
+ 'random_bool': <function random_bool at 0x7769486ca0>,
1651
+ 'restart': <function restart at 0x7769486d40>,
1652
+ 'set_timeout': <function set_timeout at 0x7769486de0>,
1653
+ 'sets_ordered': <function sets_ordered at 0x7769486e80>,
1654
+ 'str_cmp': <function str_cmp at 0x7769486f20>,
1655
+ 'text_colorize': <function text_colorize at 0x7769486fc0>},
1534
1656
  'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
1535
1657
  'PintUregQuantity': <class 'pint.Quantity'>,
1536
1658
  'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
1537
1659
  'variable': {'LINUX': True,
1538
- 'PintUreg': <pint.registry.UnitRegistry object at 0x76c05e9fd0>,
1660
+ 'PintUreg': <pint.registry.UnitRegistry object at 0x776f19a010>,
1539
1661
  'WINDOWS': False},
1540
1662
  'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
1541
1663
  'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
@@ -1625,7 +1747,7 @@ print(password_generator())
1625
1747
 
1626
1748
  Output:
1627
1749
  ```py
1628
- g4]hYy]l
1750
+ HyS#E|Re
1629
1751
  ```
1630
1752
 
1631
1753
  ## pip_freeze_without_version
@@ -1683,7 +1805,7 @@ Output:
1683
1805
  __enter__ : https:/www.google.com
1684
1806
  __fspath__ : https:/www.google.com
1685
1807
  __getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
1686
- __hash__ : -7337099340815294686
1808
+ __hash__ : -3853630965287151803
1687
1809
  __init__ : None
1688
1810
  __init_subclass__ : None
1689
1811
  __module__ : pathlib
@@ -1696,8 +1818,8 @@ Output:
1696
1818
  _cached_cparts : ['https:', 'www.google.com']
1697
1819
  _cparts : ['https:', 'www.google.com']
1698
1820
  _drv :
1699
- _flavour : <pathlib._PosixFlavour object at 0x76c038d190>
1700
- _hash : -7337099340815294686
1821
+ _flavour : <pathlib._PosixFlavour object at 0x7774aa9150>
1822
+ _hash : -3853630965287151803
1701
1823
  _parts : ['https:', 'www.google.com']
1702
1824
  _root :
1703
1825
  _str : https:/www.google.com
@@ -1719,7 +1841,7 @@ Output:
1719
1841
  is_reserved : False
1720
1842
  is_socket : False
1721
1843
  is_symlink : False
1722
- iterdir : <generator object Path.iterdir at 0x76b1bc5b60>
1844
+ iterdir : <generator object Path.iterdir at 0x77641d1b60>
1723
1845
  joinpath : https:/www.google.com
1724
1846
  name : www.google.com
1725
1847
  parent : https:
@@ -1759,7 +1881,7 @@ print(random_bool())
1759
1881
 
1760
1882
  Output:
1761
1883
  ```py
1762
- True
1884
+ False
1763
1885
  ```
1764
1886
 
1765
1887
  ## restart
@@ -1793,7 +1915,7 @@ x.cancel()
1793
1915
 
1794
1916
  Output:
1795
1917
  ```py
1796
- <Timer(Thread-2, started 509765205232)>
1918
+ <Timer(Thread-2, started 512761875696)>
1797
1919
  menghentikan timeout 7
1798
1920
  ```
1799
1921
 
@@ -1811,7 +1933,7 @@ print(list(sets_ordered(array)))
1811
1933
 
1812
1934
  Output:
1813
1935
  ```py
1814
- <generator object sets_ordered at 0x76b9fdd700>
1936
+ <generator object sets_ordered at 0x7769bed700>
1815
1937
  [2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
1816
1938
  ```
1817
1939
 
@@ -1881,15 +2003,15 @@ print(ExampleComparePerformance().compare_performance())
1881
2003
 
1882
2004
  Output:
1883
2005
  ```py
1884
- {'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x76b9fdd630>,
2006
+ {'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7769bed630>,
1885
2007
  'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
1886
2008
  'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
1887
2009
  'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
1888
- {'a': 100, 'b': 107, 'c': 105, 'd': 159}
1889
- {'a': 125, 'b': 135, 'c': 100, 'd': 177}
1890
- {'a': 123, 'b': 129, 'c': 100, 'd': 176}
1891
- {'a': 108, 'b': 123, 'c': 100, 'd': 148}
1892
- {'a': 113, 'b': 128, 'c': 100, 'd': 152}
2010
+ {'a': 163, 'b': 117, 'c': 100, 'd': 157}
2011
+ {'a': 140, 'b': 112, 'c': 100, 'd': 113}
2012
+ {'a': 129, 'b': 116, 'c': 100, 'd': 115}
2013
+ {'a': 119, 'b': 121, 'c': 100, 'd': 124}
2014
+ {'a': 117, 'b': 113, 'c': 100, 'd': 116}
1893
2015
  ```
1894
2016
 
1895
2017
  ## PintUregQuantity
@@ -4,7 +4,7 @@ pypipr/PintUreg.py,sha256=_jmHZhUn8AcgFkXvZ6OTsWnjtp-CYcXUJ-dG_QdcARY,222
4
4
  pypipr/PintUregQuantity.py,sha256=ErSZKB-GHShi1zKac30XgFdBwAUrxMo80IQzIjQ2HVc,118
5
5
  pypipr/RunParallel.py,sha256=3H6sVSeUSATQQsWBcDGTtaXuc-12Yc0XmDyVtsg3PMA,5992
6
6
  pypipr/WINDOWS.py,sha256=NMW-94lzdqwfEWv2lF_i2GcSHJFDwWjccFufpymg4-E,83
7
- pypipr/__init__.py,sha256=qmZSMlW57rXz82raQFW_TDPvbrdY7mbauYFkHh4Y5CY,3105
7
+ pypipr/__init__.py,sha256=ocqRXoVkiGk0bWsexB3KQLIPTiOssw6Q76ZHNno4088,3128
8
8
  pypipr/__terminal__.py,sha256=N_NEXa0V5QLb-dkP1Vp_fYKNjE4jGTqkiYNwPPOXZtw,1412
9
9
  pypipr/auto_reload.py,sha256=FGchFBjQs_eT7CmOMLNYoch-17q7ySFOnPx5z1kbH3E,918
10
10
  pypipr/avg.py,sha256=wUtX3x8dgLoODhQLyMB-HRMVo8Ha2yz3cp7lgcUNbr0,218
@@ -13,7 +13,7 @@ pypipr/batch_calculate.py,sha256=JoaciQk7j-nXSdqlwonRdZ3Qu6uqUYhuA7oxpTC548s,503
13
13
  pypipr/batchmaker.py,sha256=y0D-fU0oCJsdffwZZyJMC0iLPjjiv-_43a7hLrChJDM,1110
14
14
  pypipr/bin_to_int.py,sha256=9s935sdD-CC1d7WCsNO3dd8nqTfC8lpkxHB1zQ--mZc,191
15
15
  pypipr/calculate.py,sha256=uSmDH43_x4ifdHN23PLdWKqjx023--1ZE6mf5A2hqg4,696
16
- pypipr/choices.py,sha256=_Wehpw4Bozuy121F4QHy8pCPxlMa3Uvkt-0QjBINh7g,1530
16
+ pypipr/choices.py,sha256=qhRdquHqPWUKVdYwi7KDDf1_CYJi9i5E52hs2mMxCWs,1473
17
17
  pypipr/choices.py.bak,sha256=hjVToqAIeMoMfL3kJxOERAicEVsQyUGwzbnorhLdMA4,1664
18
18
  pypipr/chr_to_int.py,sha256=5ETJZag1eM8wa2ceIGsmNP-jNufC5bCScghTLcwGEAI,459
19
19
  pypipr/chunk_array.py,sha256=aodjp-daihl-Xd8kPqcpHZICZub7Jx0QBqyoF0bd0dY,385
@@ -35,6 +35,7 @@ pypipr/github_push.py,sha256=LO60-QwiT3F__bQ3Foz1Znn6wy0reDck4Rf36r62OCg,874
35
35
  pypipr/github_user.py,sha256=fnds19Hlab3B94ORIYO9RiETF6p7dO-T3d1q_3XR-aw,483
36
36
  pypipr/hex_to_int.py,sha256=fqHnoPBZFqxbcyaJt-UbjzRJ8cjNXIuqH3UoSzUVMSs,197
37
37
  pypipr/iargv.py,sha256=rRKSTecPLZtso7Zm-1wrsgsYvAGx-o0IWHaQ167OlTE,468
38
+ pypipr/idir.py,sha256=4G7eEWfbYw0M8zW4s1HdswR-a3ocSzgpAU8lokLqTEE,345
38
39
  pypipr/idumps.py,sha256=-YMI6aZmRAMaiQOYXYDvuQLmJMCc4Z4tREEuuoVmFR4,748
39
40
  pypipr/idumps_html.py,sha256=IdDLF3YB7fKvoCjeQC4pLhrVdeWFpVupnSDeI_TsqEY,1428
40
41
  pypipr/ienumerate.py,sha256=7JBtPt5LVa7lTzbAx0WMoML6pgkx50Qpw9PLgUpp9sc,411
@@ -76,7 +77,7 @@ pypipr/sets_ordered.py,sha256=ve2Nc1eNYD_7QaTf_4otEAvzL1XpZP2MjX0KHSXF5nA,325
76
77
  pypipr/str_cmp.py,sha256=2kavWiT4VTddXcBotF1CxDOWSygk5rFrbllKxBjw9dc,377
77
78
  pypipr/text_colorize.py,sha256=IVjaCnXBSBu4Rh8pTO3CxDvxpA265HVwyKX_-PRXCcI,396
78
79
  pypipr/to_str.py,sha256=vSuspf-ZQldf4enkssa9XH0WMjkmWug51G9ia0K5occ,597
79
- pypipr-1.0.128.dist-info/METADATA,sha256=-JmCM5AnHgwZlQds5xO-zY69z47ZkziikG6l89iOGqE,52684
80
- pypipr-1.0.128.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
81
- pypipr-1.0.128.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
82
- pypipr-1.0.128.dist-info/RECORD,,
80
+ pypipr-1.0.130.dist-info/METADATA,sha256=RWBI-EpfjQSO46yRVeAslql8DsGJyW_KznuSCDJapF4,54411
81
+ pypipr-1.0.130.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
82
+ pypipr-1.0.130.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
83
+ pypipr-1.0.130.dist-info/RECORD,,