simple-rule34 0.1.5.3__py3-none-any.whl → 0.1.5.5__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.
- SimpleRule34/aio/types.py +4 -2
- {simple_rule34-0.1.5.3.dist-info → simple_rule34-0.1.5.5.dist-info}/METADATA +2 -1
- {simple_rule34-0.1.5.3.dist-info → simple_rule34-0.1.5.5.dist-info}/RECORD +6 -6
- {simple_rule34-0.1.5.3.dist-info → simple_rule34-0.1.5.5.dist-info}/WHEEL +1 -1
- {simple_rule34-0.1.5.3.dist-info → simple_rule34-0.1.5.5.dist-info}/LICENSE +0 -0
- {simple_rule34-0.1.5.3.dist-info → simple_rule34-0.1.5.5.dist-info}/top_level.txt +0 -0
SimpleRule34/aio/types.py
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import typing
|
|
2
|
+
|
|
3
|
+
import aiofiles
|
|
2
4
|
import aiohttp
|
|
3
5
|
import os
|
|
4
6
|
import datetime
|
|
@@ -34,8 +36,8 @@ class Rule34Post:
|
|
|
34
36
|
|
|
35
37
|
file_name = os.path.basename(self.url)
|
|
36
38
|
save_path = os.path.join(path, file_name)
|
|
37
|
-
with open(save_path, 'wb') as file:
|
|
38
|
-
file.write(await response.read())
|
|
39
|
+
async with aiofiles.open(save_path, 'wb') as file:
|
|
40
|
+
await file.write(await response.read())
|
|
39
41
|
|
|
40
42
|
return save_path
|
|
41
43
|
else:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: simple_rule34
|
|
3
|
-
Version: 0.1.5.
|
|
3
|
+
Version: 0.1.5.5
|
|
4
4
|
Summary: Simple api wrapper of rule34.xxx for python with asynchronous support
|
|
5
5
|
Author-email: StarMan12 <author@example.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/SyperAlexKomp/simple-rule34-api
|
|
@@ -50,6 +50,7 @@ Requires-Dist: urllib3 ==2.0.3
|
|
|
50
50
|
Requires-Dist: yarg ==0.1.9
|
|
51
51
|
Requires-Dist: yarl ==1.9.2
|
|
52
52
|
Requires-Dist: zipp ==3.16.2
|
|
53
|
+
Requires-Dist: aiofiles ~=23.2.1
|
|
53
54
|
|
|
54
55
|
# rule34-simple-api
|
|
55
56
|
Simple api wrapper of rule34.xxx for python with asynchronous support
|
|
@@ -5,10 +5,10 @@ SimpleRule34/setup.py,sha256=7hNDTD52EAs7W00-Nd5LzvH8H4-Dvc59W8a999LqvW4,735
|
|
|
5
5
|
SimpleRule34/types.py,sha256=PpIHfMlFfRvXAZ_0Seaj9HJH6f_9JpJHCELIoSbeyuo,3278
|
|
6
6
|
SimpleRule34/utils.py,sha256=lVbM6w2z9QwdOhVpff4q73_DfPLxDEXPVlxI2M6aK6I,854
|
|
7
7
|
SimpleRule34/aio/ARule34.py,sha256=nZwxmMNo_g_a16U9dJmxFGUIkDtgNB-W0uFH8LJ8tSI,6858
|
|
8
|
-
SimpleRule34/aio/types.py,sha256=
|
|
8
|
+
SimpleRule34/aio/types.py,sha256=919XQt5ydRoLeVxy5HRujc0IeKYlD3crYuH_qvPqdKY,3719
|
|
9
9
|
SimpleRule34/aio/utils.py,sha256=fWx-ntJ672NoktH5Ws9-FcO0gtCNVmd8VfxFxjWqsD0,616
|
|
10
|
-
simple_rule34-0.1.5.
|
|
11
|
-
simple_rule34-0.1.5.
|
|
12
|
-
simple_rule34-0.1.5.
|
|
13
|
-
simple_rule34-0.1.5.
|
|
14
|
-
simple_rule34-0.1.5.
|
|
10
|
+
simple_rule34-0.1.5.5.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
|
|
11
|
+
simple_rule34-0.1.5.5.dist-info/METADATA,sha256=vYXD5uJjBsLn5W8gGxZvZH3537_TEM2RsTmO5dERrrU,2123
|
|
12
|
+
simple_rule34-0.1.5.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
13
|
+
simple_rule34-0.1.5.5.dist-info/top_level.txt,sha256=IrrcPxvAx-V0ikmhRaLYkjYt-hZ9SRGTcUdtAcbMzGE,13
|
|
14
|
+
simple_rule34-0.1.5.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|