Skip to main content

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.

Project details


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page