rtzip 0.5.2__tar.gz → 0.5.4__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rtzip
3
- Version: 0.5.2
3
+ Version: 0.5.4
4
4
  Requires-Dist: obstruct==0.5.2
5
5
  Requires-Dist: pyaes>=1.6.1
6
6
  Requires-Python: >=3.12
@@ -4,7 +4,7 @@ requires = ["uv_build < 0.13"]
4
4
 
5
5
  [project]
6
6
  name = "rtzip"
7
- version = "0.5.2"
7
+ version = "0.5.4"
8
8
  requires-python = ">=3.12"
9
9
  dependencies = [
10
10
  "obstruct==0.5.2",
@@ -6,7 +6,7 @@ requires = [
6
6
 
7
7
  [project]
8
8
  name = "rtzip"
9
- version = "0.5.2"
9
+ version = "0.5.4"
10
10
  requires-python = ">=3.12"
11
11
  dependencies = [
12
12
  "obstruct==0.5.2",
@@ -474,12 +474,12 @@ class RemoteZip:
474
474
  async def read_text(self, path: bytes, encoding='utf-8', errors='strict', **kwargs) -> str:
475
475
  return (await self.read(path, **kwargs)).decode(encoding, errors=errors)
476
476
 
477
- def rglob(self, pattern):
477
+ def rglob(self, pattern: bytes):
478
478
  for file in self.namelist():
479
479
  if fnmatch(file, pattern):
480
480
  yield file
481
481
 
482
- def rglob_entries(self, pattern):
482
+ def rglob_entries(self, pattern: bytes):
483
483
  if self.files is None:
484
484
  raise ValueError("No files. Please call `fetch_file_list` first.")
485
485
 
@@ -291,7 +291,7 @@ def zip_aes_wrapper(raw_data, entry, header, ctx):
291
291
  )
292
292
 
293
293
 
294
- def install(pbkdf2_hmac: PBKDF2_HMAC_FunctionType, aes_cipher: type[AESDecryptor]):
295
- pbkdf2_hmac_implement(pbkdf2_hmac)
296
- aes_cipher_implement(aes_cipher)
294
+ def install(pbkdf2_hmac: PBKDF2_HMAC_FunctionType | None = None, aes_cipher: type[AESDecryptor] | None = None):
295
+ pbkdf2_hmac_implement(pbkdf2_hmac) if pbkdf2_hmac else None
296
+ aes_cipher_implement(aes_cipher) if aes_cipher else None
297
297
  algorithm_handler(0x0063)(zip_aes_wrapper) if not is_algorithm_handlier_available(0x0063) else None
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes