pypipr 1.0.125__py3-none-any.whl → 1.0.127__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
@@ -1,4 +1,3 @@
1
- from .APIMixinView import APIMixinView
2
1
  from .ComparePerformance import ComparePerformance
3
2
  from .LINUX import LINUX
4
3
  from .PintUreg import PintUreg
@@ -27,6 +26,7 @@ from .get_by_index import get_by_index
27
26
  from .get_class_method import get_class_method
28
27
  from .get_filemtime import get_filemtime
29
28
  from .get_filesize import get_filesize
29
+ from .github_init import github_init
30
30
  from .github_pull import github_pull
31
31
  from .github_push import github_push
32
32
  from .github_user import github_user
pypipr/__terminal__.py CHANGED
@@ -33,6 +33,7 @@ def main(module="pypipr"):
33
33
  elif inspect.ismodule(f):
34
34
  print_log("Module tidak dapat dijalankan.")
35
35
  main(f.__name__)
36
+ return
36
37
  elif inspect.isfunction(f):
37
38
  s = inspect.signature(f)
38
39
 
@@ -42,8 +43,7 @@ def main(module="pypipr"):
42
43
 
43
44
  k = {}
44
45
  for i, v in s.parameters.items():
45
- print(f"{i} [{v.default}] : ", end="")
46
- o = input()
46
+ o = input(f"{i} [{v.default}] : ")
47
47
  if len(o):
48
48
  try:
49
49
  k[i] = input_parameter(o)
pypipr/github_init.py ADDED
@@ -0,0 +1,34 @@
1
+ from .console_run import console_run
2
+ from .input_char import input_char
3
+
4
+
5
+ def github_init():
6
+ """
7
+ Menyiapkan folder offline untuk dikoneksikan ke repository
8
+ kosong github.
9
+ Akan langsung di upload dan di taruh di branch main.
10
+
11
+
12
+ ```py
13
+ github_init()
14
+ ```
15
+
16
+ or run in terminal
17
+
18
+ ```py
19
+ pypipr github_init
20
+ ```
21
+ """
22
+ u = input("username : ")
23
+ p = input("password : ")
24
+ g = input("github account name : ")
25
+ r = input("repository name : ")
26
+
27
+ url = f"https://{u}:{p}@github.com/{g}/{r}.git"
28
+ if input_char(f"Apakah benar {url} ? [y] ") == "y":
29
+ console_run("git init", print_info=False)
30
+ console_run("git add .", print_info=False)
31
+ console_run("git commit -m first_commit", print_info=False)
32
+ console_run("git branch -M main", print_info=False)
33
+ console_run(f"git remote add origin {url}", print_info=False)
34
+ console_run("git push -u origin main", print_info=False)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypipr
3
- Version: 1.0.125
3
+ Version: 1.0.127
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 0x7e5562c440>
252
- <generator object int_range at 0x7e5562c440>
251
+ <generator object int_range at 0x7c97de7640>
252
+ <generator object int_range at 0x7c97de7640>
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 0x7e55624280>
284
+ <generator object batchmaker at 0x7c97e3dc60>
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 0x7e5559f010>
338
+ <generator object batch_calculate at 0x7c97e4df30>
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
 
@@ -458,7 +458,7 @@ print(list(chunk_array(arr, 5)))
458
458
 
459
459
  Output:
460
460
  ```py
461
- <generator object chunk_array at 0x7e5562c440>
461
+ <generator object chunk_array at 0x7c97de7640>
462
462
  [[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
463
463
  ```
464
464
 
@@ -509,9 +509,9 @@ print(datetime_now("Etc/GMT+7"))
509
509
 
510
510
  Output:
511
511
  ```py
512
- 2024-05-06 11:44:20.743767+07:00
513
- 2024-05-06 04:44:20.745737+00:00
514
- 2024-05-05 21:44:20.749919-07:00
512
+ 2024-05-07 18:14:06.906899+07:00
513
+ 2024-05-07 11:14:06.908194+00:00
514
+ 2024-05-07 04:14:06.911504-07:00
515
515
  ```
516
516
 
517
517
  ## dict_first
@@ -617,7 +617,7 @@ iprint(filter_empty(var))
617
617
 
618
618
  Output:
619
619
  ```py
620
- <generator object filter_empty at 0x7e5559d5d0>
620
+ <generator object filter_empty at 0x7c97e4dc60>
621
621
  [1, '0', True, {}, ['eee']]
622
622
  ```
623
623
 
@@ -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 0x7e5559f2e0>
651
- [<function ExampleGetClassMethod.a at 0x7e5563cfe0>, <function ExampleGetClassMethod.b at 0x7e5563d120>, <function ExampleGetClassMethod.c at 0x7e5563d080>, <function ExampleGetClassMethod.d at 0x7e5563d1c0>]
650
+ <generator object get_class_method at 0x7c97e4e200>
651
+ [<function ExampleGetClassMethod.a at 0x7c97e9dbc0>, <function ExampleGetClassMethod.b at 0x7c97e9db20>, <function ExampleGetClassMethod.c at 0x7c97e9d9e0>, <function ExampleGetClassMethod.d at 0x7c97e9dc60>]
652
652
  ```
653
653
 
654
654
  ## get_filesize
@@ -666,6 +666,25 @@ Output:
666
666
  465
667
667
  ```
668
668
 
669
+ ## github_init
670
+
671
+ `github_init()`
672
+
673
+ Menyiapkan folder offline untuk dikoneksikan ke repository
674
+ kosong github.
675
+ Akan langsung di upload dan di taruh di branch main.
676
+
677
+
678
+ ```py
679
+ github_init()
680
+ ```
681
+
682
+ or run in terminal
683
+
684
+ ```py
685
+ pypipr github_init
686
+ ```
687
+
669
688
  ## github_pull
670
689
 
671
690
  `github_pull()`
@@ -918,7 +937,7 @@ Output:
918
937
 
919
938
  ## ienumerate
920
939
 
921
- `ienumerate(iterator, start=0, key=<function int_to_int at 0x7e5b1cd9e0>)`
940
+ `ienumerate(iterator, start=0, key=<function int_to_int at 0x7ca28dd080>)`
922
941
 
923
942
  meningkatkan fungsi enumerate() pada python
924
943
  untuk key menggunakan huruf dan basis angka lainnya.
@@ -931,7 +950,7 @@ iprint(ienumerate(it, key=int_to_chr))
931
950
 
932
951
  Output:
933
952
  ```py
934
- <generator object ienumerate at 0x7e5559f3d0>
953
+ <generator object ienumerate at 0x7c97e4e2f0>
935
954
  [('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
936
955
  ```
937
956
 
@@ -998,7 +1017,7 @@ print(ijoin(10, ' '))
998
1017
 
999
1018
  Output:
1000
1019
  ```py
1001
- weq, asd, qweqw, dfs
1020
+ qweqw, asd, dfs, weq
1002
1021
  ,ini,path,seperti,url,
1003
1022
  ini,path,seperti,url
1004
1023
  <li>satu</li>
@@ -1043,119 +1062,119 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
1043
1062
  Output:
1044
1063
  ```py
1045
1064
  (['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
1046
- [['Harga Emas Hari Ini - Senin, 06 Mei 2024'],
1047
- ['Spot Emas USD2.309,40 (+6,83) / oz',
1048
- 'Kurs IDR↓16.094,00 (-108,00) / USD',
1049
- 'Emas IDR↓1.194.962 (-4.461) / gr'],
1050
- ['LM Antam (Jual)1.310.000 (-3.000) / gr',
1051
- 'LM Antam (Beli)1.203.000 (-3.000) / gr']],
1065
+ [['Harga Emas Hari Ini - Selasa, 07 Mei 2024'],
1066
+ ['Spot Emas USD2.314,68 (-8,97) / oz',
1067
+ 'Kurs IDR↓16.025,01 (-68,99) / USD',
1068
+ 'Emas IDR↓1.192.560 (-9.776) / gr'],
1069
+ ['LM Antam (Jual)1.318.000 (+8.000) / gr',
1070
+ 'LM Antam (Beli)1.210.000 (+7.000) / gr']],
1052
1071
  [['Harga Emas Hari Ini'],
1053
1072
  ['Gram', 'Gedung Antam Jakarta', 'Pegadaian'],
1054
1073
  ['per Gram (Rp)', 'per Batangan (Rp)', 'per Gram (Rp)', 'per Batangan (Rp)'],
1055
1074
  ['1000',
1056
- '1.251 (-3)',
1057
- '1.250.600 (-3.000)',
1075
+ '1.259 (+8)',
1076
+ '1.258.600 (+8.000)',
1058
1077
  '1.043.040 (+8.200)',
1059
1078
  '1.043.040.000 (+8.200.000)'],
1060
1079
  ['500',
1061
- '2.501 (-6)',
1062
- '1.250.640 (-3.000)',
1080
+ '2.517 (+16)',
1081
+ '1.258.640 (+8.000)',
1063
1082
  '1.043.082 (+8.200)',
1064
1083
  '521.541.000 (+4.100.000)'],
1065
1084
  ['250',
1066
- '5.004 (-12)',
1067
- '1.251.060 (-3.000)',
1085
+ '5.036 (+32)',
1086
+ '1.259.060 (+8.000)',
1068
1087
  '1.043.512 (+8.200)',
1069
1088
  '260.878.000 (+2.050.000)'],
1070
1089
  ['100',
1071
- '12.521 (-30)',
1072
- '1.252.120 (-3.000)',
1090
+ '12.601 (+80)',
1091
+ '1.260.120 (+8.000)',
1073
1092
  '1.044.600 (+8.200)',
1074
1093
  '104.460.000 (+820.000)'],
1075
1094
  ['50',
1076
- '25.058 (-60)',
1077
- '1.252.900 (-3.000)',
1095
+ '25.218 (+160)',
1096
+ '1.260.900 (+8.000)',
1078
1097
  '1.045.400 (+8.200)',
1079
1098
  '52.270.000 (+410.000)'],
1080
1099
  ['25',
1081
- '50.179 (-120)',
1082
- '1.254.480 (-3.000)',
1100
+ '50.499 (+320)',
1101
+ '1.262.480 (+8.000)',
1083
1102
  '1.047.040 (+8.200)',
1084
1103
  '26.176.000 (+205.000)'],
1085
1104
  ['10',
1086
- '125.950 (-300)',
1087
- '1.259.500 (-3.000)',
1105
+ '126.750 (+800)',
1106
+ '1.267.500 (+8.000)',
1088
1107
  '1.052.200 (+8.200)',
1089
1108
  '10.522.000 (+82.000)'],
1090
1109
  ['5',
1091
- '253.000 (-600)',
1092
- '1.265.000 (-3.000)',
1110
+ '254.600 (+1.600)',
1111
+ '1.273.000 (+8.000)',
1093
1112
  '1.057.800 (+8.200)',
1094
1113
  '5.289.000 (+41.000)'],
1095
1114
  ['3',
1096
- '423.889 (-1.000)',
1097
- '1.271.667 (-3.000)',
1115
+ '426.556 (+2.667)',
1116
+ '1.279.667 (+8.000)',
1098
1117
  '1.064.667 (+8.000)',
1099
1118
  '3.194.000 (+24.000)'],
1100
1119
  ['2',
1101
- '640.000 (-1.500)',
1102
- '1.280.000 (-3.000)',
1120
+ '644.000 (+4.000)',
1121
+ '1.288.000 (+8.000)',
1103
1122
  '1.073.500 (+8.500)',
1104
1123
  '2.147.000 (+17.000)'],
1105
1124
  ['1',
1106
- '1.310.000 (-3.000)',
1107
- '1.310.000 (-3.000)',
1125
+ '1.318.000 (+8.000)',
1126
+ '1.318.000 (+8.000)',
1108
1127
  '1.104.000 (+8.000)',
1109
1128
  '1.104.000 (+8.000)'],
1110
1129
  ['0.5',
1111
- '2.820.000 (-6.000)',
1112
- '1.410.000 (-3.000)',
1130
+ '2.836.000 (+16.000)',
1131
+ '1.418.000 (+8.000)',
1113
1132
  '1.208.000 (+8.000)',
1114
1133
  '604.000 (+4.000)'],
1115
- ['Update harga LM Antam :06 Mei 2024, pukul 08:30Harga pembelian kembali '
1116
- ':Rp. 1.203.000/gram (-3.000)',
1134
+ ['Update harga LM Antam :07 Mei 2024, pukul 08:23Harga pembelian kembali '
1135
+ ':Rp. 1.210.000/gram (+7.000)',
1117
1136
  'Update harga LM Pegadaian :31 Agustus 2023']],
1118
1137
  [['Spot Harga Emas Hari Ini (Market Open)'],
1119
1138
  ['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
1120
- ['Ounce\xa0(oz)', '2.309,40 (+6,83)', '16.094,00 (-108,00)', '37.167.484'],
1121
- ['Gram\xa0(gr)', '74,25', '16.094,00', '1.194.962 (-4.461)'],
1122
- ['Kilogram\xa0(kg)', '74.248,93', '16.094,00', '1.194.962.347'],
1123
- ['Update harga emas :06 Mei 2024, pukul 11:44Update kurs :06 Mei 2024, pukul '
1124
- '09:10']],
1139
+ ['Ounce\xa0(oz)', '2.314,68 (-8,97)', '16.025,01 (-68,99)', '37.092.770'],
1140
+ ['Gram\xa0(gr)', '74,42', '16.025,01', '1.192.560 (-9.776)'],
1141
+ ['Kilogram\xa0(kg)', '74.418,69', '16.025,01', '1.192.560.254'],
1142
+ ['Update harga emas :07 Mei 2024, pukul 18:14Update kurs :07 Mei 2024, pukul '
1143
+ '13:10']],
1125
1144
  [['Gram', 'UBS Gold 99.99%'],
1126
1145
  ['Jual', 'Beli'],
1127
1146
  ['/ Batang', '/ Gram', '/ Batang', '/ Gram'],
1128
1147
  ['100',
1129
- '125.212.000 (-788.000)',
1130
- '1.252.120 (-7.880)',
1131
- '122.685.000 (-700.000)',
1132
- '1.226.850 (-7.000)'],
1148
+ '126.000.000 (+1.200.000)',
1149
+ '1.260.000 (+12.000)',
1150
+ '123.135.000 (+450.000)',
1151
+ '1.231.350 (+4.500)'],
1133
1152
  ['50',
1134
- '62.645.000 (-305.000)',
1135
- '1.252.900 (-6.100)',
1136
- '61.395.000 (-350.000)',
1137
- '1.227.900 (-7.000)'],
1153
+ '62.900.000 (+400.000)',
1154
+ '1.258.000 (+8.000)',
1155
+ '61.620.000 (+225.000)',
1156
+ '1.232.400 (+4.500)'],
1138
1157
  ['25',
1139
- '31.362.000 (-138.000)',
1140
- '1.254.480 (-5.520)',
1141
- '30.800.000 (-175.000)',
1142
- '1.232.000 (-7.000)'],
1158
+ '31.500.000 (+200.000)',
1159
+ '1.260.000 (+8.000)',
1160
+ '30.912.500 (+112.500)',
1161
+ '1.236.500 (+4.500)'],
1143
1162
  ['10',
1144
- '12.595.000 (-55.000)',
1145
- '1.259.500 (-5.500)',
1146
- '12.370.000 (-70.000)',
1147
- '1.237.000 (-7.000)'],
1163
+ '12.650.000 (+80.000)',
1164
+ '1.265.000 (+8.000)',
1165
+ '12.415.000 (+45.000)',
1166
+ '1.241.500 (+4.500)'],
1148
1167
  ['5',
1149
- '6.325.000 (-25.000)',
1150
- '1.265.000 (-5.000)',
1151
- '6.237.000 (-35.000)',
1152
- '1.247.400 (-7.000)'],
1168
+ '6.350.000 (+40.000)',
1169
+ '1.270.000 (+8.000)',
1170
+ '6.259.500 (+22.500)',
1171
+ '1.251.900 (+4.500)'],
1153
1172
  ['1',
1154
- '1.310.000 (-5.000)',
1155
- '1.310.000 (-5.000)',
1156
- '1.280.000 (-7.000)',
1157
- '1.280.000 (-7.000)'],
1158
- ['', 'Update :06 Mei 2024, pukul 11:07']],
1173
+ '1.315.000 (+5.000)',
1174
+ '1.315.000 (+5.000)',
1175
+ '1.284.500 (+4.500)',
1176
+ '1.284.500 (+4.500)'],
1177
+ ['', 'Update :07 Mei 2024, pukul 11:17']],
1159
1178
  [['Konversi Satuan'],
1160
1179
  ['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
1161
1180
  ['Ounce\xa0(oz)', '1', '31,1034767696', '0,0311034768'],
@@ -1165,37 +1184,37 @@ Output:
1165
1184
  ['Waktu', 'Emas'],
1166
1185
  ['Unit', 'USD', 'IDR'],
1167
1186
  ['Angka', '+/-', 'Angka', '+/-'],
1168
- ['Hari Ini', 'Kurs', '', '', '16.202', '-108-0,67%'],
1169
- ['oz', '2.302,57', '+6,83+0,30%', '37.306.239', '-138.756-0,37%'],
1170
- ['gr', '74,03', '+0,22+0,30%', '1.199.423', '-4.461-0,37%'],
1171
- ['30 Hari', 'Kurs', '', '', '15.907', '+187+1,18%'],
1172
- ['oz', '2.329,93', '-20,53-0,88%', '37.062.197', '+105.287+0,28%'],
1173
- ['gr', '74,91', '-0,66-0,88%', '1.191.577', '+3.385+0,28%'],
1174
- ['2 Bulan', 'Kurs', '', '', '15.723', '+371+2,36%'],
1175
- ['oz', '2.156,44', '+152,96+7,09%', '33.905.706', '+3.261.777+9,62%'],
1176
- ['gr', '69,33', '+4,92+7,09', '1.090.094', '+104.869+9,62%'],
1177
- ['6 Bulan', 'Kurs', '', '', '15.593', '+501+3,21%'],
1178
- ['oz', '1.954,36', '+355,04+18,17%', '30.474.335', '+6.693.148+21,96%'],
1179
- ['gr', '62,83', '+11,41+18,17%', '979.773', '+215.190+21,96%'],
1180
- ['1 Tahun', 'Kurs', '', '', '15.731', '+363+2,31%'],
1181
- ['oz', '1.823,86', '+485,54+26,62%', '28.691.142', '+8.476.342+29,54%'],
1182
- ['gr', '58,64', '+15,61+26,62%', '922.442', '+272.521+29,54%'],
1183
- ['2 Tahun', 'Kurs', '', '', '14.418', '+1.676+11,62%'],
1184
- ['oz', '1.883,86', '+425,54+22,59%', '27.161.493', '+10.005.990+36,84%'],
1185
- ['gr', '60,57', '+13,68+22,59%', '873.262', '+321.700+36,84%'],
1186
- ['3 Tahun', 'Kurs', '', '', '14.364', '+1.730+12,04%'],
1187
- ['oz', '1.831,48', '+477,92+26,09%', '26.307.379', '+10.860.105+41,28%'],
1188
- ['gr', '58,88', '+15,37+26,09%', '845.802', '+349.160+41,28%'],
1189
- ['5 Tahun', 'Kurs', '', '', '14.305', '+1.789+12,51%'],
1190
- ['oz', '1.280,40', '+1.029,00+80,37%', '18.316.122', '+18.851.362+102,92%'],
1191
- ['gr', '41,17', '+33,08+80,37%', '588.877', '+606.085+102,92%']])
1187
+ ['Hari Ini', 'Kurs', '', '', '16.094', '-69-0,43%'],
1188
+ ['oz', '2.323,65', '-8,97-0,39%', '37.396.823', '-304.053-0,81%'],
1189
+ ['gr', '74,71', '-0,29-0,39%', '1.202.336', '-9.776-0,81%'],
1190
+ ['30 Hari', 'Kurs', '', '', '15.907', '+118+0,74%'],
1191
+ ['oz', '2.329,93', '-15,25-0,65%', '37.062.197', '+30.574+0,08%'],
1192
+ ['gr', '74,91', '-0,49-0,65%', '1.191.577', '+983+0,08%'],
1193
+ ['2 Bulan', 'Kurs', '', '', '15.658', '+367+2,34%'],
1194
+ ['oz', '2.179,67', '+135,01+6,19%', '34.129.273', '+2.963.497+8,68%'],
1195
+ ['gr', '70,08', '+4,34+6,19', '1.097.282', '+95.279+8,68%'],
1196
+ ['6 Bulan', 'Kurs', '', '', '15.629', '+396+2,53%'],
1197
+ ['oz', '1.960,90', '+353,78+18,04%', '30.646.906', '+6.445.864+21,03%'],
1198
+ ['gr', '63,04', '+11,37+18,04%', '985.321', '+207.239+21,03%'],
1199
+ ['1 Tahun', 'Kurs', '', '', '15.731', '+294+1,87%'],
1200
+ ['oz', '1.823,86', '+490,82+26,91%', '28.691.142', '+8.401.628+29,28%'],
1201
+ ['gr', '58,64', '+15,78+26,91%', '922.442', '+270.119+29,28%'],
1202
+ ['2 Tahun', 'Kurs', '', '', '14.418', '+1.607+11,15%'],
1203
+ ['oz', '1.883,86', '+430,82+22,87%', '27.161.493', '+9.931.277+36,56%'],
1204
+ ['gr', '60,57', '+13,85+22,87%', '873.262', '+319.298+36,56%'],
1205
+ ['3 Tahun', 'Kurs', '', '', '14.364', '+1.661+11,56%'],
1206
+ ['oz', '1.831,43', '+483,25+26,39%', '26.306.661', '+10.786.110+41,00%'],
1207
+ ['gr', '58,88', '+15,54+26,39%', '845.779', '+346.781+41,00%'],
1208
+ ['5 Tahun', 'Kurs', '', '', '14.338', '+1.687+11,77%'],
1209
+ ['oz', '1.284,03', '+1.030,65+80,27%', '18.410.422', '+18.682.348+101,48%'],
1210
+ ['gr', '41,28', '+33,14+80,27%', '591.909', '+600.651+101,48%']])
1192
1211
  (['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
1193
1212
  [[''],
1194
1213
  ['Emas 24 KaratHarga Emas 1 Gram', ''],
1195
- ['USD', '74,25↑', '+0,22+0,30%'],
1196
- ['KURS', '16.019,60↑', '+50,90+0,32%'],
1197
- ['IDR', '1.189.438,23↑', '+7.285,83+0,62%'],
1198
- ['Senin, 06 Mei 2024 11:44']],
1214
+ ['USD', '74,42↓', '-0,29-0,39%'],
1215
+ ['KURS', '16.057,00↑', '+13,10+0,08%'],
1216
+ ['IDR', '1.194.940,91↓', '-3.652,05-0,30%'],
1217
+ ['Selasa, 07 Mei 2024 18:14']],
1199
1218
  [[''],
1200
1219
  ['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
1201
1220
  'Hari Ini',
@@ -1206,19 +1225,19 @@ Output:
1206
1225
  '']],
1207
1226
  [['Pergerakkan Harga Emas 1 Gram'],
1208
1227
  ['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
1209
- ['USD', '74,03', '74,03 - 74,25', '74,14'],
1210
- ['KURS', '15.968,70', '15.968,70 - 16.019,60', '15.994,15'],
1211
- ['IDR', '1.182.152,40', '1.182.152,40 - 1.189.438,23', '1.185.795,32'],
1228
+ ['USD', '74,71', '74,42 - 74,71', '74,57'],
1229
+ ['KURS', '16.043,90', '16.043,90 - 16.057,00', '16.050,45'],
1230
+ ['IDR', '1.198.592,96', '1.194.940,91 - 1.198.592,96', '1.196.766,94'],
1212
1231
  [''],
1213
1232
  ['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
1214
- ['USD', '66,32', '64,07 - 77,14', '+7,93 (11,96%)'],
1215
- ['KURS', '15.390,10', '15.390,00 - 16.307,80', '+629,50 (4,09%)'],
1216
- ['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+168.708,70 (16,53%)'],
1233
+ ['USD', '66,32', '64,07 - 77,14', '+8,10 (12,21%)'],
1234
+ ['KURS', '15.390,10', '15.390,00 - 16.307,80', '+666,90 (4,33%)'],
1235
+ ['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+174.211,38 (17,07%)'],
1217
1236
  [''],
1218
1237
  ['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
1219
- ['USD', '64,87', '58,43 - 77,14', '+9,38 (14,46%)'],
1220
- ['KURS', '14.669,40', '14.674,80 - 16.307,80', '+1.350,20 (9,20%)'],
1221
- ['IDR', '951.626,36', '912.925,68 - 1.256.829,06', '+237.811,87 (24,99%)']])
1238
+ ['USD', '64,84', '58,43 - 77,14', '+9,58 (14,77%)'],
1239
+ ['KURS', '14.674,80', '14.674,80 - 16.307,80', '+1.382,20 (9,42%)'],
1240
+ ['IDR', '951.570,92', '912.925,68 - 1.256.829,06', '+243.369,99 (25,58%)']])
1222
1241
  ```
1223
1242
 
1224
1243
  ## iloads
@@ -1348,7 +1367,7 @@ Output:
1348
1367
  ```py
1349
1368
  8
1350
1369
  ['mana', 'aja']
1351
- [<Element a at 0x7e55639630>, <Element a at 0x7e55670e60>, <Element a at 0x7e55670f00>, <Element a at 0x7e55670f50>, <Element a at 0x7e55670fa0>, <Element a at 0x7e55670ff0>, <Element a at 0x7e55671040>, <Element a at 0x7e55671090>, <Element a at 0x7e556710e0>, <Element a at 0x7e55671130>, <Element a at 0x7e55671180>, <Element a at 0x7e556711d0>, <Element a at 0x7e55671220>, <Element a at 0x7e55671270>, <Element a at 0x7e556712c0>, <Element a at 0x7e55671310>, <Element a at 0x7e55671360>, <Element a at 0x7e556713b0>]
1370
+ [<Element a at 0x7c97e8e440>, <Element a at 0x7c97ede170>, <Element a at 0x7c97ede210>, <Element a at 0x7c97ede260>, <Element a at 0x7c97ede2b0>, <Element a at 0x7c97ede300>, <Element a at 0x7c97ede350>, <Element a at 0x7c97ede3a0>, <Element a at 0x7c97ede3f0>, <Element a at 0x7c97ede440>, <Element a at 0x7c97ede490>, <Element a at 0x7c97ede4e0>, <Element a at 0x7c97ede530>, <Element a at 0x7c97ede580>, <Element a at 0x7c97ede5d0>, <Element a at 0x7c97ede620>, <Element a at 0x7c97ede670>, <Element a at 0x7c97ede6c0>]
1352
1371
  False
1353
1372
  ```
1354
1373
 
@@ -1410,7 +1429,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
1410
1429
 
1411
1430
  Output:
1412
1431
  ```py
1413
- <generator object iscandir at 0x7e5562c740>
1432
+ <generator object iscandir at 0x7c97de7940>
1414
1433
  [PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
1415
1434
  ```
1416
1435
 
@@ -1443,80 +1462,80 @@ iprint(ivars(__import__('pypipr')))
1443
1462
 
1444
1463
  Output:
1445
1464
  ```py
1446
- {'class': {'APIMixinView': <class 'pypipr.APIMixinView.APIMixinView'>,
1447
- 'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
1465
+ {'function': {'avg': <function avg at 0x7cb239fb00>,
1466
+ 'get_filemtime': <function get_filemtime at 0x7ca2a33d80>,
1467
+ 'print_colorize': <function print_colorize at 0x7ca2a33f60>,
1468
+ 'print_log': <function print_log at 0x7ca2a33e20>,
1469
+ 'console_run': <function console_run at 0x7ca2a33ec0>,
1470
+ 'auto_reload': <function auto_reload at 0x7ca53ab2e0>,
1471
+ 'basename': <function basename at 0x7ca2a33ce0>,
1472
+ 'chr_to_int': <function chr_to_int at 0x7ca2a38540>,
1473
+ 'int_to_chr': <function int_to_chr at 0x7ca2a385e0>,
1474
+ 'irange': <function irange at 0x7ca2a38860>,
1475
+ 'batchmaker': <function batchmaker at 0x7ca2a38220>,
1476
+ 'calculate': <function calculate at 0x7ca2a38360>,
1477
+ 'batch_calculate': <function batch_calculate at 0x7ca2a380e0>,
1478
+ 'bin_to_int': <function bin_to_int at 0x7ca2a38180>,
1479
+ 'is_empty': <function is_empty at 0x7ca2a38fe0>,
1480
+ 'exit_if_empty': <function exit_if_empty at 0x7ca2a38ea0>,
1481
+ 'input_char': <function input_char at 0x7ca2a384a0>,
1482
+ 'get_by_index': <function get_by_index at 0x7ca2a39080>,
1483
+ 'choices': <function choices at 0x7ca2a39260>,
1484
+ 'chunk_array': <function chunk_array at 0x7ca2a39300>,
1485
+ 'create_folder': <function create_folder at 0x7ca2a393a0>,
1486
+ 'datetime_from_string': <function datetime_from_string at 0x7ca2a39440>,
1487
+ 'datetime_now': <function datetime_now at 0x7ca2a394e0>,
1488
+ 'dict_first': <function dict_first at 0x7ca2a3b6a0>,
1489
+ 'dirname': <function dirname at 0x7ca2a3b740>,
1490
+ 'is_iterable': <function is_iterable at 0x7ca2a3b920>,
1491
+ 'to_str': <function to_str at 0x7ca2a3b9c0>,
1492
+ 'filter_empty': <function filter_empty at 0x7ca2a3b7e0>,
1493
+ 'get_class_method': <function get_class_method at 0x7ca2a3b880>,
1494
+ 'get_filesize': <function get_filesize at 0x7ca2a3bb00>,
1495
+ 'github_init': <function github_init at 0x7ca2a3bba0>,
1496
+ 'github_pull': <function github_pull at 0x7ca2a3bc40>,
1497
+ 'github_push': <function github_push at 0x7ca2a3bd80>,
1498
+ 'github_user': <function github_user at 0x7ca2a3be20>,
1499
+ 'hex_to_int': <function hex_to_int at 0x7ca2a3bec0>,
1500
+ 'iargv': <function iargv at 0x7ca2a3bf60>,
1501
+ 'idumps_html': <function idumps_html at 0x7ca2870220>,
1502
+ 'idumps': <function idumps at 0x7ca28700e0>,
1503
+ 'int_to_int': <function int_to_int at 0x7ca28dd080>,
1504
+ 'ienumerate': <function ienumerate at 0x7ca28af420>,
1505
+ 'ienv': <function ienv at 0x7ca28dcf40>,
1506
+ 'iexec': <function iexec at 0x7ca28dd120>,
1507
+ 'ijoin': <function ijoin at 0x7ca28dd260>,
1508
+ 'iloads_html': <function iloads_html at 0x7ca28dd440>,
1509
+ 'iloads': <function iloads at 0x7cb2dea660>,
1510
+ 'int_to_bin': <function int_to_bin at 0x7ca28dd1c0>,
1511
+ 'int_to_hex': <function int_to_hex at 0x7ca28dd3a0>,
1512
+ 'int_to_oct': <function int_to_oct at 0x7ca28dd4e0>,
1513
+ 'is_valid_url': <function is_valid_url at 0x7ca28dd6c0>,
1514
+ 'iopen': <function iopen at 0x7ca294cea0>,
1515
+ 'iprint': <function iprint at 0x7ca28dd620>,
1516
+ 'ireplace': <function ireplace at 0x7ca28dd9e0>,
1517
+ 'iscandir': <function iscandir at 0x7ca27e2200>,
1518
+ 'isplit': <function isplit at 0x7ca27e22a0>,
1519
+ 'ivars': <function ivars at 0x7ca27e2340>,
1520
+ 'log': <function log at 0x7ca27e23e0>,
1521
+ 'oct_to_int': <function oct_to_int at 0x7ca27e2480>,
1522
+ 'password_generator': <function password_generator at 0x7ca27e2520>,
1523
+ 'pip_freeze_without_version': <function pip_freeze_without_version at 0x7ca27e2660>,
1524
+ 'poetry_publish': <function poetry_publish at 0x7ca27e2700>,
1525
+ 'poetry_update_version': <function poetry_update_version at 0x7ca27e2840>,
1526
+ 'print_dir': <function print_dir at 0x7ca27e2a20>,
1527
+ 'print_to_last_line': <function print_to_last_line at 0x7ca27e2ac0>,
1528
+ 'random_bool': <function random_bool at 0x7ca27e2b60>,
1529
+ 'restart': <function restart at 0x7ca27e2c00>,
1530
+ 'set_timeout': <function set_timeout at 0x7ca27e2ca0>,
1531
+ 'sets_ordered': <function sets_ordered at 0x7ca27e2d40>,
1532
+ 'str_cmp': <function str_cmp at 0x7ca27e2de0>,
1533
+ 'text_colorize': <function text_colorize at 0x7ca27e2e80>},
1534
+ 'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
1448
1535
  'PintUregQuantity': <class 'pint.Quantity'>,
1449
1536
  'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
1450
- 'function': {'avg': <function avg at 0x7e642ae700>,
1451
- 'get_filemtime': <function get_filemtime at 0x7e5b2cade0>,
1452
- 'print_colorize': <function print_colorize at 0x7e5b2cafc0>,
1453
- 'print_log': <function print_log at 0x7e5b38ab60>,
1454
- 'console_run': <function console_run at 0x7e5b2cae80>,
1455
- 'auto_reload': <function auto_reload at 0x7e5b2b7ec0>,
1456
- 'basename': <function basename at 0x7e5b2cad40>,
1457
- 'chr_to_int': <function chr_to_int at 0x7e5b2cb560>,
1458
- 'int_to_chr': <function int_to_chr at 0x7e5b2cb600>,
1459
- 'irange': <function irange at 0x7e5b2cb880>,
1460
- 'batchmaker': <function batchmaker at 0x7e5b2cb240>,
1461
- 'calculate': <function calculate at 0x7e5b2cb380>,
1462
- 'batch_calculate': <function batch_calculate at 0x7e5b2cb100>,
1463
- 'bin_to_int': <function bin_to_int at 0x7e5b2cb1a0>,
1464
- 'is_empty': <function is_empty at 0x7e5b0f0040>,
1465
- 'exit_if_empty': <function exit_if_empty at 0x7e5b2cbec0>,
1466
- 'input_char': <function input_char at 0x7e5b2cbf60>,
1467
- 'get_by_index': <function get_by_index at 0x7e5b0f00e0>,
1468
- 'choices': <function choices at 0x7e5b0f02c0>,
1469
- 'chunk_array': <function chunk_array at 0x7e5b0f0360>,
1470
- 'create_folder': <function create_folder at 0x7e5b0f0400>,
1471
- 'datetime_from_string': <function datetime_from_string at 0x7e5b0f04a0>,
1472
- 'datetime_now': <function datetime_now at 0x7e5b0f0540>,
1473
- 'dict_first': <function dict_first at 0x7e5b0f05e0>,
1474
- 'dirname': <function dirname at 0x7e5b0f0680>,
1475
- 'is_iterable': <function is_iterable at 0x7e5b0f0860>,
1476
- 'to_str': <function to_str at 0x7e5b0f0900>,
1477
- 'filter_empty': <function filter_empty at 0x7e5b0f0720>,
1478
- 'get_class_method': <function get_class_method at 0x7e5b0f07c0>,
1479
- 'get_filesize': <function get_filesize at 0x7e5b0f0a40>,
1480
- 'github_pull': <function github_pull at 0x7e5b0f0ae0>,
1481
- 'github_push': <function github_push at 0x7e5b0f0c20>,
1482
- 'github_user': <function github_user at 0x7e5b0f0cc0>,
1483
- 'hex_to_int': <function hex_to_int at 0x7e5b0f0d60>,
1484
- 'iargv': <function iargv at 0x7e5b0f0e00>,
1485
- 'idumps_html': <function idumps_html at 0x7e5b0f1080>,
1486
- 'idumps': <function idumps at 0x7e5b0f0f40>,
1487
- 'int_to_int': <function int_to_int at 0x7e5b1cd9e0>,
1488
- 'ienumerate': <function ienumerate at 0x7e5b0f1580>,
1489
- 'ienv': <function ienv at 0x7e5b1cd8a0>,
1490
- 'iexec': <function iexec at 0x7e5b1cda80>,
1491
- 'ijoin': <function ijoin at 0x7e5b1cdbc0>,
1492
- 'iloads_html': <function iloads_html at 0x7e5b1cdda0>,
1493
- 'iloads': <function iloads at 0x7e5b1cdb20>,
1494
- 'int_to_bin': <function int_to_bin at 0x7e5b1cdd00>,
1495
- 'int_to_hex': <function int_to_hex at 0x7e5b1cde40>,
1496
- 'int_to_oct': <function int_to_oct at 0x7e5b1cdee0>,
1497
- 'is_valid_url': <function is_valid_url at 0x7e5b1ce0c0>,
1498
- 'iopen': <function iopen at 0x7e5afda520>,
1499
- 'iprint': <function iprint at 0x7e5b1ce020>,
1500
- 'ireplace': <function ireplace at 0x7e5b1ce3e0>,
1501
- 'iscandir': <function iscandir at 0x7e5b091c60>,
1502
- 'isplit': <function isplit at 0x7e5b091d00>,
1503
- 'ivars': <function ivars at 0x7e5b091da0>,
1504
- 'log': <function log at 0x7e5b091e40>,
1505
- 'oct_to_int': <function oct_to_int at 0x7e5b091ee0>,
1506
- 'password_generator': <function password_generator at 0x7e5b091f80>,
1507
- 'pip_freeze_without_version': <function pip_freeze_without_version at 0x7e5b0920c0>,
1508
- 'poetry_publish': <function poetry_publish at 0x7e5b092160>,
1509
- 'poetry_update_version': <function poetry_update_version at 0x7e5b0922a0>,
1510
- 'print_dir': <function print_dir at 0x7e5b092480>,
1511
- 'print_to_last_line': <function print_to_last_line at 0x7e5b092520>,
1512
- 'random_bool': <function random_bool at 0x7e5b0925c0>,
1513
- 'restart': <function restart at 0x7e5b092660>,
1514
- 'set_timeout': <function set_timeout at 0x7e5b092700>,
1515
- 'sets_ordered': <function sets_ordered at 0x7e5b0927a0>,
1516
- 'str_cmp': <function str_cmp at 0x7e5b092840>,
1517
- 'text_colorize': <function text_colorize at 0x7e5b0928e0>},
1518
1537
  'variable': {'LINUX': True,
1519
- 'PintUreg': <pint.registry.UnitRegistry object at 0x7e642b46d0>,
1538
+ 'PintUreg': <pint.registry.UnitRegistry object at 0x7cb23e9fd0>,
1520
1539
  'WINDOWS': False},
1521
1540
  'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
1522
1541
  'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
@@ -1606,7 +1625,7 @@ print(password_generator())
1606
1625
 
1607
1626
  Output:
1608
1627
  ```py
1609
- A{rjo=Qb
1628
+ IyarQ(OQ
1610
1629
  ```
1611
1630
 
1612
1631
  ## pip_freeze_without_version
@@ -1664,7 +1683,7 @@ Output:
1664
1683
  __enter__ : https:/www.google.com
1665
1684
  __fspath__ : https:/www.google.com
1666
1685
  __getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
1667
- __hash__ : 870142534568176700
1686
+ __hash__ : 1618622226722348951
1668
1687
  __init__ : None
1669
1688
  __init_subclass__ : None
1670
1689
  __module__ : pathlib
@@ -1677,8 +1696,8 @@ Output:
1677
1696
  _cached_cparts : ['https:', 'www.google.com']
1678
1697
  _cparts : ['https:', 'www.google.com']
1679
1698
  _drv :
1680
- _flavour : <pathlib._PosixFlavour object at 0x7e6eb28ad0>
1681
- _hash : 870142534568176700
1699
+ _flavour : <pathlib._PosixFlavour object at 0x7cb21ad010>
1700
+ _hash : 1618622226722348951
1682
1701
  _parts : ['https:', 'www.google.com']
1683
1702
  _root :
1684
1703
  _str : https:/www.google.com
@@ -1700,7 +1719,7 @@ Output:
1700
1719
  is_reserved : False
1701
1720
  is_socket : False
1702
1721
  is_symlink : False
1703
- iterdir : <generator object Path.iterdir at 0x7e5561a960>
1722
+ iterdir : <generator object Path.iterdir at 0x7c97ea9b60>
1704
1723
  joinpath : https:/www.google.com
1705
1724
  name : www.google.com
1706
1725
  parent : https:
@@ -1774,7 +1793,7 @@ x.cancel()
1774
1793
 
1775
1794
  Output:
1776
1795
  ```py
1777
- <Timer(Thread-2, started 542568856816)>
1796
+ <Timer(Thread-2, started 535104982256)>
1778
1797
  menghentikan timeout 7
1779
1798
  ```
1780
1799
 
@@ -1792,7 +1811,7 @@ print(list(sets_ordered(array)))
1792
1811
 
1793
1812
  Output:
1794
1813
  ```py
1795
- <generator object sets_ordered at 0x7e5564c930>
1814
+ <generator object sets_ordered at 0x7ca537d700>
1796
1815
  [2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
1797
1816
  ```
1798
1817
 
@@ -1827,31 +1846,6 @@ text_colorize("Print some text", color=colorama.Fore.RED)
1827
1846
 
1828
1847
  # CLASS
1829
1848
 
1830
- ## APIMixinView
1831
-
1832
- `APIMixinView()`
1833
-
1834
- APIView adalah class view untuk membuat Website API
1835
-
1836
- Cara kerjanya adalah dengan menggunakan variabel GET
1837
- untuk menerima data.
1838
- Cara ini dipilih untuk menghindari CORS protection.
1839
-
1840
- Key dan value dari parameter get akan disimpan
1841
- dalam variabel dictionary APIDict yg bisa langsung
1842
- diakses.
1843
-
1844
- Class ini tidak bisa digunakan sendiri.
1845
- Class ini harus menjadi mixin Class View karena
1846
- perlu trigger untuk memanggil method get().
1847
-
1848
-
1849
- ```py
1850
- class ExampleTodoAddView(APIMixinView, View):
1851
- def process_data(self, *args, **kwargs):
1852
- return TodoModel.objects.create(**self.APIDict)
1853
- ```
1854
-
1855
1849
  ## ComparePerformance
1856
1850
 
1857
1851
  `ComparePerformance()`
@@ -1887,15 +1881,15 @@ print(ExampleComparePerformance().compare_performance())
1887
1881
 
1888
1882
  Output:
1889
1883
  ```py
1890
- {'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7e5564cad0>,
1884
+ {'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7ca537d630>,
1891
1885
  'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
1892
1886
  'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
1893
1887
  'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
1894
- {'a': 115, 'b': 143, 'c': 100, 'd': 181}
1895
- {'a': 126, 'b': 130, 'c': 100, 'd': 200}
1896
- {'a': 112, 'b': 124, 'c': 100, 'd': 160}
1897
- {'a': 111, 'b': 126, 'c': 100, 'd': 151}
1898
- {'a': 118, 'b': 127, 'c': 100, 'd': 159}
1888
+ {'a': 100, 'b': 106, 'c': 103, 'd': 165}
1889
+ {'a': 124, 'b': 149, 'c': 100, 'd': 183}
1890
+ {'a': 113, 'b': 127, 'c': 100, 'd': 159}
1891
+ {'a': 109, 'b': 119, 'c': 100, 'd': 146}
1892
+ {'a': 120, 'b': 135, 'c': 100, 'd': 161}
1899
1893
  ```
1900
1894
 
1901
1895
  ## PintUregQuantity
@@ -1,12 +1,11 @@
1
- pypipr/APIMixinView.py,sha256=VxfxcGX3wWji3_g2UCUp-mqmofpLeMFz8MEy02_U-yw,1375
2
1
  pypipr/ComparePerformance.py,sha256=PeeBF1agcUN1P-4j8djrmtQWga8wr5QosJ6yaeoJOzI,2229
3
2
  pypipr/LINUX.py,sha256=XF5CR2imyRv8hGQpsDLDs_RU8xsD1aZLpFldEzP-mkU,77
4
3
  pypipr/PintUreg.py,sha256=_jmHZhUn8AcgFkXvZ6OTsWnjtp-CYcXUJ-dG_QdcARY,222
5
4
  pypipr/PintUregQuantity.py,sha256=ErSZKB-GHShi1zKac30XgFdBwAUrxMo80IQzIjQ2HVc,118
6
5
  pypipr/RunParallel.py,sha256=3H6sVSeUSATQQsWBcDGTtaXuc-12Yc0XmDyVtsg3PMA,5992
7
6
  pypipr/WINDOWS.py,sha256=NMW-94lzdqwfEWv2lF_i2GcSHJFDwWjccFufpymg4-E,83
8
- pypipr/__init__.py,sha256=W_lXKC8Eft-XzdZW0vWLzkOzEQhOTi8ddA32WGOXDpY,3107
9
- pypipr/__terminal__.py,sha256=9BTxPYmMeQWLcEfxNJ-rVNIMOMXHqMMHvPUrLzZDxng,1425
7
+ pypipr/__init__.py,sha256=qmZSMlW57rXz82raQFW_TDPvbrdY7mbauYFkHh4Y5CY,3105
8
+ pypipr/__terminal__.py,sha256=N_NEXa0V5QLb-dkP1Vp_fYKNjE4jGTqkiYNwPPOXZtw,1412
10
9
  pypipr/auto_reload.py,sha256=FGchFBjQs_eT7CmOMLNYoch-17q7ySFOnPx5z1kbH3E,918
11
10
  pypipr/avg.py,sha256=wUtX3x8dgLoODhQLyMB-HRMVo8Ha2yz3cp7lgcUNbr0,218
12
11
  pypipr/basename.py,sha256=nypVfls6YL_7sY-MYHDcatm5flpBpGj2aMlIOKG9YqE,194
@@ -30,6 +29,7 @@ pypipr/get_by_index.py,sha256=wCJa8su5QZyZPA4UfEvR2nSEir0NfXcU0pxx2Lzpux8,335
30
29
  pypipr/get_class_method.py,sha256=RThCReUbF0uAlU-n5u0ELuP5yUbFqcKFfShswh7mgqc,639
31
30
  pypipr/get_filemtime.py,sha256=e8Glf4p9PJcL2yU8ZbrKOHYB-puaSNQsTS6Qhgp9F9s,227
32
31
  pypipr/get_filesize.py,sha256=2RCjrdZvaBDCdessFj-h7gLi13rPe6IXJXZcAoywWIA,196
32
+ pypipr/github_init.py,sha256=Q3WbDqobE3zJiOQa7IgUPwk8JLxawelLd4SVt7gZb8Q,959
33
33
  pypipr/github_pull.py,sha256=RLECOHA0Ki1wy5FJ9wWeyOGxwPc9nKKuY4R06d1o70E,186
34
34
  pypipr/github_push.py,sha256=LO60-QwiT3F__bQ3Foz1Znn6wy0reDck4Rf36r62OCg,874
35
35
  pypipr/github_user.py,sha256=fnds19Hlab3B94ORIYO9RiETF6p7dO-T3d1q_3XR-aw,483
@@ -76,7 +76,7 @@ pypipr/sets_ordered.py,sha256=ve2Nc1eNYD_7QaTf_4otEAvzL1XpZP2MjX0KHSXF5nA,325
76
76
  pypipr/str_cmp.py,sha256=2kavWiT4VTddXcBotF1CxDOWSygk5rFrbllKxBjw9dc,377
77
77
  pypipr/text_colorize.py,sha256=IVjaCnXBSBu4Rh8pTO3CxDvxpA265HVwyKX_-PRXCcI,396
78
78
  pypipr/to_str.py,sha256=vSuspf-ZQldf4enkssa9XH0WMjkmWug51G9ia0K5occ,597
79
- pypipr-1.0.125.dist-info/METADATA,sha256=8MdsW2_prfG2zUfTzW9aRhzcCB0pyvJueNY3Lg2uQ2k,53067
80
- pypipr-1.0.125.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
81
- pypipr-1.0.125.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
82
- pypipr-1.0.125.dist-info/RECORD,,
79
+ pypipr-1.0.127.dist-info/METADATA,sha256=Tr4S1wTdynBM_6g6kzpc9IU_rZrr0EOrK33tZFiVhFg,52679
80
+ pypipr-1.0.127.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
81
+ pypipr-1.0.127.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
82
+ pypipr-1.0.127.dist-info/RECORD,,
pypipr/APIMixinView.py DELETED
@@ -1,48 +0,0 @@
1
- from django.http.response import HttpResponse
2
-
3
-
4
- class APIMixinView:
5
- """
6
- APIView adalah class view untuk membuat Website API
7
-
8
- Cara kerjanya adalah dengan menggunakan variabel GET
9
- untuk menerima data.
10
- Cara ini dipilih untuk menghindari CORS protection.
11
-
12
- Key dan value dari parameter get akan disimpan
13
- dalam variabel dictionary APIDict yg bisa langsung
14
- diakses.
15
-
16
- Class ini tidak bisa digunakan sendiri.
17
- Class ini harus menjadi mixin Class View karena
18
- perlu trigger untuk memanggil method get().
19
-
20
-
21
- ```py
22
- class ExampleTodoAddView(APIMixinView, View):
23
- def process_data(self, *args, **kwargs):
24
- return TodoModel.objects.create(**self.APIDict)
25
- ```
26
- """
27
-
28
- APIDict = {}
29
-
30
- def get(self, *args, **kwargs):
31
- self.get_data(*args, **kwargs)
32
- if self.process_data(*args, **kwargs):
33
- return self.success(*args, **kwargs)
34
- return self.failure(*args, **kwargs)
35
-
36
- def get_data(self, *args, **kwargs):
37
- iterator = self.APIDict or self.request.GET
38
- for k, v in iterator.items():
39
- self.APIDict[k] = self.request.GET.get(k, v)
40
-
41
- def process_data(self, *args, **kwargs):
42
- return True
43
-
44
- def success(self, *args, **kwargs):
45
- return HttpResponse(status=200)
46
-
47
- def failure(self, *args, **kwargs):
48
- return HttpResponse(status=500)