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
File details
Details for the file urlpathlib-0.0.2.tar.gz.
File metadata
- Download URL: urlpathlib-0.0.2.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ed2885db2c526461109525ac77ccb6a1276ad2f2f78794999928bf4d0b3baf6
|
|
| MD5 |
86371e0eff617a07aaab9ae42191ac0c
|
|
| BLAKE2b-256 |
50bcc91d780a8294c98789b639a22848c30821a810d95d247dfd2b82af93dcf4
|