This project has been archived by its maintainers, and is no longer receiving any updates.
pathstring is a very small module that provides only one class (pathstring.Path) which is a string with support for 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.
No distinction between “pure” and “concrete” paths.
No explicit distinction between Posix and Windows paths, but paths are always “native” to their platform.
Adds a Path.rmtree() method which invokes shutil.rmtree() on the path. Actually, since paths are strings, shutil.rmtree(path) will also work.
Adds a strict parameter to the Path.relative_to() method which, when set to False, will also navigate “up” in the hierarchy.
No support for case-insensitive comparisons on Windows.
No Path.replace() method since it would cause confusion with str.replace().
Features are tested extensively against pathlib documentation to guarantee compatibility.
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.
Metadata
Release files for pathstring 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pathstring-1.1.0.tar.gz | 3.8 kB | Without provenance | Details for pathstring-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pathstring-1.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pathstring-1.1.0-py2.py3-none-any.whl |
Total release size: 8.1 kB
Release files / pathstring-1.1.0.tar.gz
| Download URL | pathstring-1.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
400da4a3ad7cb02d7d3d6ef437314d1345b89a73261b68e55c3d9f33a18038a5
|
|
BLAKE2b-256 checksum How to use checksums |
4930fd9524435ce859f4d8845c5b0dc968b15daaff6dae10bd3f89a98bc5ab4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.14
|
Release files / pathstring-1.1.0-py2.py3-none-any.whl
| Download URL | pathstring-1.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
610543e7de97198d9eb3f7774ef8f62752e2142e9f321f95125088e3b4329b23
|
|
BLAKE2b-256 checksum How to use checksums |
d60f05cf53b3d21c517cb319c29f95874e226f3d840a7edd31431d5d79d73883
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.14
|
Security for pathstring 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.