You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

s3path

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s3path - pypi Package Compare versions

Comparing version
0.5.5
to
0.5.6
+1
-1
PKG-INFO
Metadata-Version: 2.1
Name: s3path
Version: 0.5.5
Version: 0.5.6
Home-page: https://github.com/liormizr/s3path

@@ -5,0 +5,0 @@ Author: Lior Mizrahi

Metadata-Version: 2.1
Name: s3path
Version: 0.5.5
Version: 0.5.6
Home-page: https://github.com/liormizr/s3path

@@ -5,0 +5,0 @@ Author: Lior Mizrahi

@@ -8,3 +8,3 @@ """

__version__ = '0.5.5'
__version__ = '0.5.6'
__all__ = (

@@ -11,0 +11,0 @@ 'register_configuration_parameter',

@@ -741,2 +741,4 @@ from __future__ import annotations

for part in target_path_parts:
if not part:
continue
target_path += f'{self._path._flavour.sep}{part}'

@@ -743,0 +745,0 @@ if target_path in cache:

@@ -765,2 +765,4 @@ """

for part in target_path_parts:
if not part:
continue
target_path += f'{self._path._flavour.sep}{part}'

@@ -767,0 +769,0 @@ if target_path in cache:

@@ -8,3 +8,3 @@ #!/usr/bin/env python

name='s3path',
version='0.5.5',
version='0.5.6',
url='https://github.com/liormizr/s3path',

@@ -11,0 +11,0 @@ author='Lior Mizrahi',

@@ -206,2 +206,28 @@ import sys

def test_glob_issue_160_weird_behavior(s3_mock):
s3 = boto3.resource('s3')
s3.create_bucket(Bucket='my-bucket')
first_dir = S3Path.from_uri(f"s3://my-bucket/first_dir/")
new_file = first_dir / "some_dir" / "empty.txt"
new_file.touch()
print()
print(f'Globing: {first_dir=}, pattern: "*"')
assert list(first_dir.glob("*")) == [S3Path('/my-bucket/first_dir/some_dir/')]
second_dir = S3Path.from_uri(f"s3://my-bucket/first_dir/second_dir/")
new_file = second_dir / "some_dir" / "empty.txt"
new_file.touch()
print()
print(f'Globing: {second_dir=}, pattern: "*"')
assert list(second_dir.glob("*")) == [S3Path('/my-bucket/first_dir/second_dir/some_dir/')]
third_dir = S3Path.from_uri(f"s3://my-bucket/first_dir/second_dir/third_dir/")
new_file = third_dir / "some_dir" / "empty.txt"
new_file.touch()
print()
print(f'Globing: {third_dir=}, pattern: "*"')
assert list(third_dir.glob("*")) == [S3Path('/my-bucket/first_dir/second_dir/third_dir/some_dir/')]
def test_glob_issue_160_old_algo(s3_mock, enable_old_glob):

@@ -211,2 +237,6 @@ test_glob_issue_160(s3_mock)

def test_glob_issue_160_weird_behavior_old_algo(s3_mock, enable_old_glob):
test_glob_issue_160_weird_behavior(s3_mock)
def test_rglob(s3_mock):

@@ -213,0 +243,0 @@ s3 = boto3.resource('s3')