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.
- {rtzip-0.5.2 → rtzip-0.5.4}/PKG-INFO +1 -1
- {rtzip-0.5.2 → rtzip-0.5.4}/pyproject.toml +1 -1
- {rtzip-0.5.2 → rtzip-0.5.4}/pyproject.toml.orig +1 -1
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/remotezip.py +2 -2
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/zip_aes.py +3 -3
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/__init__.py +0 -0
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/algorithm_register.py +0 -0
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/codec_wrappers.py +0 -0
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/const.py +0 -0
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/errors.py +0 -0
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/models.py +0 -0
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/path_methods.py +0 -0
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/wzaes_backends/__init__.py +0 -0
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/wzaes_backends/cryptography_impl.py +0 -0
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/wzaes_backends/pycryptodome_impl.py +0 -0
- {rtzip-0.5.2 → rtzip-0.5.4}/src/rtzip/zip_crypto.py +0 -0
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|