Skip to main content

PyPI version ReadTheDocs

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 - Requires requests and and allows for or_download()
  • similarpaths - Requires thefuzz and and allows for most_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)

Source distribution for betterpathlib 0.1.9
File Size Uploaded
betterpathlib-0.1.9.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for betterpathlib 0.1.9
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page