String with path operations.
Project description
pathstring is a very small module that provides a string class which supports path operations. Technically, it subclasses str and delegates path related operations to pathlib.Path.
Differences from pathlib paths are:
Paths are strings, no need to cast them to strings.
It adds an rmtree operation which invokes shutil.rmtree. Actually, since paths are also strings, in addition to path.rmtree(), shutil.rmtree(path) will also work.
It adds a strict parameter to the relative_to operation which, when set to False will also navigate up in the hierarchy.
License
Copyright (C) 2019 H. Turgut Uyar <uyar@tekir.org>
pathstring is released under the BSD license. Read the included LICENSE.txt file for details.
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
Built Distribution
Hashes for pathstring-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24483891970d7988b823a44818c6ba1c0c8a01b9b46ff43da3543a4d27ca684c |
|
MD5 | f4e5963cc318fe283b1ef09356e1bf09 |
|
BLAKE2b-256 | 3b8ed75953a7e3b0542a2017732d4382013c8a3f2c55ba450aea734506a2a05e |