urlpathlib
Project description
==========
urlpathlib
==========
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 | file:// | **✓** |
+---------------------------------------+--------------------+----------+
| HTTP | http:// | **✓** |
+---------------------------------------+--------------------+----------+
Supported IO operations:
+--------------------------+------------+------------+
| method name | file:// | 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.
urlpathlib
==========
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 | file:// | **✓** |
+---------------------------------------+--------------------+----------+
| HTTP | http:// | **✓** |
+---------------------------------------+--------------------+----------+
Supported IO operations:
+--------------------------+------------+------------+
| method name | file:// | 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.1.tar.gz
(8.1 kB
view hashes)