python3-commons 0.6.4__py3-none-any.whl → 0.6.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.
python3_commons/audit.py CHANGED
@@ -92,6 +92,17 @@ def generate_archive(objects: Iterable[tuple[str, datetime, bytes]],
92
92
  buffer.seek(0)
93
93
  buffer.truncate(0)
94
94
 
95
+ while True:
96
+ chunk = buffer.read(chunk_size)
97
+
98
+ if not chunk:
99
+ break
100
+
101
+ yield chunk
102
+
103
+ buffer.seek(0)
104
+ buffer.truncate(0)
105
+
95
106
 
96
107
  def generate_bzip2(chunks: Generator[bytes, None, None]) -> Generator[bytes, None, None]:
97
108
  compressor = BZ2Compressor()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: python3-commons
3
- Version: 0.6.4
3
+ Version: 0.6.5
4
4
  Summary: Re-usable Python3 code
5
5
  Author-email: Oleg Korsak <kamikaze.is.waiting.you@gmail.com>
6
6
  License: gpl-3
@@ -1,6 +1,6 @@
1
1
  python3_commons/__init__.py,sha256=0KgaYU46H_IMKn-BuasoRN3C4Hi45KlkHHoPbU9cwiA,189
2
2
  python3_commons/api_client.py,sha256=7DXXviUdinw80aTTn11Eh-goGmVdnAcaZsI27qVb2nQ,1420
3
- python3_commons/audit.py,sha256=fokdHYthtZWc1HQA2lZ74mQVkAh57oFzH-N97RS3tSc,5865
3
+ python3_commons/audit.py,sha256=cKQesMo01T_5OSxig-ZRyTXeCQjIjCepKeMgK8xtQ4o,6027
4
4
  python3_commons/conf.py,sha256=qm2a2yWOhfawicBPjWnUett8TrsMtoyQXDxEJ_N-v-Y,637
5
5
  python3_commons/db.py,sha256=qhaDIdzBWgFyeP_XPKfHZlYVlwS2bpBPYMv84yV6820,738
6
6
  python3_commons/fs.py,sha256=wfLjybXndwLqNlOxTpm_HRJnuTcC4wbrHEOaEeCo9Wc,337
@@ -13,9 +13,9 @@ python3_commons/serializers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
13
13
  python3_commons/serializers/json.py,sha256=P288wWz9ic38QWEMrpp_uwKPYkQiOgvE1cI4WZn6ZCg,808
14
14
  python3_commons/serializers/msgpack.py,sha256=tzIGGyDL3UpZnnouCtnxuYDx6InKM_C3PP1N4PN8wd4,1269
15
15
  python3_commons/serializers/msgspec.py,sha256=EknuMpxi_kU25Iv_m10E9rk8b31AkjVumuzyjp7WgrU,1699
16
- python3_commons-0.6.4.dist-info/AUTHORS.rst,sha256=3R9JnfjfjH5RoPWOeqKFJgxVShSSfzQPIrEr1nxIo9Q,90
17
- python3_commons-0.6.4.dist-info/LICENSE,sha256=xxILuojHm4fKQOrMHPSslbyy6WuKAN2RiG74HbrYfzM,34575
18
- python3_commons-0.6.4.dist-info/METADATA,sha256=ovwYcrhEzhLv-GOr0RdEmA3upp_WhLnyx5enJ0K6D5Q,985
19
- python3_commons-0.6.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
20
- python3_commons-0.6.4.dist-info/top_level.txt,sha256=lJI6sCBf68eUHzupCnn2dzG10lH3jJKTWM_hrN1cQ7M,16
21
- python3_commons-0.6.4.dist-info/RECORD,,
16
+ python3_commons-0.6.5.dist-info/AUTHORS.rst,sha256=3R9JnfjfjH5RoPWOeqKFJgxVShSSfzQPIrEr1nxIo9Q,90
17
+ python3_commons-0.6.5.dist-info/LICENSE,sha256=xxILuojHm4fKQOrMHPSslbyy6WuKAN2RiG74HbrYfzM,34575
18
+ python3_commons-0.6.5.dist-info/METADATA,sha256=_EdWNVPAoY3b4WbPKcZenZH9ubHTfyM-0FZNknZxyaU,985
19
+ python3_commons-0.6.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
20
+ python3_commons-0.6.5.dist-info/top_level.txt,sha256=lJI6sCBf68eUHzupCnn2dzG10lH3jJKTWM_hrN1cQ7M,16
21
+ python3_commons-0.6.5.dist-info/RECORD,,