Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer improved customization options for user subclasses of UPath #173

Merged
merged 50 commits into from
Feb 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
4f17e39
(wip) customizable fsspec filesystem factory
ap-- Jan 30, 2024
6bb561a
upath.core: fix _default_accessor override error
ap-- Jan 30, 2024
413e011
upath.core: fix _fs_factory call
ap-- Jan 30, 2024
dea4aeb
upath.core: create a patched subclass for _fs_factory
ap-- Jan 30, 2024
780e9d8
upath.core: fix has_custom_fs_factory check
ap-- Jan 30, 2024
a4f2b27
upath._protocol: move to upath protocol parsing
ap-- Feb 1, 2024
c6d600f
tests: allow setting azurite port through envvar
ap-- Feb 1, 2024
fb1cc83
upath._flavour: factor out FSSpecFlavour
ap-- Feb 1, 2024
87c7fbc
upath._protocol: add 'data' protocol matching
ap-- Feb 1, 2024
d1a3af4
upath: allow customization of init args for UPath 3.12+
ap-- Feb 2, 2024
2a3d028
upath._protocol: add allow_unkown kwarg for strip_upath_protocol
ap-- Feb 2, 2024
1eca195
upath.registry: correct class for fsspec file/local
ap-- Feb 4, 2024
6ccddce
upath._flavour: allow unknown protocol
ap-- Feb 4, 2024
9f8598b
upath: use single implementation
ap-- Feb 5, 2024
e9b78d5
upath: make flavour compatible with py3.8+
ap-- Feb 5, 2024
dbb7095
upath.implementations: simplify UPath subclasses
ap-- Feb 5, 2024
48ff891
upath: provide single UPath implementation
ap-- Feb 5, 2024
93b2c09
tests: skip/xfail obsolete tests
ap-- Feb 5, 2024
652f800
tests: memory fs normalization now passes on py38+
ap-- Feb 5, 2024
a2c2098
upath: typo fixes in implementations.local
ap-- Feb 5, 2024
ed3cfb4
upath.implementations.local: fix issues with py312 base
ap-- Feb 5, 2024
21f73dc
upath.implementations.local: fix minor issue in init for WindowsUPath
ap-- Feb 5, 2024
9c7072f
tests: update pathlib3.12 tests to register subclasses
ap-- Feb 5, 2024
f1ea2c8
upath.core: don't promote local paths with storage_options to FilePath
ap-- Feb 5, 2024
2ace188
upath.implementations.webdav: fix webdav for older fsspec versions
ap-- Feb 5, 2024
07703b1
upath.core: port glob fix for older fsspec version
ap-- Feb 5, 2024
2299c82
upath.core: remove inconsistent typing
ap-- Feb 5, 2024
bf5c9fd
upath: fix typing issues
ap-- Feb 5, 2024
7175d72
repo: update pre-commit-config
ap-- Feb 5, 2024
5d09e51
readme: adjust LocalPath -> FilePath
ap-- Feb 5, 2024
28d1f49
upath: deprecate accessors more gracefully
ap-- Feb 5, 2024
6043c50
upath.core: _accessor shim can't use property
ap-- Feb 5, 2024
c893666
upath.implementations.local: fix iterdir for fsspec local paths when …
ap-- Feb 5, 2024
f17782b
upath._compat: fix warnings._deprecated is missing on older pythons
ap-- Feb 6, 2024
e463174
upath.core: try to provide backwards compatibility for custom __new__…
ap-- Feb 6, 2024
60ebee3
upath: align all migration related deprecation warnings
ap-- Feb 6, 2024
4385906
upath.core: add comment explainin _protocol_dispatch
ap-- Feb 6, 2024
3d9a2d2
tests: some subclassing tests in the pathlib3.12 test suite xpass
ap-- Feb 6, 2024
4069227
tests: test the migration compat code with a GitHub implementation
ap-- Feb 6, 2024
7fb8f18
tests: add comment regarding webdav test
ap-- Feb 6, 2024
8e0a389
tests: run github migration test only if GITHUB_TOKEN in env
ap-- Feb 6, 2024
1b29429
tests: make pathlib3.12 tests succeed
ap-- Feb 6, 2024
c41b5c1
upath.core: warn when importing _UriFlavour or PT
ap-- Feb 7, 2024
0e0de47
upath.core: improve comment regarding storage_options combination
ap-- Feb 7, 2024
00aad0a
upath._compat: fix backwards compat for custom accessors
ap-- Feb 7, 2024
aac5fb8
upath: backwards compat support for _drv, _root, and _parts
ap-- Feb 7, 2024
eca6e32
upath: add comment regarding _url
ap-- Feb 7, 2024
b29e836
upath: backward compat support for _path
ap-- Feb 7, 2024
ce2ddd3
upath: provide missing deprecated classmethods on py312
ap-- Feb 7, 2024
31b9877
upath: provide storage_options customization classmethod
ap-- Feb 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
upath: add comment regarding _url
ap-- committed Feb 7, 2024
commit eca6e3281d53935979a1b050565f6fd59fa88aca
5 changes: 4 additions & 1 deletion upath/core.py
Original file line number Diff line number Diff line change
@@ -313,7 +313,10 @@ def _kwargs(self):
return self.storage_options

@property
def _url(self): # todo: deprecate
def _url(self):
# TODO:
# _url should be deprecated, but for now there is no good way of
# accessing query parameters from urlpaths...
return urlsplit(self.as_posix())

def __getattr__(self, item):