pypipr 1.0.147__py3-none-any.whl → 1.0.148__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 +1 -0
- pypipr/django_runserver.py +37 -0
- {pypipr-1.0.147.dist-info → pypipr-1.0.148.dist-info}/METADATA +204 -206
- {pypipr-1.0.147.dist-info → pypipr-1.0.148.dist-info}/RECORD +6 -5
- {pypipr-1.0.147.dist-info → pypipr-1.0.148.dist-info}/WHEEL +0 -0
- {pypipr-1.0.147.dist-info → pypipr-1.0.148.dist-info}/entry_points.txt +0 -0
pypipr/__init__.py
CHANGED
@@ -21,6 +21,7 @@ from .datetime_from_string import datetime_from_string
|
|
21
21
|
from .datetime_now import datetime_now
|
22
22
|
from .dict_first import dict_first
|
23
23
|
from .dirname import dirname
|
24
|
+
from .django_runserver import django_runserver
|
24
25
|
from .exit_if_empty import exit_if_empty
|
25
26
|
from .filter_empty import filter_empty
|
26
27
|
from .get_by_index import get_by_index
|
@@ -0,0 +1,37 @@
|
|
1
|
+
from queue import Queue
|
2
|
+
|
3
|
+
from .console_run import console_run
|
4
|
+
from .RunParallel import RunParallel
|
5
|
+
|
6
|
+
|
7
|
+
def collectstatic():
|
8
|
+
console_run("python manage.py collectstatic --noinput")
|
9
|
+
|
10
|
+
|
11
|
+
def makemigrations():
|
12
|
+
console_run("python manage.py makemigrations")
|
13
|
+
|
14
|
+
|
15
|
+
def migrate():
|
16
|
+
console_run("python manage.py migrate")
|
17
|
+
|
18
|
+
|
19
|
+
def runserver():
|
20
|
+
console_run("python -Wa manage.py runserver 0.0.0.0:8080")
|
21
|
+
|
22
|
+
|
23
|
+
class RP(RunParallel):
|
24
|
+
def static_update(self, result: dict, q: Queue):
|
25
|
+
collectstatic()
|
26
|
+
|
27
|
+
def database_update(self, result: dict, q: Queue):
|
28
|
+
makemigrations()
|
29
|
+
migrate()
|
30
|
+
|
31
|
+
|
32
|
+
def django_runserver():
|
33
|
+
try:
|
34
|
+
RP().run_multi_threading()
|
35
|
+
runserver()
|
36
|
+
except KeyboardInterrupt:
|
37
|
+
pass
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.148
|
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
|
252
|
-
<generator object int_range at
|
251
|
+
<generator object int_range at 0x7e2162ab40>
|
252
|
+
<generator object int_range at 0x7e2162ab40>
|
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
|
284
|
+
<generator object batchmaker at 0x7e2158ec20>
|
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
|
338
|
+
<generator object batch_calculate at 0x7e213207c0>
|
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
|
|
@@ -441,7 +441,7 @@ print(list(chunk_array(arr, 5)))
|
|
441
441
|
|
442
442
|
Output:
|
443
443
|
```py
|
444
|
-
<generator object chunk_array at
|
444
|
+
<generator object chunk_array at 0x7e2162ac40>
|
445
445
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
446
446
|
```
|
447
447
|
|
@@ -492,9 +492,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
492
492
|
|
493
493
|
Output:
|
494
494
|
```py
|
495
|
-
2024-08-
|
496
|
-
2024-08-
|
497
|
-
2024-08-05
|
495
|
+
2024-08-06 10:10:37.562717+07:00
|
496
|
+
2024-08-06 03:10:37.563887+00:00
|
497
|
+
2024-08-05 20:10:37.567294-07:00
|
498
498
|
```
|
499
499
|
|
500
500
|
## dict_first
|
@@ -535,6 +535,10 @@ Output:
|
|
535
535
|
/ini/nama/folder/ke
|
536
536
|
```
|
537
537
|
|
538
|
+
## django_runserver
|
539
|
+
|
540
|
+
`django_runserver()`
|
541
|
+
|
538
542
|
## is_iterable
|
539
543
|
|
540
544
|
`is_iterable(var, str_is_iterable=False)`
|
@@ -600,7 +604,7 @@ iprint(filter_empty(var))
|
|
600
604
|
|
601
605
|
Output:
|
602
606
|
```py
|
603
|
-
<generator object filter_empty at
|
607
|
+
<generator object filter_empty at 0x7e213204f0>
|
604
608
|
[1, '0', True, {}, ['eee']]
|
605
609
|
```
|
606
610
|
|
@@ -647,8 +651,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
647
651
|
|
648
652
|
Output:
|
649
653
|
```py
|
650
|
-
<generator object get_class_method at
|
651
|
-
[<function ExampleGetClassMethod.a at
|
654
|
+
<generator object get_class_method at 0x7e21320a90>
|
655
|
+
[<function ExampleGetClassMethod.a at 0x7e2133a480>, <function ExampleGetClassMethod.b at 0x7e2133a520>, <function ExampleGetClassMethod.c at 0x7e2133a660>, <function ExampleGetClassMethod.d at 0x7e2133a700>]
|
652
656
|
```
|
653
657
|
|
654
658
|
## get_filesize
|
@@ -788,6 +792,7 @@ Output:
|
|
788
792
|
'datetime_now',
|
789
793
|
'dict_first',
|
790
794
|
'dirname',
|
795
|
+
'django_runserver',
|
791
796
|
'exit_if_empty',
|
792
797
|
'filter_empty',
|
793
798
|
'functools',
|
@@ -1065,7 +1070,7 @@ Output:
|
|
1065
1070
|
|
1066
1071
|
## ienumerate
|
1067
1072
|
|
1068
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1073
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x7e23332ac0>)`
|
1069
1074
|
|
1070
1075
|
meningkatkan fungsi enumerate() pada python
|
1071
1076
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1078,7 +1083,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1078
1083
|
|
1079
1084
|
Output:
|
1080
1085
|
```py
|
1081
|
-
<generator object ienumerate at
|
1086
|
+
<generator object ienumerate at 0x7e21320b80>
|
1082
1087
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1083
1088
|
```
|
1084
1089
|
|
@@ -1145,7 +1150,7 @@ print(ijoin(10, ' '))
|
|
1145
1150
|
|
1146
1151
|
Output:
|
1147
1152
|
```py
|
1148
|
-
|
1153
|
+
asd, weq, dfs, qweqw
|
1149
1154
|
,ini,path,seperti,url,
|
1150
1155
|
ini,path,seperti,url
|
1151
1156
|
<li>satu</li>
|
@@ -1190,118 +1195,110 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
|
|
1190
1195
|
Output:
|
1191
1196
|
```py
|
1192
1197
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1193
|
-
[['Harga Emas Hari Ini -
|
1194
|
-
['Spot Emas USD
|
1195
|
-
'Kurs IDR↓16.
|
1196
|
-
'Emas IDR↓1.
|
1197
|
-
['LM Antam (Jual)↓1.
|
1198
|
-
'LM Antam (Beli)↓1.
|
1198
|
+
[['Harga Emas Hari Ini - Selasa, 06 Agustus 2024'],
|
1199
|
+
['Spot Emas USD↑2.408,01 (+4,43) / oz',
|
1200
|
+
'Kurs IDR↓16.154,00 (-80,00) / USD',
|
1201
|
+
'Emas IDR↓1.250.632 (-3.881) / gr'],
|
1202
|
+
['LM Antam (Jual)↓1.413.000 (-7.000) / gr',
|
1203
|
+
'LM Antam (Beli)↓1.266.000 (-7.000) / gr']],
|
1199
1204
|
[['Harga Emas Hari Ini'],
|
1200
1205
|
['Gram', 'Gedung Antam Jakarta', 'Pegadaian'],
|
1201
1206
|
['per Gram (Rp)', 'per Batangan (Rp)', 'per Gram (Rp)', 'per Batangan (Rp)'],
|
1202
1207
|
['1000',
|
1203
|
-
'1.
|
1204
|
-
'1.
|
1208
|
+
'1.354 (-7)',
|
1209
|
+
'1.353.600 (-7.000)',
|
1205
1210
|
'1.043.040 (+8.200)',
|
1206
1211
|
'1.043.040.000 (+8.200.000)'],
|
1207
1212
|
['500',
|
1208
|
-
'2.
|
1209
|
-
'1.
|
1213
|
+
'2.707 (-14)',
|
1214
|
+
'1.353.640 (-7.000)',
|
1210
1215
|
'1.043.082 (+8.200)',
|
1211
1216
|
'521.541.000 (+4.100.000)'],
|
1212
1217
|
['250',
|
1213
|
-
'5.
|
1214
|
-
'1.
|
1218
|
+
'5.416 (-28)',
|
1219
|
+
'1.354.060 (-7.000)',
|
1215
1220
|
'1.043.512 (+8.200)',
|
1216
1221
|
'260.878.000 (+2.050.000)'],
|
1217
1222
|
['100',
|
1218
|
-
'13.
|
1219
|
-
'1.
|
1223
|
+
'13.551 (-70)',
|
1224
|
+
'1.355.120 (-7.000)',
|
1220
1225
|
'1.044.600 (+8.200)',
|
1221
1226
|
'104.460.000 (+820.000)'],
|
1222
1227
|
['50',
|
1223
|
-
'27.
|
1224
|
-
'1.
|
1228
|
+
'27.118 (-140)',
|
1229
|
+
'1.355.900 (-7.000)',
|
1225
1230
|
'1.045.400 (+8.200)',
|
1226
1231
|
'52.270.000 (+410.000)'],
|
1227
1232
|
['25',
|
1228
|
-
'54.
|
1229
|
-
'1.
|
1233
|
+
'54.299 (-280)',
|
1234
|
+
'1.357.480 (-7.000)',
|
1230
1235
|
'1.047.040 (+8.200)',
|
1231
1236
|
'26.176.000 (+205.000)'],
|
1232
1237
|
['10',
|
1233
|
-
'136.
|
1234
|
-
'1.
|
1238
|
+
'136.250 (-700)',
|
1239
|
+
'1.362.500 (-7.000)',
|
1235
1240
|
'1.052.200 (+8.200)',
|
1236
1241
|
'10.522.000 (+82.000)'],
|
1237
1242
|
['5',
|
1238
|
-
'
|
1239
|
-
'1.
|
1243
|
+
'273.600 (-1.400)',
|
1244
|
+
'1.368.000 (-7.000)',
|
1240
1245
|
'1.057.800 (+8.200)',
|
1241
1246
|
'5.289.000 (+41.000)'],
|
1242
1247
|
['3',
|
1243
|
-
'
|
1244
|
-
'1.
|
1248
|
+
'458.222 (-2.333)',
|
1249
|
+
'1.374.667 (-7.000)',
|
1245
1250
|
'1.064.667 (+8.000)',
|
1246
1251
|
'3.194.000 (+24.000)'],
|
1247
1252
|
['2',
|
1248
|
-
'
|
1249
|
-
'1.
|
1253
|
+
'691.500 (-3.500)',
|
1254
|
+
'1.383.000 (-7.000)',
|
1250
1255
|
'1.073.500 (+8.500)',
|
1251
1256
|
'2.147.000 (+17.000)'],
|
1252
1257
|
['1',
|
1253
|
-
'1.
|
1254
|
-
'1.
|
1258
|
+
'1.413.000 (-7.000)',
|
1259
|
+
'1.413.000 (-7.000)',
|
1255
1260
|
'1.104.000 (+8.000)',
|
1256
1261
|
'1.104.000 (+8.000)'],
|
1257
1262
|
['0.5',
|
1258
|
-
'3.
|
1259
|
-
'1.
|
1263
|
+
'3.026.000 (-14.000)',
|
1264
|
+
'1.513.000 (-7.000)',
|
1260
1265
|
'1.208.000 (+8.000)',
|
1261
1266
|
'604.000 (+4.000)'],
|
1262
|
-
['Update harga LM Antam :
|
1263
|
-
':Rp. 1.
|
1267
|
+
['Update harga LM Antam :06 Agustus 2024, pukul 08:22Harga pembelian kembali '
|
1268
|
+
':Rp. 1.266.000/gram (-7.000)',
|
1264
1269
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1265
1270
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1266
1271
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1267
|
-
['Ounce\xa0(oz)', '2.
|
1268
|
-
['Gram\xa0(gr)', '
|
1269
|
-
['Kilogram\xa0(kg)', '
|
1270
|
-
['Update harga emas :
|
1271
|
-
'2024, pukul
|
1272
|
+
['Ounce\xa0(oz)', '2.408,01 (+4,43)', '16.154,00 (-80,00)', '38.898.994'],
|
1273
|
+
['Gram\xa0(gr)', '77,42', '16.154,00', '1.250.632 (-3.881)'],
|
1274
|
+
['Kilogram\xa0(kg)', '77.419,32', '16.154,00', '1.250.631.684'],
|
1275
|
+
['Update harga emas :06 Agustus 2024, pukul 10:10Update kurs :06 Agustus '
|
1276
|
+
'2024, pukul 09:10']],
|
1272
1277
|
[['Gram', 'UBS Gold 99.99%'],
|
1273
1278
|
['Jual', 'Beli'],
|
1274
1279
|
['/ Batang', '/ Gram', '/ Batang', '/ Gram'],
|
1275
1280
|
['100',
|
1276
|
-
'
|
1277
|
-
'1.
|
1278
|
-
'130.798.000
|
1279
|
-
'1.307.980
|
1281
|
+
'135.300.000 (-700.000)',
|
1282
|
+
'1.353.000 (-7.000)',
|
1283
|
+
'130.798.000',
|
1284
|
+
'1.307.980'],
|
1280
1285
|
['50',
|
1281
|
-
'68.
|
1282
|
-
'1.
|
1283
|
-
'65.449.000
|
1284
|
-
'1.308.980
|
1286
|
+
'68.050.000 (-350.000)',
|
1287
|
+
'1.361.000 (-7.000)',
|
1288
|
+
'65.449.000',
|
1289
|
+
'1.308.980'],
|
1285
1290
|
['25',
|
1286
|
-
'34.
|
1287
|
-
'1.
|
1288
|
-
'32.823.500
|
1289
|
-
'1.312.940
|
1291
|
+
'34.075.000 (-175.000)',
|
1292
|
+
'1.363.000 (-7.000)',
|
1293
|
+
'32.823.500',
|
1294
|
+
'1.312.940'],
|
1290
1295
|
['10',
|
1291
|
-
'13.
|
1292
|
-
'1.
|
1293
|
-
'13.188.000
|
1294
|
-
'1.318.800
|
1295
|
-
['5',
|
1296
|
-
|
1297
|
-
'1.380.000 (-7.000)',
|
1298
|
-
'6.649.000 (-10.000)',
|
1299
|
-
'1.329.800 (-2.000)'],
|
1300
|
-
['1',
|
1301
|
-
'1.420.000 (-7.000)',
|
1302
|
-
'1.420.000 (-7.000)',
|
1303
|
-
'1.361.000 (-2.000)',
|
1304
|
-
'1.361.000 (-2.000)'],
|
1296
|
+
'13.680.000 (-70.000)',
|
1297
|
+
'1.368.000 (-7.000)',
|
1298
|
+
'13.188.000',
|
1299
|
+
'1.318.800'],
|
1300
|
+
['5', '6.865.000 (-35.000)', '1.373.000 (-7.000)', '6.649.000', '1.329.800'],
|
1301
|
+
['1', '1.413.000 (-7.000)', '1.413.000 (-7.000)', '1.361.000', '1.361.000'],
|
1305
1302
|
['', 'Update :05 Agustus 2024, pukul 11:52']],
|
1306
1303
|
[['Konversi Satuan'],
|
1307
1304
|
['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
|
@@ -1312,37 +1309,37 @@ Output:
|
|
1312
1309
|
['Waktu', 'Emas'],
|
1313
1310
|
['Unit', 'USD', 'IDR'],
|
1314
1311
|
['Angka', '+/-', 'Angka', '+/-'],
|
1315
|
-
['Hari Ini', 'Kurs', '', '', '16.
|
1316
|
-
['oz', '2.
|
1317
|
-
['gr', '
|
1318
|
-
['30 Hari', 'Kurs', '', '', '16.341', '-
|
1319
|
-
['oz', '2.391,59', '+
|
1320
|
-
['gr', '76,89', '+0,
|
1321
|
-
['2 Bulan', 'Kurs', '', '', '16.
|
1322
|
-
['oz', '2.
|
1323
|
-
['gr', '
|
1324
|
-
['6 Bulan', 'Kurs', '', '', '15.734', '+
|
1325
|
-
['oz', '2.
|
1326
|
-
['gr', '65,
|
1327
|
-
['1 Tahun', 'Kurs', '', '', '15.731', '+
|
1328
|
-
['oz', '1.823,86', '+
|
1329
|
-
['gr', '58,64', '+18,
|
1330
|
-
['2 Tahun', 'Kurs', '', '', '14.929', '+1.
|
1331
|
-
['oz', '1.787,68', '+
|
1332
|
-
['gr', '57,48', '+19,
|
1333
|
-
['3 Tahun', 'Kurs', '', '', '14.342', '+1.
|
1334
|
-
['oz', '1.
|
1335
|
-
['gr', '56,
|
1336
|
-
['5 Tahun', 'Kurs', '', '', '14.
|
1337
|
-
['oz', '1.
|
1338
|
-
['gr', '48,
|
1312
|
+
['Hari Ini', 'Kurs', '', '', '16.234', '-80-0,49%'],
|
1313
|
+
['oz', '2.403,58', '+4,43+0,18%', '39.019.718', '-120.724-0,31%'],
|
1314
|
+
['gr', '77,28', '+0,14+0,18%', '1.254.513', '-3.881-0,31%'],
|
1315
|
+
['30 Hari', 'Kurs', '', '', '16.341', '-187-1,14%'],
|
1316
|
+
['oz', '2.391,59', '+16,42+0,69%', '39.080.996', '-182.003-0,47%'],
|
1317
|
+
['gr', '76,89', '+0,53+0,69%', '1.256.483', '-5.852-0,47%'],
|
1318
|
+
['2 Bulan', 'Kurs', '', '', '16.279', '-125-0,77%'],
|
1319
|
+
['oz', '2.309,83', '+98,18+4,25%', '37.601.723', '+1.297.271+3,45%'],
|
1320
|
+
['gr', '74,26', '+3,16+4,25', '1.208.923', '+41.708+3,45%'],
|
1321
|
+
['6 Bulan', 'Kurs', '', '', '15.734', '+420+2,67%'],
|
1322
|
+
['oz', '2.030,69', '+377,32+18,58%', '31.950.876', '+6.948.117+21,75%'],
|
1323
|
+
['gr', '65,29', '+12,13+18,58%', '1.027.245', '+223.387+21,75%'],
|
1324
|
+
['1 Tahun', 'Kurs', '', '', '15.731', '+423+2,69%'],
|
1325
|
+
['oz', '1.823,86', '+584,15+32,03%', '28.691.142', '+10.207.852+35,58%'],
|
1326
|
+
['gr', '58,64', '+18,78+32,03%', '922.442', '+328.190+35,58%'],
|
1327
|
+
['2 Tahun', 'Kurs', '', '', '14.929', '+1.225+8,21%'],
|
1328
|
+
['oz', '1.787,68', '+620,33+34,70%', '26.688.275', '+12.210.719+45,75%'],
|
1329
|
+
['gr', '57,48', '+19,94+34,70%', '858.048', '+392.584+45,75%'],
|
1330
|
+
['3 Tahun', 'Kurs', '', '', '14.342', '+1.812+12,63%'],
|
1331
|
+
['oz', '1.763,69', '+644,32+36,53%', '25.294.842', '+13.604.152+53,78%'],
|
1332
|
+
['gr', '56,70', '+20,72+36,53%', '813.248', '+437.384+53,78%'],
|
1333
|
+
['5 Tahun', 'Kurs', '', '', '14.231', '+1.923+13,51%'],
|
1334
|
+
['oz', '1.496,30', '+911,71+60,93%', '21.293.845', '+17.605.148+82,68%'],
|
1335
|
+
['gr', '48,11', '+29,31+60,93%', '684.613', '+566.019+82,68%']])
|
1339
1336
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1340
1337
|
[[''],
|
1341
1338
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1342
|
-
['USD', '
|
1343
|
-
['KURS', '16.
|
1344
|
-
['IDR', '1.
|
1345
|
-
['
|
1339
|
+
['USD', '77,42↑', '+0,14+0,18%'],
|
1340
|
+
['KURS', '16.185,00↓', '-20,00-0,12%'],
|
1341
|
+
['IDR', '1.253.031,68↑', '+759,65+0,06%'],
|
1342
|
+
['Selasa, 06 Agustus 2024 10:10']],
|
1346
1343
|
[[''],
|
1347
1344
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1348
1345
|
'Hari Ini',
|
@@ -1353,19 +1350,19 @@ Output:
|
|
1353
1350
|
'']],
|
1354
1351
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1355
1352
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1356
|
-
['USD', '
|
1357
|
-
['KURS', '16.
|
1358
|
-
['IDR', '1.
|
1353
|
+
['USD', '77,28', '77,28 - 77,42', '77,35'],
|
1354
|
+
['KURS', '16.205,00', '16.185,00 - 16.205,00', '16.195,00'],
|
1355
|
+
['IDR', '1.252.272,03', '1.252.272,03 - 1.253.031,68', '1.252.651,86'],
|
1359
1356
|
[''],
|
1360
1357
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1361
|
-
['USD', '66,32', '64,07 - 79,08', '+10
|
1362
|
-
['KURS', '15.390,10', '15.390,00 - 16.509,65', '+
|
1363
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.279.266,69', '+
|
1358
|
+
['USD', '66,32', '64,07 - 79,08', '+11,10 (16,74%)'],
|
1359
|
+
['KURS', '15.390,10', '15.390,00 - 16.509,65', '+794,90 (5,17%)'],
|
1360
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.279.266,69', '+232.302,15 (22,76%)'],
|
1364
1361
|
[''],
|
1365
1362
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1366
|
-
['USD', '62,
|
1367
|
-
['KURS', '15.
|
1368
|
-
['IDR', '
|
1363
|
+
['USD', '62,46', '58,43 - 79,08', '+14,96 (23,95%)'],
|
1364
|
+
['KURS', '15.152,90', '15.152,90 - 16.509,65', '+1.032,10 (6,81%)'],
|
1365
|
+
['IDR', '946.487,57', '912.925,68 - 1.279.266,69', '+306.544,11 (32,39%)']])
|
1369
1366
|
```
|
1370
1367
|
|
1371
1368
|
## iloads
|
@@ -1495,7 +1492,7 @@ Output:
|
|
1495
1492
|
```py
|
1496
1493
|
8
|
1497
1494
|
['mana', 'aja']
|
1498
|
-
[<Element a at
|
1495
|
+
[<Element a at 0x7e21342170>, <Element a at 0x7e213919a0>, <Element a at 0x7e21391a40>, <Element a at 0x7e21391a90>, <Element a at 0x7e21391ae0>, <Element a at 0x7e21391b30>, <Element a at 0x7e21391b80>, <Element a at 0x7e21391bd0>, <Element a at 0x7e21391c20>, <Element a at 0x7e21391c70>, <Element a at 0x7e21391cc0>, <Element a at 0x7e21391d10>, <Element a at 0x7e21391d60>, <Element a at 0x7e21391db0>, <Element a at 0x7e21391e00>, <Element a at 0x7e21391e50>, <Element a at 0x7e21391ea0>, <Element a at 0x7e21391ef0>, <Element a at 0x7e21391f40>, <Element a at 0x7e21391f90>]
|
1499
1496
|
False
|
1500
1497
|
```
|
1501
1498
|
|
@@ -1557,7 +1554,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1557
1554
|
|
1558
1555
|
Output:
|
1559
1556
|
```py
|
1560
|
-
<generator object iscandir at
|
1557
|
+
<generator object iscandir at 0x7e2162b040>
|
1561
1558
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1562
1559
|
```
|
1563
1560
|
|
@@ -1590,87 +1587,88 @@ iprint(ivars(__import__('pypipr')))
|
|
1590
1587
|
|
1591
1588
|
Output:
|
1592
1589
|
```py
|
1593
|
-
{'function': {'avg': <function avg at
|
1594
|
-
'get_filemtime': <function get_filemtime at
|
1595
|
-
'print_colorize': <function print_colorize at
|
1596
|
-
'print_log': <function print_log at
|
1597
|
-
'console_run': <function console_run at
|
1598
|
-
'auto_reload': <function auto_reload at
|
1599
|
-
'basename': <function basename at
|
1600
|
-
'chr_to_int': <function chr_to_int at
|
1601
|
-
'int_to_chr': <function int_to_chr at
|
1602
|
-
'irange': <function irange at
|
1603
|
-
'batchmaker': <function batchmaker at
|
1604
|
-
'calculate': <function calculate at
|
1605
|
-
'batch_calculate': <function batch_calculate at
|
1606
|
-
'bin_to_int': <function bin_to_int at
|
1607
|
-
'is_empty': <function is_empty at
|
1608
|
-
'exit_if_empty': <function exit_if_empty at
|
1609
|
-
'input_char': <function input_char at
|
1610
|
-
'choices': <function choices at
|
1611
|
-
'chunk_array': <function chunk_array at
|
1612
|
-
'create_folder': <function create_folder at
|
1613
|
-
'datetime_from_string': <function datetime_from_string at
|
1614
|
-
'datetime_now': <function datetime_now at
|
1615
|
-
'dict_first': <function dict_first at
|
1616
|
-
'dirname': <function dirname at
|
1617
|
-
'
|
1618
|
-
'
|
1619
|
-
'
|
1620
|
-
'
|
1621
|
-
'
|
1622
|
-
'
|
1623
|
-
'
|
1624
|
-
'
|
1625
|
-
'
|
1626
|
-
'
|
1627
|
-
'
|
1628
|
-
'
|
1629
|
-
'
|
1630
|
-
'
|
1631
|
-
'
|
1632
|
-
'
|
1633
|
-
'
|
1634
|
-
'
|
1635
|
-
'
|
1636
|
-
'
|
1637
|
-
'
|
1638
|
-
'
|
1639
|
-
'
|
1640
|
-
'
|
1641
|
-
'
|
1642
|
-
'
|
1643
|
-
'
|
1644
|
-
'
|
1645
|
-
'
|
1646
|
-
'
|
1647
|
-
'
|
1648
|
-
'
|
1649
|
-
'
|
1650
|
-
'
|
1651
|
-
'
|
1652
|
-
'
|
1653
|
-
'
|
1654
|
-
'
|
1655
|
-
'
|
1656
|
-
'
|
1657
|
-
'
|
1658
|
-
'
|
1659
|
-
'
|
1660
|
-
'
|
1661
|
-
'
|
1662
|
-
'
|
1663
|
-
'
|
1664
|
-
'
|
1665
|
-
'
|
1666
|
-
'
|
1667
|
-
'
|
1590
|
+
{'function': {'avg': <function avg at 0x7e29fe0040>,
|
1591
|
+
'get_filemtime': <function get_filemtime at 0x7e23279d00>,
|
1592
|
+
'print_colorize': <function print_colorize at 0x7e23279ee0>,
|
1593
|
+
'print_log': <function print_log at 0x7e23279da0>,
|
1594
|
+
'console_run': <function console_run at 0x7e23279e40>,
|
1595
|
+
'auto_reload': <function auto_reload at 0x7e23279620>,
|
1596
|
+
'basename': <function basename at 0x7e23279c60>,
|
1597
|
+
'chr_to_int': <function chr_to_int at 0x7e2327a480>,
|
1598
|
+
'int_to_chr': <function int_to_chr at 0x7e2327a520>,
|
1599
|
+
'irange': <function irange at 0x7e2327a7a0>,
|
1600
|
+
'batchmaker': <function batchmaker at 0x7e2327a160>,
|
1601
|
+
'calculate': <function calculate at 0x7e2327a2a0>,
|
1602
|
+
'batch_calculate': <function batch_calculate at 0x7e2327a020>,
|
1603
|
+
'bin_to_int': <function bin_to_int at 0x7e2327a0c0>,
|
1604
|
+
'is_empty': <function is_empty at 0x7e2327af20>,
|
1605
|
+
'exit_if_empty': <function exit_if_empty at 0x7e2327ade0>,
|
1606
|
+
'input_char': <function input_char at 0x7e2327a3e0>,
|
1607
|
+
'choices': <function choices at 0x7e2327b1a0>,
|
1608
|
+
'chunk_array': <function chunk_array at 0x7e2327b240>,
|
1609
|
+
'create_folder': <function create_folder at 0x7e2327b2e0>,
|
1610
|
+
'datetime_from_string': <function datetime_from_string at 0x7e2327b380>,
|
1611
|
+
'datetime_now': <function datetime_now at 0x7e2327b420>,
|
1612
|
+
'dict_first': <function dict_first at 0x7e2329d620>,
|
1613
|
+
'dirname': <function dirname at 0x7e2329d6c0>,
|
1614
|
+
'django_runserver': <function django_runserver at 0x7e2329d9e0>,
|
1615
|
+
'is_iterable': <function is_iterable at 0x7e2329dda0>,
|
1616
|
+
'to_str': <function to_str at 0x7e2329de40>,
|
1617
|
+
'filter_empty': <function filter_empty at 0x7e2329dc60>,
|
1618
|
+
'get_by_index': <function get_by_index at 0x7e2329dd00>,
|
1619
|
+
'get_class_method': <function get_class_method at 0x7e2329dee0>,
|
1620
|
+
'get_filesize': <function get_filesize at 0x7e2329e020>,
|
1621
|
+
'github_init': <function github_init at 0x7e2329e0c0>,
|
1622
|
+
'github_pull': <function github_pull at 0x7e2329e160>,
|
1623
|
+
'github_push': <function github_push at 0x7e2329e2a0>,
|
1624
|
+
'github_user': <function github_user at 0x7e2329e340>,
|
1625
|
+
'hex_to_int': <function hex_to_int at 0x7e2329e3e0>,
|
1626
|
+
'iargv': <function iargv at 0x7e2329e480>,
|
1627
|
+
'idir': <function idir at 0x7e2329e520>,
|
1628
|
+
'idumps_html': <function idumps_html at 0x7e2329ec00>,
|
1629
|
+
'idumps': <function idumps at 0x7e2329e660>,
|
1630
|
+
'int_to_int': <function int_to_int at 0x7e23332ac0>,
|
1631
|
+
'ienumerate': <function ienumerate at 0x7e2329eb60>,
|
1632
|
+
'ienv': <function ienv at 0x7e23320fe0>,
|
1633
|
+
'iexec': <function iexec at 0x7e23332b60>,
|
1634
|
+
'ijoin': <function ijoin at 0x7e23332ca0>,
|
1635
|
+
'iloads_html': <function iloads_html at 0x7e23332e80>,
|
1636
|
+
'iloads': <function iloads at 0x7e2a9e2020>,
|
1637
|
+
'int_to_bin': <function int_to_bin at 0x7e23332c00>,
|
1638
|
+
'int_to_hex': <function int_to_hex at 0x7e23332de0>,
|
1639
|
+
'int_to_oct': <function int_to_oct at 0x7e23332f20>,
|
1640
|
+
'is_valid_url': <function is_valid_url at 0x7e2311aca0>,
|
1641
|
+
'iopen': <function iopen at 0x7e23333100>,
|
1642
|
+
'iprint': <function iprint at 0x7e2311a7a0>,
|
1643
|
+
'ireplace': <function ireplace at 0x7e2311a8e0>,
|
1644
|
+
'iscandir': <function iscandir at 0x7e21b5ba60>,
|
1645
|
+
'isplit': <function isplit at 0x7e21b5bb00>,
|
1646
|
+
'ivars': <function ivars at 0x7e21b5bba0>,
|
1647
|
+
'log': <function log at 0x7e21b5bc40>,
|
1648
|
+
'oct_to_int': <function oct_to_int at 0x7e21b5bce0>,
|
1649
|
+
'password_generator': <function password_generator at 0x7e21b5bd80>,
|
1650
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7e21b5bec0>,
|
1651
|
+
'poetry_publish': <function poetry_publish at 0x7e21b5bf60>,
|
1652
|
+
'poetry_update_version': <function poetry_update_version at 0x7e21b680e0>,
|
1653
|
+
'print_dir': <function print_dir at 0x7e21b682c0>,
|
1654
|
+
'print_to_last_line': <function print_to_last_line at 0x7e21b68360>,
|
1655
|
+
'random_bool': <function random_bool at 0x7e21b68400>,
|
1656
|
+
'restart': <function restart at 0x7e21b684a0>,
|
1657
|
+
'set_timeout': <function set_timeout at 0x7e21b68540>,
|
1658
|
+
'sets_ordered': <function sets_ordered at 0x7e21b685e0>,
|
1659
|
+
'sqlite_delete_table': <function sqlite_delete_table at 0x7e21b68680>,
|
1660
|
+
'sqlite_get_all_tables': <function sqlite_get_all_tables at 0x7e21b68860>,
|
1661
|
+
'sqlite_get_data_table': <function sqlite_get_data_table at 0x7e21b68fe0>,
|
1662
|
+
'str_cmp': <function str_cmp at 0x7e21b69080>,
|
1663
|
+
'text_colorize': <function text_colorize at 0x7e21b69120>,
|
1664
|
+
'traceback_filename': <function traceback_filename at 0x7e21b691c0>,
|
1665
|
+
'traceback_framename': <function traceback_framename at 0x7e21b69260>},
|
1668
1666
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1669
1667
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1670
1668
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>,
|
1671
1669
|
'TextCase': <class 'pypipr.TextCase.TextCase'>},
|
1672
1670
|
'variable': {'LINUX': True,
|
1673
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1671
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7e29fef390>,
|
1674
1672
|
'WINDOWS': False},
|
1675
1673
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1676
1674
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/pypipr-ZoJyDxLL-py3.11/lib/python3.11/site-packages/colorama/__init__.py'>,
|
@@ -1761,7 +1759,7 @@ print(password_generator())
|
|
1761
1759
|
|
1762
1760
|
Output:
|
1763
1761
|
```py
|
1764
|
-
|
|
1762
|
+
]@x'x["|
|
1765
1763
|
```
|
1766
1764
|
|
1767
1765
|
## pip_freeze_without_version
|
@@ -1819,7 +1817,7 @@ Output:
|
|
1819
1817
|
__enter__ : https:/www.google.com
|
1820
1818
|
__fspath__ : https:/www.google.com
|
1821
1819
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1822
|
-
__hash__ : -
|
1820
|
+
__hash__ : -4677526330865997226
|
1823
1821
|
__init__ : None
|
1824
1822
|
__init_subclass__ : None
|
1825
1823
|
__module__ : pathlib
|
@@ -1832,8 +1830,8 @@ Output:
|
|
1832
1830
|
_cached_cparts : ['https:', 'www.google.com']
|
1833
1831
|
_cparts : ['https:', 'www.google.com']
|
1834
1832
|
_drv :
|
1835
|
-
_flavour : <pathlib._PosixFlavour object at
|
1836
|
-
_hash : -
|
1833
|
+
_flavour : <pathlib._PosixFlavour object at 0x7e29e757d0>
|
1834
|
+
_hash : -4677526330865997226
|
1837
1835
|
_parts : ['https:', 'www.google.com']
|
1838
1836
|
_root :
|
1839
1837
|
_str : https:/www.google.com
|
@@ -1855,7 +1853,7 @@ Output:
|
|
1855
1853
|
is_reserved : False
|
1856
1854
|
is_socket : False
|
1857
1855
|
is_symlink : False
|
1858
|
-
iterdir : <generator object Path.iterdir at
|
1856
|
+
iterdir : <generator object Path.iterdir at 0x7e2133e500>
|
1859
1857
|
joinpath : https:/www.google.com
|
1860
1858
|
name : www.google.com
|
1861
1859
|
parent : https:
|
@@ -1940,7 +1938,7 @@ x.cancel()
|
|
1940
1938
|
|
1941
1939
|
Output:
|
1942
1940
|
```py
|
1943
|
-
<Timer(Thread-2, started
|
1941
|
+
<Timer(Thread-2, started 541700222192)>
|
1944
1942
|
menghentikan timeout 7
|
1945
1943
|
```
|
1946
1944
|
|
@@ -1958,7 +1956,7 @@ print(list(sets_ordered(array)))
|
|
1958
1956
|
|
1959
1957
|
Output:
|
1960
1958
|
```py
|
1961
|
-
<generator object sets_ordered at
|
1959
|
+
<generator object sets_ordered at 0x7e2135cc70>
|
1962
1960
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1963
1961
|
```
|
1964
1962
|
|
@@ -2072,15 +2070,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2072
2070
|
|
2073
2071
|
Output:
|
2074
2072
|
```py
|
2075
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2073
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7e2135c1e0>,
|
2076
2074
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2077
2075
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2078
2076
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2079
|
-
{'a':
|
2080
|
-
{'a':
|
2081
|
-
{'a':
|
2082
|
-
{'a':
|
2083
|
-
{'a':
|
2077
|
+
{'a': 100, 'b': 116, 'c': 125, 'd': 128}
|
2078
|
+
{'a': 100, 'b': 126, 'c': 125, 'd': 117}
|
2079
|
+
{'a': 100, 'b': 119, 'c': 108, 'd': 118}
|
2080
|
+
{'a': 100, 'b': 113, 'c': 103, 'd': 116}
|
2081
|
+
{'a': 100, 'b': 117, 'c': 106, 'd': 118}
|
2084
2082
|
```
|
2085
2083
|
|
2086
2084
|
## PintUregQuantity
|
@@ -6,7 +6,7 @@ pypipr/RunParallel.py,sha256=3H6sVSeUSATQQsWBcDGTtaXuc-12Yc0XmDyVtsg3PMA,5992
|
|
6
6
|
pypipr/TextCase.py,sha256=v62BsRiJUSOqYZM9BHTKvQtF6rWgaug5F0XirXNlens,2896
|
7
7
|
pypipr/TextCase.py.bak,sha256=coDInmzEu9y8FbTQmhAh2jl8MIt2eE4OsPMEUy8APxA,1229
|
8
8
|
pypipr/WINDOWS.py,sha256=NMW-94lzdqwfEWv2lF_i2GcSHJFDwWjccFufpymg4-E,83
|
9
|
-
pypipr/__init__.py,sha256=
|
9
|
+
pypipr/__init__.py,sha256=xBCzJl9nVtuqA30UhRFakGA8M7NsGSOU5aO8InlcWtg,3494
|
10
10
|
pypipr/__terminal__.py,sha256=N_NEXa0V5QLb-dkP1Vp_fYKNjE4jGTqkiYNwPPOXZtw,1412
|
11
11
|
pypipr/auto_reload.py,sha256=FGchFBjQs_eT7CmOMLNYoch-17q7ySFOnPx5z1kbH3E,918
|
12
12
|
pypipr/avg.py,sha256=wUtX3x8dgLoODhQLyMB-HRMVo8Ha2yz3cp7lgcUNbr0,218
|
@@ -24,6 +24,7 @@ pypipr/datetime_from_string.py,sha256=-GJ_QHD1feUMX0o8nwCPHGflDPXr84ovN4Awnk1T9r
|
|
24
24
|
pypipr/datetime_now.py,sha256=YEaatUOp0KBWYRhOFnxnVW0X7C1XEx3dpdBEn5Vwy9w,379
|
25
25
|
pypipr/dict_first.py,sha256=X_pSaY0DLGZJSR2zJBa17yqbwAFLJrVpzb2gxR5wzZg,377
|
26
26
|
pypipr/dirname.py,sha256=rG3Y7EdOiY4gQo-BoYE_0C4XFKz3U9A1Ly4D28YaMDY,229
|
27
|
+
pypipr/django_runserver.py,sha256=puzQajQ_RdLqEZFplKKEKsfhaG-IxHGW4CXZc80EnA8,734
|
27
28
|
pypipr/exit_if_empty.py,sha256=2qUqmYPSkr1NtKPqIN7BAc-WGtcmPPAw8AdO8HirOv8,321
|
28
29
|
pypipr/filter_empty.py,sha256=yLGsStM7SLcCZOKO-gKzhVckzYtmhrhJoaa9R6LuNLc,573
|
29
30
|
pypipr/get_by_index.py,sha256=wCJa8su5QZyZPA4UfEvR2nSEir0NfXcU0pxx2Lzpux8,335
|
@@ -83,7 +84,7 @@ pypipr/text_colorize.py,sha256=IVjaCnXBSBu4Rh8pTO3CxDvxpA265HVwyKX_-PRXCcI,396
|
|
83
84
|
pypipr/to_str.py,sha256=vSuspf-ZQldf4enkssa9XH0WMjkmWug51G9ia0K5occ,597
|
84
85
|
pypipr/traceback_filename.py,sha256=4o85J0N8clI0cM6NTGcKZ4zxR9yS7W2NS_bz3J2_PnY,288
|
85
86
|
pypipr/traceback_framename.py,sha256=_mullrAZzMhBFEFVCgdsmkYQmYUkd58o-J-HuMntKyc,291
|
86
|
-
pypipr-1.0.
|
87
|
-
pypipr-1.0.
|
88
|
-
pypipr-1.0.
|
89
|
-
pypipr-1.0.
|
87
|
+
pypipr-1.0.148.dist-info/METADATA,sha256=RV-imBIt5lxBeBtkV0RYLJdS9u_4ElcDXSowHq04hcg,56578
|
88
|
+
pypipr-1.0.148.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
89
|
+
pypipr-1.0.148.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
|
90
|
+
pypipr-1.0.148.dist-info/RECORD,,
|
File without changes
|
File without changes
|