POC - make CloudPath more Path-like using abc Protocol interfaces#517
Open
rpmcginty wants to merge 2 commits intodrivendataorg:masterfrom
Open
POC - make CloudPath more Path-like using abc Protocol interfaces#517rpmcginty wants to merge 2 commits intodrivendataorg:masterfrom
rpmcginty wants to merge 2 commits intodrivendataorg:masterfrom
Conversation
- Added PathBase class for path-like objects in cloud storage. - Introduced CloudPathInfo class to provide information about cloud paths. - Updated AnyPath and CloudPath to utilize PathBase. - Improved compatibility with pathlib_abc for Python versions. - Added tests for AnyPath subclassing and PathBase functionality.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's in this change?
This is just a proof of concept for using abstract base class for pathlib.Path introduced in 3.14 and available as a backport from
pathlib-abc.It is not intended to merge rather to show the feasibility of implementing
CloudPathas a Path-like interfaceRelates to #347
Contributor checklist:
CONTRIBUTING.mdCloses #issueappears in the PR summary (e.g.,Closes #123).HISTORY.mdwith the issue that is addressed and the PR you are submitting. If the top section is not `## UNRELEASED``, then you need to add a new section to the top of the document for your change.