urlpathlib
Project description
This module offers classes representing paths with semantics appropriate for local and remote resources.
Install
Simply run the following command:
pip install urlpathlib
Features
Supported protocols:
protocol |
scheme |
support |
---|---|---|
local filesystem |
✓ |
|
HTTP |
✓ |
Supported IO operations:
method name |
http[s]:// |
|
---|---|---|
chmod |
✓ |
|
exists |
✓ |
✓ |
expanduser |
✓ |
|
glob |
✓ |
|
group |
✓ |
|
is_block_device |
✓ |
|
is_char_device |
✓ |
|
is_dir |
✓ |
|
is_fifo |
✓ |
|
is_file |
✓ |
|
is_socket |
✓ |
|
is_symlink |
✓ |
|
iterdir |
✓ |
✓ |
lchmod |
✓ |
|
lstat |
✓ |
|
mkdir |
✓ |
|
open |
✓ |
✓ ¹ |
read_bytes |
✓ |
|
read_text |
✓ |
|
rename |
✓ |
|
replace |
✓ |
|
resolve |
✓ |
|
rglob |
✓ |
|
rmdir |
✓ |
|
samefile |
✓ |
|
stat |
✓ |
|
symlink_to |
✓ |
|
touch |
✓ |
|
unlink |
✓ |
|
write_bytes |
✓ |
|
write_text |
✓ |
Notes:
¹: only binary read is supported at the moment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
urlpathlib-0.0.2.tar.gz
(8.1 kB
view hashes)