Closed ryanrichholt closed 5 months ago
Hi @ryanrichholt
Thanks for the issue and I'm glad to hear that you are working with our package :-) We had a similar discussion in issue #59
Basically I agree with you that the best approach was if in pathlib Path.srt was actually returning the uri value that was perfect. Unfortunately it's not like that. And we are trying the keep s3path as closely to the source implementation as possible.
We can keep this issue open. I'll like to hear more from other users if this is something that we want to change. If we will change this behavior this is a big change that will require a major version upgrade
Hi - I just started using this package, and I'm loving it so far. But, I'm having trouble understanding why the string representation isn't just a URI? For example, with this package I can deal with a set of paths that are a mix of local Path and S3Path objects, which is awesome. But when logging or printing the paths it's hard to tell which is which.
I work around this now by just using the
repr()
and fstring formattinglog.info(f'example log message: {path!r}')
. But, wouldn't it make sense to have the__str__
method of the S3Path class emit the URI?