[![PyPI version](https://badge.fury.io/py/betterpathlib.svg)](https://badge.fury.io/py/betterpathlib)
[![ReadTheDocs](https://readthedocs.org/projects/betterpathlib/badge/?version=latest)](https://readthedocs.org/projects/betterpathlib)
# 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()`
Raw data
{
"_id": null,
"home_page": "https://github.com/tsoernes/betterpathlib",
"name": "betterpathlib",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "pathlib, path, filesystem",
"author": "Torstein S\u00f8rnes",
"author_email": "t.soernes@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e3/53/b4884400b07c7d8671d665df9ea207dab5dc7038becffc424e7b892a7510/betterpathlib-0.1.9.tar.gz",
"platform": null,
"description": "[![PyPI version](https://badge.fury.io/py/betterpathlib.svg)](https://badge.fury.io/py/betterpathlib)\n[![ReadTheDocs](https://readthedocs.org/projects/betterpathlib/badge/?version=latest)](https://readthedocs.org/projects/betterpathlib)\n\n# betterpathlib\nAn Path library that is an extension to Pythons built-in pathlib.Path.\n\n```\npip install betterpathlib[all]\n```\n\nEspecially useful for dealing with: \n- paths with multiple suffixes, e.g. files of the sort `archive.tar.gz`.\n- paths with numerical suffixes, i.e. files of the sort `part.rar.001`.\n\n... and in addition, adds methods for:\n- Case-insensitive globbing\n- Copying files and directories\n- Reading JSON directly from Path object\n- Downloading file from URL to destination, if the file is not already downloaded\n- Atomic writes\n- Random paths (with optional prefix and/or suffix)\n\nHas no external dependencies if not installed with optional features.\n\n\n## Optional features\n- `download` - Requires `requests` and and allows for `or_download()`\n- `similarpaths` - Requires `thefuzz` and and allows for `most_similar_paths()`\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Path library that is a compatible extension to Python's built-in pathlib.Path.",
"version": "0.1.9",
"project_urls": {
"Documentation": "https://github.com/tsoernes/betterpathlib",
"Homepage": "https://github.com/tsoernes/betterpathlib",
"Repository": "https://github.com/tsoernes/betterpathlib"
},
"split_keywords": [
"pathlib",
" path",
" filesystem"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "20cbe277a7df379af0ef83c8587fbb0b0f95ae0958565bf5a1427cf80d40b570",
"md5": "a87729853a73bb0f285387ba9587a5b8",
"sha256": "d7c5ab8581c3d63712a61950699499548ec01b1fdd664f98fad2e921ec0ed32b"
},
"downloads": -1,
"filename": "betterpathlib-0.1.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a87729853a73bb0f285387ba9587a5b8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 10374,
"upload_time": "2024-11-27T08:25:58",
"upload_time_iso_8601": "2024-11-27T08:25:58.261074Z",
"url": "https://files.pythonhosted.org/packages/20/cb/e277a7df379af0ef83c8587fbb0b0f95ae0958565bf5a1427cf80d40b570/betterpathlib-0.1.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e353b4884400b07c7d8671d665df9ea207dab5dc7038becffc424e7b892a7510",
"md5": "834ff13a4ff5f9c2cb2b8f6e671ef599",
"sha256": "8145ba4bc035d5d3c080127cda9e57205e788b17ca48828085236b1b335ff254"
},
"downloads": -1,
"filename": "betterpathlib-0.1.9.tar.gz",
"has_sig": false,
"md5_digest": "834ff13a4ff5f9c2cb2b8f6e671ef599",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 10121,
"upload_time": "2024-11-27T08:25:59",
"upload_time_iso_8601": "2024-11-27T08:25:59.953317Z",
"url": "https://files.pythonhosted.org/packages/e3/53/b4884400b07c7d8671d665df9ea207dab5dc7038becffc424e7b892a7510/betterpathlib-0.1.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-27 08:25:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tsoernes",
"github_project": "betterpathlib",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "betterpathlib"
}