simple-rule34 0.1.5.3__py3-none-any.whl → 0.1.5.4__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 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
+ 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
3
+ Version: 0.1.5.4
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
@@ -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=1FvHd8ZXaUu6hoJIptPbBTXCPgZlk6MlOyR7CQWhxvQ,3679
8
+ SimpleRule34/aio/types.py,sha256=XvhZAYG7AzrT2iKRVlXGwS_EIqrn406vG7P2OnPfcx8,3713
9
9
  SimpleRule34/aio/utils.py,sha256=fWx-ntJ672NoktH5Ws9-FcO0gtCNVmd8VfxFxjWqsD0,616
10
- simple_rule34-0.1.5.3.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
11
- simple_rule34-0.1.5.3.dist-info/METADATA,sha256=D3aQL4gxQcULt00zEcxMvCRqmGX_fE168w5GxWwl1KE,2089
12
- simple_rule34-0.1.5.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
13
- simple_rule34-0.1.5.3.dist-info/top_level.txt,sha256=IrrcPxvAx-V0ikmhRaLYkjYt-hZ9SRGTcUdtAcbMzGE,13
14
- simple_rule34-0.1.5.3.dist-info/RECORD,,
10
+ simple_rule34-0.1.5.4.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
11
+ simple_rule34-0.1.5.4.dist-info/METADATA,sha256=23_XOZltBacTOjrNr1vyGPLYGr7FwneROn_kRmEBaE4,2089
12
+ simple_rule34-0.1.5.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
13
+ simple_rule34-0.1.5.4.dist-info/top_level.txt,sha256=IrrcPxvAx-V0ikmhRaLYkjYt-hZ9SRGTcUdtAcbMzGE,13
14
+ simple_rule34-0.1.5.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5