panpath 0.4.11__tar.gz → 0.4.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- panpath-0.4.12/.coveragerc +18 -0
- panpath-0.4.12/.github/workflows/build.yml +58 -0
- panpath-0.4.12/.github/workflows/docs.yml +37 -0
- panpath-0.4.12/.gitignore +81 -0
- panpath-0.4.12/CLAUDE.md +21 -0
- {panpath-0.4.11 → panpath-0.4.12}/PKG-INFO +42 -40
- {panpath-0.4.11 → panpath-0.4.12}/README.md +5 -2
- panpath-0.4.12/docs/README.md +174 -0
- panpath-0.4.12/docs/about/changelog.md +332 -0
- panpath-0.4.12/docs/about/cloudpathlib-compat.md +182 -0
- panpath-0.4.12/docs/about/license.md +80 -0
- panpath-0.4.12/docs/advanced/configuration.md +47 -0
- panpath-0.4.12/docs/advanced/custom-clients.md +43 -0
- panpath-0.4.12/docs/advanced/performance.md +63 -0
- panpath-0.4.12/docs/advanced/testing.md +50 -0
- panpath-0.4.12/docs/getting-started/concepts.md +407 -0
- panpath-0.4.12/docs/getting-started/installation.md +199 -0
- panpath-0.4.12/docs/getting-started/quick-start.md +326 -0
- panpath-0.4.12/docs/guide/async-operations.md +199 -0
- panpath-0.4.12/docs/guide/bulk-operations.md +587 -0
- panpath-0.4.12/docs/guide/cloud-storage.md +51 -0
- panpath-0.4.12/docs/guide/cross-storage.md +66 -0
- panpath-0.4.12/docs/guide/error-handling.md +81 -0
- panpath-0.4.12/docs/guide/local-paths.md +74 -0
- panpath-0.4.12/docs/guide/path-operations.md +73 -0
- panpath-0.4.12/docs/index.md +228 -0
- panpath-0.4.12/docs/migration/from-cloudpathlib.md +483 -0
- panpath-0.4.12/docs/migration/from-pathlib.md +58 -0
- panpath-0.4.12/docs/providers/azure.md +166 -0
- panpath-0.4.12/docs/providers/gcs.md +167 -0
- panpath-0.4.12/docs/providers/s3.md +537 -0
- panpath-0.4.12/docs/style.css +13 -0
- panpath-0.4.12/logo.png +0 -0
- panpath-0.4.12/mkdocs.yml +140 -0
- {panpath-0.4.11 → panpath-0.4.12}/panpath/__init__.py +2 -2
- {panpath-0.4.11 → panpath-0.4.12}/panpath/azure_async_client.py +2 -4
- {panpath-0.4.11 → panpath-0.4.12}/panpath/azure_client.py +0 -4
- {panpath-0.4.11 → panpath-0.4.12}/panpath/cloud.py +22 -1
- {panpath-0.4.11 → panpath-0.4.12}/panpath/gs_async_client.py +4 -5
- {panpath-0.4.11 → panpath-0.4.12}/panpath/gs_client.py +6 -2
- {panpath-0.4.11 → panpath-0.4.12}/panpath/local_path.py +1 -0
- {panpath-0.4.11 → panpath-0.4.12}/panpath/s3_async_client.py +1 -4
- {panpath-0.4.11 → panpath-0.4.12}/pyproject.toml +6 -3
- panpath-0.4.12/tests/__init__.py +0 -0
- panpath-0.4.12/tests/conftest.py +4 -0
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_azure_async_client.py +0 -2
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_azure_client.py +0 -2
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_cloudpath.py +1 -1
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_gs.py +18 -0
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_gs_async_client.py +0 -2
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_s3_async_client.py +0 -2
- panpath-0.4.12/tests/utils.py +6 -0
- panpath-0.4.12/tox.ini +6 -0
- panpath-0.4.12/uv.lock +4430 -0
- panpath-0.4.11/panpath.egg-info/PKG-INFO +0 -268
- panpath-0.4.11/panpath.egg-info/SOURCES.txt +0 -41
- panpath-0.4.11/panpath.egg-info/dependency_links.txt +0 -1
- panpath-0.4.11/panpath.egg-info/requires.txt +0 -41
- panpath-0.4.11/panpath.egg-info/top_level.txt +0 -1
- panpath-0.4.11/setup.cfg +0 -4
- {panpath-0.4.11 → panpath-0.4.12}/LICENSE +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/panpath/azure_path.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/panpath/base.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/panpath/clients.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/panpath/exceptions.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/panpath/gs_path.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/panpath/py.typed +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/panpath/registry.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/panpath/s3_client.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/panpath/s3_path.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_azure.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_base.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_cloudpath_compat.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_exceptions.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_gs_client.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_local.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_registry.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_router.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_s3.py +0 -0
- {panpath-0.4.11 → panpath-0.4.12}/tests/test_s3_client.py +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[run]
|
|
2
|
+
omit =
|
|
3
|
+
# need plugins to be installed to test
|
|
4
|
+
tests/*
|
|
5
|
+
|
|
6
|
+
[report]
|
|
7
|
+
exclude_lines =
|
|
8
|
+
pragma: no cover
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
if not HAS_AIOFILES:
|
|
11
|
+
if not HAS_GCS:
|
|
12
|
+
if not HAS_GCLOUD_AIO:
|
|
13
|
+
if not HAS_AZURE:
|
|
14
|
+
if not HAS_AZURE_AIO:
|
|
15
|
+
if not HAS_AIOBOTO3:
|
|
16
|
+
if not HAS_BOTO3:
|
|
17
|
+
except ImportError:
|
|
18
|
+
except NameError:
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
name: Build and Deploy
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
|
|
7
|
+
build:
|
|
8
|
+
runs-on: ubuntu-24.04
|
|
9
|
+
if: "! contains(github.event.head_commit.message, 'wip') && ! startsWith(github.ref, 'refs/tags')"
|
|
10
|
+
strategy:
|
|
11
|
+
matrix:
|
|
12
|
+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v6
|
|
16
|
+
- name: Setup uv
|
|
17
|
+
uses: astral-sh/setup-uv@v8.0.0
|
|
18
|
+
with:
|
|
19
|
+
python-version: ${{ matrix.python-version }}
|
|
20
|
+
- name: Install dependencies
|
|
21
|
+
run: |
|
|
22
|
+
uv sync --all-extras
|
|
23
|
+
- uses: 'google-github-actions/auth@v3'
|
|
24
|
+
with:
|
|
25
|
+
credentials_json: ${{ secrets.GCP_SA_KEY }}
|
|
26
|
+
- name: Test with pytest
|
|
27
|
+
run: uv run pytest tests/ --junitxml=junit/test-results-${{ matrix.python-version }}.xml
|
|
28
|
+
env:
|
|
29
|
+
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
|
|
30
|
+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
31
|
+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
32
|
+
AWS_DEFAULT_REGION: us-east-2
|
|
33
|
+
- name: Upload pytest test results
|
|
34
|
+
uses: actions/upload-artifact@v7
|
|
35
|
+
with:
|
|
36
|
+
name: pytest-results-${{ matrix.python-version }}
|
|
37
|
+
path: junit/test-results-${{ matrix.python-version }}.xml
|
|
38
|
+
# Use always() to always run this step to publish test results when there are test failures
|
|
39
|
+
if: ${{ always() }}
|
|
40
|
+
|
|
41
|
+
deploy:
|
|
42
|
+
# needs: build
|
|
43
|
+
runs-on: ubuntu-24.04
|
|
44
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
|
45
|
+
strategy:
|
|
46
|
+
matrix:
|
|
47
|
+
python-version: ["3.12"]
|
|
48
|
+
steps:
|
|
49
|
+
- uses: actions/checkout@v6
|
|
50
|
+
- name: Setup uv
|
|
51
|
+
uses: astral-sh/setup-uv@v8.0.0
|
|
52
|
+
with:
|
|
53
|
+
python-version: ${{ matrix.python-version }}
|
|
54
|
+
- name: Publish to PyPI
|
|
55
|
+
run: |
|
|
56
|
+
uv build
|
|
57
|
+
uv publish -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASSWORD }}
|
|
58
|
+
if: success()
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: Documentation
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- master
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
build-docs:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout code
|
|
19
|
+
uses: actions/checkout@v6
|
|
20
|
+
with:
|
|
21
|
+
fetch-depth: 0
|
|
22
|
+
|
|
23
|
+
- name: Setup uv
|
|
24
|
+
uses: astral-sh/setup-uv@v8.0.0
|
|
25
|
+
with:
|
|
26
|
+
python-version: '3.12'
|
|
27
|
+
|
|
28
|
+
- name: Install dependencies
|
|
29
|
+
run: |
|
|
30
|
+
uv sync --locked --group docs --all-extras
|
|
31
|
+
|
|
32
|
+
- name: Build documentation
|
|
33
|
+
run: uv run mkdocs build
|
|
34
|
+
|
|
35
|
+
- name: Deploy to GitHub Pages
|
|
36
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
|
37
|
+
run: uv run mkdocs gh-deploy --force
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
*.manifest
|
|
32
|
+
*.spec
|
|
33
|
+
|
|
34
|
+
# Unit test / coverage reports
|
|
35
|
+
htmlcov/
|
|
36
|
+
.tox/
|
|
37
|
+
.nox/
|
|
38
|
+
.coverage
|
|
39
|
+
.coverage.*
|
|
40
|
+
.cache
|
|
41
|
+
nosetests.xml
|
|
42
|
+
coverage.xml
|
|
43
|
+
*.cover
|
|
44
|
+
*.py,cover
|
|
45
|
+
.hypothesis/
|
|
46
|
+
.pytest_cache/
|
|
47
|
+
|
|
48
|
+
# Virtual environments
|
|
49
|
+
venv/
|
|
50
|
+
env/
|
|
51
|
+
ENV/
|
|
52
|
+
env.bak/
|
|
53
|
+
venv.bak/
|
|
54
|
+
|
|
55
|
+
# IDEs
|
|
56
|
+
.vscode/
|
|
57
|
+
.idea/
|
|
58
|
+
*.swp
|
|
59
|
+
*.swo
|
|
60
|
+
*~
|
|
61
|
+
|
|
62
|
+
# mypy
|
|
63
|
+
.mypy_cache/
|
|
64
|
+
.dmypy.json
|
|
65
|
+
dmypy.json
|
|
66
|
+
|
|
67
|
+
# Ruff
|
|
68
|
+
.ruff_cache/
|
|
69
|
+
|
|
70
|
+
# OS
|
|
71
|
+
.DS_Store
|
|
72
|
+
Thumbs.db
|
|
73
|
+
|
|
74
|
+
# Project specific
|
|
75
|
+
*.log
|
|
76
|
+
.tmp/
|
|
77
|
+
site/
|
|
78
|
+
.env
|
|
79
|
+
gac_key.json
|
|
80
|
+
examples/
|
|
81
|
+
instructions/
|
panpath-0.4.12/CLAUDE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# PanPath
|
|
2
|
+
|
|
3
|
+
Path manipulation library for cloud storage (Azure Blob, GCS, S3) with unified sync/async API.
|
|
4
|
+
|
|
5
|
+
## Skill routing
|
|
6
|
+
|
|
7
|
+
When the user's request matches an available skill, invoke it via the Skill tool. When in doubt, invoke the skill.
|
|
8
|
+
|
|
9
|
+
Key routing rules:
|
|
10
|
+
- Product ideas/brainstorming → invoke /office-hours
|
|
11
|
+
- Strategy/scope → invoke /plan-ceo-review
|
|
12
|
+
- Architecture → invoke /plan-eng-review
|
|
13
|
+
- Design system/plan review → invoke /design-consultation or /plan-design-review
|
|
14
|
+
- Full review pipeline → invoke /autoplan
|
|
15
|
+
- Bugs/errors → invoke /investigate
|
|
16
|
+
- QA/testing site behavior → invoke /qa or /qa-only
|
|
17
|
+
- Code review/diff check → invoke /review
|
|
18
|
+
- Visual polish → invoke /design-review
|
|
19
|
+
- Ship/deploy/PR → invoke /ship or /land-and-deploy
|
|
20
|
+
- Save progress → invoke /context-save
|
|
21
|
+
- Resume context → invoke /context-restore
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: panpath
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.12
|
|
4
4
|
Summary: Universal sync/async local/cloud path library with pathlib-compatible interface
|
|
5
|
-
Author: panpath contributors
|
|
6
|
-
License: MIT
|
|
7
5
|
Project-URL: Homepage, https://github.com/pwwang/panpath
|
|
8
6
|
Project-URL: Repository, https://github.com/pwwang/panpath
|
|
9
7
|
Project-URL: Documentation, https://github.com/pwwang/panpath#readme
|
|
10
|
-
|
|
8
|
+
Author: panpath contributors
|
|
9
|
+
License: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: async,asyncio,azure,cloud,gcs,path,pathlib,s3
|
|
11
12
|
Classifier: Development Status :: 3 - Alpha
|
|
12
13
|
Classifier: Intended Audience :: Developers
|
|
13
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -19,45 +20,46 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
19
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
21
|
Classifier: Topic :: System :: Filesystems
|
|
21
22
|
Requires-Python: <4.0,>=3.9
|
|
22
|
-
Description-Content-Type: text/markdown
|
|
23
|
-
License-File: LICENSE
|
|
24
23
|
Requires-Dist: typing-extensions>=4.0.0
|
|
25
|
-
Provides-Extra: s3
|
|
26
|
-
Requires-Dist: boto3>=1.20.0; extra == "s3"
|
|
27
|
-
Provides-Extra: gs
|
|
28
|
-
Requires-Dist: google-cloud-storage>=2.0.0; extra == "gs"
|
|
29
|
-
Provides-Extra: azure
|
|
30
|
-
Requires-Dist: azure-storage-blob>=12.0.0; extra == "azure"
|
|
31
|
-
Provides-Extra: async-s3
|
|
32
|
-
Requires-Dist: aioboto3>=11.0.0; extra == "async-s3"
|
|
33
|
-
Requires-Dist: aiofiles>=23.0.0; extra == "async-s3"
|
|
34
|
-
Provides-Extra: async-gs
|
|
35
|
-
Requires-Dist: gcloud-aio-storage>=9.5; extra == "async-gs"
|
|
36
|
-
Requires-Dist: aiofiles>=23.0.0; extra == "async-gs"
|
|
37
|
-
Provides-Extra: async-azure
|
|
38
|
-
Requires-Dist: azure-storage-blob>=12.0.0; extra == "async-azure"
|
|
39
|
-
Requires-Dist: aiofiles>=23.0.0; extra == "async-azure"
|
|
40
|
-
Provides-Extra: all-sync
|
|
41
|
-
Requires-Dist: boto3>=1.20.0; extra == "all-sync"
|
|
42
|
-
Requires-Dist: google-cloud-storage>=2.0.0; extra == "all-sync"
|
|
43
|
-
Requires-Dist: azure-storage-blob>=12.0.0; extra == "all-sync"
|
|
44
|
-
Provides-Extra: all-async
|
|
45
|
-
Requires-Dist: aioboto3>=11.0.0; extra == "all-async"
|
|
46
|
-
Requires-Dist: gcloud-aio-storage>=9.5; extra == "all-async"
|
|
47
|
-
Requires-Dist: azure-storage-blob>=12.0.0; extra == "all-async"
|
|
48
|
-
Requires-Dist: aiofiles>=23.0.0; extra == "all-async"
|
|
49
24
|
Provides-Extra: all
|
|
50
|
-
Requires-Dist:
|
|
51
|
-
Requires-Dist:
|
|
52
|
-
Requires-Dist: azure-storage-blob>=12.0.0; extra ==
|
|
53
|
-
Requires-Dist:
|
|
54
|
-
Requires-Dist: gcloud-aio-storage>=9.5; extra ==
|
|
55
|
-
Requires-Dist:
|
|
56
|
-
|
|
25
|
+
Requires-Dist: aioboto3>=11.0.0; extra == 'all'
|
|
26
|
+
Requires-Dist: aiofiles>=23.0.0; extra == 'all'
|
|
27
|
+
Requires-Dist: azure-storage-blob>=12.0.0; extra == 'all'
|
|
28
|
+
Requires-Dist: boto3>=1.20.0; extra == 'all'
|
|
29
|
+
Requires-Dist: gcloud-aio-storage>=9.5; extra == 'all'
|
|
30
|
+
Requires-Dist: google-cloud-storage>=2.0.0; extra == 'all'
|
|
31
|
+
Provides-Extra: all-async
|
|
32
|
+
Requires-Dist: aioboto3>=11.0.0; extra == 'all-async'
|
|
33
|
+
Requires-Dist: aiofiles>=23.0.0; extra == 'all-async'
|
|
34
|
+
Requires-Dist: azure-storage-blob>=12.0.0; extra == 'all-async'
|
|
35
|
+
Requires-Dist: gcloud-aio-storage>=9.5; extra == 'all-async'
|
|
36
|
+
Provides-Extra: all-sync
|
|
37
|
+
Requires-Dist: azure-storage-blob>=12.0.0; extra == 'all-sync'
|
|
38
|
+
Requires-Dist: boto3>=1.20.0; extra == 'all-sync'
|
|
39
|
+
Requires-Dist: google-cloud-storage>=2.0.0; extra == 'all-sync'
|
|
40
|
+
Provides-Extra: async-azure
|
|
41
|
+
Requires-Dist: aiofiles>=23.0.0; extra == 'async-azure'
|
|
42
|
+
Requires-Dist: azure-storage-blob>=12.0.0; extra == 'async-azure'
|
|
43
|
+
Provides-Extra: async-gs
|
|
44
|
+
Requires-Dist: aiofiles>=23.0.0; extra == 'async-gs'
|
|
45
|
+
Requires-Dist: gcloud-aio-storage>=9.5; extra == 'async-gs'
|
|
46
|
+
Provides-Extra: async-s3
|
|
47
|
+
Requires-Dist: aioboto3>=11.0.0; extra == 'async-s3'
|
|
48
|
+
Requires-Dist: aiofiles>=23.0.0; extra == 'async-s3'
|
|
49
|
+
Provides-Extra: azure
|
|
50
|
+
Requires-Dist: azure-storage-blob>=12.0.0; extra == 'azure'
|
|
51
|
+
Provides-Extra: gs
|
|
52
|
+
Requires-Dist: google-cloud-storage>=2.0.0; extra == 'gs'
|
|
53
|
+
Provides-Extra: s3
|
|
54
|
+
Requires-Dist: boto3>=1.20.0; extra == 's3'
|
|
55
|
+
Description-Content-Type: text/markdown
|
|
56
|
+
|
|
57
|
+
<div align="center">
|
|
58
|
+
<img src="./logo.png" width="240px" alt="panpath logo" />
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
<p style="font-weight:bold;">Universal sync/async local/cloud path library with pathlib-compatible interface for Python.</p>
|
|
59
61
|
|
|
60
|
-
|
|
62
|
+
</div>
|
|
61
63
|
|
|
62
64
|
## Features
|
|
63
65
|
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="./logo.png" width="240px" alt="panpath logo" />
|
|
2
3
|
|
|
3
|
-
Universal sync/async local/cloud path library with pathlib-compatible interface for Python
|
|
4
|
+
<p style="font-weight:bold;">Universal sync/async local/cloud path library with pathlib-compatible interface for Python.</p>
|
|
5
|
+
|
|
6
|
+
</div>
|
|
4
7
|
|
|
5
8
|
## Features
|
|
6
9
|
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# PanPath Documentation
|
|
2
|
+
|
|
3
|
+
This directory contains the source files for PanPath's documentation, built with [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/).
|
|
4
|
+
|
|
5
|
+
## Building Locally
|
|
6
|
+
|
|
7
|
+
### Prerequisites
|
|
8
|
+
|
|
9
|
+
Install documentation dependencies:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install -e .[docs]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Serve Documentation
|
|
16
|
+
|
|
17
|
+
Start a local development server:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
mkdocs serve
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Then open http://127.0.0.1:8000 in your browser.
|
|
24
|
+
|
|
25
|
+
The site will automatically reload when you make changes to the documentation files.
|
|
26
|
+
|
|
27
|
+
### Build Documentation
|
|
28
|
+
|
|
29
|
+
Build the static site:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
mkdocs build
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The built site will be in the `site/` directory.
|
|
36
|
+
|
|
37
|
+
## Structure
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
docs/
|
|
41
|
+
├── index.md # Home page
|
|
42
|
+
├── getting-started/ # Getting started guides
|
|
43
|
+
│ ├── installation.md
|
|
44
|
+
│ ├── quick-start.md
|
|
45
|
+
│ └── concepts.md
|
|
46
|
+
├── guide/ # User guides
|
|
47
|
+
│ ├── local-paths.md
|
|
48
|
+
│ ├── cloud-storage.md
|
|
49
|
+
│ ├── async-operations.md
|
|
50
|
+
│ ├── bulk-operations.md
|
|
51
|
+
│ ├── cross-storage.md
|
|
52
|
+
│ ├── path-operations.md
|
|
53
|
+
│ └── error-handling.md
|
|
54
|
+
├── providers/ # Cloud provider guides
|
|
55
|
+
│ ├── s3.md
|
|
56
|
+
│ ├── gcs.md
|
|
57
|
+
│ └── azure.md
|
|
58
|
+
├── advanced/ # Advanced topics
|
|
59
|
+
│ ├── configuration.md
|
|
60
|
+
│ ├── custom-clients.md
|
|
61
|
+
│ ├── testing.md
|
|
62
|
+
│ └── performance.md
|
|
63
|
+
├── api/ # API reference
|
|
64
|
+
│ ├── pan-path.md
|
|
65
|
+
│ ├── async-pan-path.md
|
|
66
|
+
│ ├── local.md
|
|
67
|
+
│ ├── s3.md
|
|
68
|
+
│ ├── gcs.md
|
|
69
|
+
│ ├── azure.md
|
|
70
|
+
│ └── exceptions.md
|
|
71
|
+
├── migration/ # Migration guides
|
|
72
|
+
│ ├── from-pathlib.md
|
|
73
|
+
│ └── from-cloudpathlib.md
|
|
74
|
+
└── about/ # About section
|
|
75
|
+
├── changelog.md
|
|
76
|
+
├── contributing.md
|
|
77
|
+
└── license.md
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Writing Documentation
|
|
81
|
+
|
|
82
|
+
### Markdown Syntax
|
|
83
|
+
|
|
84
|
+
We use Python-Markdown with several extensions. See [mkdocs.yml](../mkdocs.yml) for the full list.
|
|
85
|
+
|
|
86
|
+
#### Code Blocks
|
|
87
|
+
|
|
88
|
+
Use fenced code blocks with syntax highlighting:
|
|
89
|
+
|
|
90
|
+
````markdown
|
|
91
|
+
```python
|
|
92
|
+
from panpath import PanPath
|
|
93
|
+
|
|
94
|
+
path = PanPath("s3://bucket/file.txt")
|
|
95
|
+
content = path.read_text()
|
|
96
|
+
```
|
|
97
|
+
````
|
|
98
|
+
|
|
99
|
+
#### Tabs
|
|
100
|
+
|
|
101
|
+
Use tabs for alternative content:
|
|
102
|
+
|
|
103
|
+
````markdown
|
|
104
|
+
=== "Sync"
|
|
105
|
+
```python
|
|
106
|
+
path = PanPath("s3://bucket/file.txt")
|
|
107
|
+
content = path.read_text()
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
=== "Async"
|
|
111
|
+
```python
|
|
112
|
+
path = PanPath("s3://bucket/file.txt")
|
|
113
|
+
content = await path.a_read_text()
|
|
114
|
+
```
|
|
115
|
+
````
|
|
116
|
+
|
|
117
|
+
#### Admonitions
|
|
118
|
+
|
|
119
|
+
Use admonitions for notes and warnings:
|
|
120
|
+
|
|
121
|
+
```markdown
|
|
122
|
+
!!! note
|
|
123
|
+
This is an important note.
|
|
124
|
+
|
|
125
|
+
!!! warning
|
|
126
|
+
Be careful with this operation.
|
|
127
|
+
|
|
128
|
+
!!! tip
|
|
129
|
+
Here's a helpful tip.
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
#### API Documentation
|
|
133
|
+
|
|
134
|
+
Use mkdocstrings to auto-generate API docs:
|
|
135
|
+
|
|
136
|
+
```markdown
|
|
137
|
+
::: panpath.router.PanPath
|
|
138
|
+
options:
|
|
139
|
+
show_root_heading: true
|
|
140
|
+
show_source: true
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Style Guide
|
|
144
|
+
|
|
145
|
+
- Use clear, concise language
|
|
146
|
+
- Include code examples for all features
|
|
147
|
+
- Use proper Markdown formatting
|
|
148
|
+
- Add cross-references to related sections
|
|
149
|
+
- Test all code examples
|
|
150
|
+
|
|
151
|
+
## Deployment
|
|
152
|
+
|
|
153
|
+
Documentation is automatically built and deployed to GitHub Pages when changes are pushed to the `main` branch.
|
|
154
|
+
|
|
155
|
+
The deployment is handled by the `.github/workflows/docs.yml` workflow.
|
|
156
|
+
|
|
157
|
+
## Contributing
|
|
158
|
+
|
|
159
|
+
See [CONTRIBUTING.md](../CONTRIBUTING.md) for general contribution guidelines.
|
|
160
|
+
|
|
161
|
+
When contributing documentation:
|
|
162
|
+
|
|
163
|
+
1. Follow the existing structure and style
|
|
164
|
+
2. Test locally with `mkdocs serve`
|
|
165
|
+
3. Ensure all code examples work
|
|
166
|
+
4. Add to navigation in `mkdocs.yml` if needed
|
|
167
|
+
5. Submit a pull request
|
|
168
|
+
|
|
169
|
+
## Resources
|
|
170
|
+
|
|
171
|
+
- [MkDocs Documentation](https://www.mkdocs.org/)
|
|
172
|
+
- [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/)
|
|
173
|
+
- [mkdocstrings](https://mkdocstrings.github.io/)
|
|
174
|
+
- [Python-Markdown Extensions](https://python-markdown.github.io/extensions/)
|