betterpathlib
An Path library that is an extension to Pythons built-in pathlib.Path.
pip install betterpathlib[all]
Especially useful for dealing with:
- paths with multiple suffixes, e.g. files of the sort
archive.tar.gz. - paths with numerical suffixes, i.e. files of the sort
part.rar.001.
... and in addition, adds methods for:
- Case-insensitive globbing
- Copying files and directories
- Reading JSON directly from Path object
- Downloading file from URL to destination, if the file is not already downloaded
- Atomic writes
- Random paths (with optional prefix and/or suffix)
Has no external dependencies if not installed with optional features.
Optional features
download- Requiresrequestsand and allows foror_download()similarpaths- Requiresthefuzzand and allows formost_similar_paths()
Metadata
Release files for betterpathlib 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| betterpathlib-0.1.9.tar.gz | 10.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| betterpathlib-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.5 kB
Release files / betterpathlib-0.1.9.tar.gz
| Download URL | betterpathlib-0.1.9.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8145ba4bc035d5d3c080127cda9e57205e788b17ca48828085236b1b335ff254
|
|
BLAKE2b-256 checksum How to use checksums |
e353b4884400b07c7d8671d665df9ea207dab5dc7038becffc424e7b892a7510
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.5 Linux/6.11.8-300.fc41.x86_64
|
Release files / betterpathlib-0.1.9-py3-none-any.whl
| Download URL | betterpathlib-0.1.9-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7c5ab8581c3d63712a61950699499548ec01b1fdd664f98fad2e921ec0ed32b
|
|
BLAKE2b-256 checksum How to use checksums |
20cbe277a7df379af0ef83c8587fbb0b0f95ae0958565bf5a1427cf80d40b570
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.5 Linux/6.11.8-300.fc41.x86_64
|