panpath 0.4.9__tar.gz → 0.4.10__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.9 → panpath-0.4.10}/PKG-INFO +1 -1
- {panpath-0.4.9 → panpath-0.4.10}/panpath/__init__.py +1 -1
- {panpath-0.4.9 → panpath-0.4.10}/panpath/azure_path.py +7 -5
- {panpath-0.4.9 → panpath-0.4.10}/panpath/gs_path.py +5 -4
- {panpath-0.4.9 → panpath-0.4.10}/panpath/s3_path.py +7 -5
- {panpath-0.4.9 → panpath-0.4.10}/pyproject.toml +1 -1
- {panpath-0.4.9 → panpath-0.4.10}/LICENSE +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/README.md +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/azure_async_client.py +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/azure_client.py +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/base.py +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/clients.py +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/cloud.py +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/exceptions.py +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/gs_async_client.py +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/gs_client.py +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/local_path.py +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/py.typed +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/registry.py +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/s3_async_client.py +0 -0
- {panpath-0.4.9 → panpath-0.4.10}/panpath/s3_client.py +0 -0
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"""Azure Blob Storage path implementation."""
|
|
2
|
-
|
|
2
|
+
from __future__ import annotations
|
|
3
3
|
from typing import TYPE_CHECKING, Optional
|
|
4
4
|
|
|
5
5
|
from panpath.cloud import CloudPath
|
|
6
|
-
from panpath.azure_client import AzureBlobClient
|
|
7
|
-
from panpath.azure_async_client import AsyncAzureBlobClient
|
|
8
6
|
|
|
9
7
|
if TYPE_CHECKING:
|
|
10
8
|
from panpath.clients import Client, AsyncClient
|
|
@@ -13,15 +11,19 @@ if TYPE_CHECKING:
|
|
|
13
11
|
class AzurePath(CloudPath):
|
|
14
12
|
"""Azure Blob Storage path implementation (sync and async methods)."""
|
|
15
13
|
|
|
16
|
-
_client: Optional[
|
|
17
|
-
_default_client: Optional[
|
|
14
|
+
_client: Optional[Client] = None
|
|
15
|
+
_default_client: Optional[Client] = None
|
|
18
16
|
|
|
19
17
|
@classmethod
|
|
20
18
|
def _create_default_client(cls) -> "Client": # type: ignore[override]
|
|
21
19
|
"""Create default Azure Blob client."""
|
|
20
|
+
from panpath.azure_client import AzureBlobClient
|
|
21
|
+
|
|
22
22
|
return AzureBlobClient()
|
|
23
23
|
|
|
24
24
|
@classmethod
|
|
25
25
|
def _create_default_async_client(cls) -> "AsyncClient":
|
|
26
26
|
"""Create default async Azure Blob client."""
|
|
27
|
+
from panpath.azure_async_client import AsyncAzureBlobClient
|
|
28
|
+
|
|
27
29
|
return AsyncAzureBlobClient()
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"""Google Cloud Storage path implementation."""
|
|
2
|
-
|
|
2
|
+
from __future__ import annotations
|
|
3
3
|
from typing import TYPE_CHECKING, Optional
|
|
4
4
|
|
|
5
5
|
from panpath.cloud import CloudPath
|
|
6
|
-
from panpath.gs_client import GSClient
|
|
7
6
|
|
|
8
7
|
if TYPE_CHECKING:
|
|
9
8
|
from panpath.clients import Client, AsyncClient
|
|
@@ -12,12 +11,14 @@ if TYPE_CHECKING:
|
|
|
12
11
|
class GSPath(CloudPath):
|
|
13
12
|
"""Google Cloud Storage path implementation (sync and async methods)."""
|
|
14
13
|
|
|
15
|
-
_client: Optional[
|
|
16
|
-
_default_client: Optional[
|
|
14
|
+
_client: Optional[Client] = None
|
|
15
|
+
_default_client: Optional[Client] = None
|
|
17
16
|
|
|
18
17
|
@classmethod
|
|
19
18
|
def _create_default_client(cls) -> "Client": # type: ignore[override]
|
|
20
19
|
"""Create default GCS client."""
|
|
20
|
+
from panpath.gs_client import GSClient
|
|
21
|
+
|
|
21
22
|
return GSClient()
|
|
22
23
|
|
|
23
24
|
@classmethod
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"""S3 path implementation."""
|
|
2
|
-
|
|
2
|
+
from __future__ import annotations
|
|
3
3
|
from typing import TYPE_CHECKING, Optional
|
|
4
4
|
|
|
5
5
|
from panpath.cloud import CloudPath
|
|
6
|
-
from panpath.s3_client import S3Client
|
|
7
|
-
from panpath.s3_async_client import AsyncS3Client
|
|
8
6
|
|
|
9
7
|
if TYPE_CHECKING:
|
|
10
8
|
from panpath.clients import Client, AsyncClient
|
|
@@ -13,15 +11,19 @@ if TYPE_CHECKING:
|
|
|
13
11
|
class S3Path(CloudPath):
|
|
14
12
|
"""S3 path implementation (sync and async methods)."""
|
|
15
13
|
|
|
16
|
-
_client: Optional[
|
|
17
|
-
_default_client: Optional[
|
|
14
|
+
_client: Optional[Client] = None
|
|
15
|
+
_default_client: Optional[Client] = None
|
|
18
16
|
|
|
19
17
|
@classmethod
|
|
20
18
|
def _create_default_client(cls) -> "Client": # type: ignore[override]
|
|
21
19
|
"""Create default S3 client."""
|
|
20
|
+
from panpath.s3_client import S3Client
|
|
21
|
+
|
|
22
22
|
return S3Client()
|
|
23
23
|
|
|
24
24
|
@classmethod
|
|
25
25
|
def _create_default_async_client(cls) -> "AsyncClient":
|
|
26
26
|
"""Create default async S3 client."""
|
|
27
|
+
from panpath.s3_async_client import AsyncS3Client
|
|
28
|
+
|
|
27
29
|
return AsyncS3Client()
|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "panpath"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.10"
|
|
8
8
|
description = "Universal sync/async local/cloud path library with pathlib-compatible interface"
|
|
9
9
|
authors = ["panpath contributors"]
|
|
10
10
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|