diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-21 13:42:03 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-21 13:42:03 +0000 |
| commit | 41131ae8bf5c921968d32c15f730b065bb9259de (patch) | |
| tree | 2181eeaf2970b4d8ae89381f3fc8021e35dfe1ce | |
| parent | c6874feafe9b65ba02f89bc9c9779d48d7646ba8 (diff) | |
automatic import of python-azure-storage-file-shareopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-azure-storage-file-share.spec | 142 | ||||
| -rw-r--r-- | sources | 2 |
3 files changed, 105 insertions, 40 deletions
@@ -1 +1,2 @@ /azure-storage-file-share-12.11.1.zip +/azure-storage-file-share-12.12.0.zip diff --git a/python-azure-storage-file-share.spec b/python-azure-storage-file-share.spec index 21ae8cc..0fe9a1f 100644 --- a/python-azure-storage-file-share.spec +++ b/python-azure-storage-file-share.spec @@ -1,18 +1,13 @@ %global _empty_manifest_terminate_build 0 Name: python-azure-storage-file-share -Version: 12.11.1 +Version: 12.12.0 Release: 1 Summary: Microsoft Azure Azure File Share Storage Client Library for Python License: MIT License URL: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share -Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b3/18/dccdacc61c3334cdc5ee6b6acffe90dbf6d56333b290e56a9d32884000a4/azure-storage-file-share-12.11.1.zip +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/68/97/c72fcbd17d7bed7b71ca9bde0d137e1a64ae4cd4952aab557d2766993b11/azure-storage-file-share-12.12.0.zip BuildArch: noarch -Requires: python3-azure-core -Requires: python3-cryptography -Requires: python3-typing-extensions -Requires: python3-isodate -Requires: python3-azure-core[aio] %description # Azure Storage File Share client library for Python @@ -24,7 +19,12 @@ Azure file shares can be used to: * "Lift and shift" applications * Simplify cloud development with shared application settings, diagnostic share, and Dev/Test/Debug tools -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/azure/storage/fileshare) | [Package (PyPI)](https://pypi.org/project/azure-storage-file-share/) | [API reference documentation](https://aka.ms/azsdk-python-storage-fileshare-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples) +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/azure/storage/fileshare) +| [Package (PyPI)](https://pypi.org/project/azure-storage-file-share/) +| [Package (Conda)](https://anaconda.org/microsoft/azure-storage/) +| [API reference documentation](https://aka.ms/azsdk-python-storage-fileshare-ref) +| [Product documentation](https://docs.microsoft.com/azure/storage/) +| [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples) ## Getting started @@ -189,7 +189,7 @@ Create a file share to store your files ```python from azure.storage.fileshare import ShareClient -share = ShareClient.from_connection_string(conn_str="<connection_string>", share_name="my_share") +share = ShareClient.from_connection_string(conn_str="<connection_string>", share_name="myshare") share.create_share() ``` @@ -198,7 +198,7 @@ Use the async client to create a file share ```python from azure.storage.fileshare.aio import ShareClient -share = ShareClient.from_connection_string(conn_str="<connection_string>", share_name="my_share") +share = ShareClient.from_connection_string(conn_str="<connection_string>", share_name="myshare") await share.create_share() ``` @@ -208,7 +208,7 @@ Upload a file to the share ```python from azure.storage.fileshare import ShareFileClient -file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", file_path="my_file") +file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", file_path="my_file") with open("./SampleSource.txt", "rb") as source_file: file_client.upload_file(source_file) @@ -219,7 +219,7 @@ Upload a file asynchronously ```python from azure.storage.fileshare.aio import ShareFileClient -file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", file_path="my_file") +file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", file_path="my_file") with open("./SampleSource.txt", "rb") as source_file: await file_client.upload_file(source_file) @@ -231,7 +231,7 @@ Download a file from the share ```python from azure.storage.fileshare import ShareFileClient -file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", file_path="my_file") +file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", file_path="my_file") with open("DEST_FILE", "wb") as file_handle: data = file_client.download_file() @@ -243,7 +243,7 @@ Download a file asynchronously ```python from azure.storage.fileshare.aio import ShareFileClient -file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", file_path="my_file") +file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", file_path="my_file") with open("DEST_FILE", "wb") as file_handle: data = await file_client.download_file() @@ -256,7 +256,7 @@ List all directories and files under a parent directory ```python from azure.storage.fileshare import ShareDirectoryClient -parent_dir = ShareDirectoryClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", directory_path="parent_dir") +parent_dir = ShareDirectoryClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", directory_path="parent_dir") my_list = list(parent_dir.list_directories_and_files()) print(my_list) @@ -267,7 +267,7 @@ List contents of a directory asynchronously ```python from azure.storage.fileshare.aio import ShareDirectoryClient -parent_dir = ShareDirectoryClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", directory_path="parent_dir") +parent_dir = ShareDirectoryClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", directory_path="parent_dir") my_files = [] async for item in parent_dir.list_directories_and_files(): @@ -351,7 +351,7 @@ service_client = ShareServiceClient.from_connection_string("your_connection_stri Similarly, `logging_enable` can enable detailed logging for a single operation, even when it isn't enabled for the client: -```py +```python service_client.get_service_properties(logging_enable=True) ``` @@ -406,6 +406,24 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope # Release History +## 12.12.0 (2023-04-12) + +### Features Added +- Stable release of features from 12.12.0b1 + +## 12.12.0b1 (2023-03-28) + +### Features Added +- Added support for service version 2022-11-02. +- Added support for `TokenCredential` to be used for authentication. A `TokenCredential` can be provided for the +`credential` parameter to any client constructor. **Note:** When using a `TokenCredential`, the new keyword parameter +`token_intent` is **required** and must be provided. Additionally, this form of authentication is only supported for +certain operations in the Data Plane SDK. +- Added support for `allow_trailing_dot` and `allow_source_trailing_dot` on client construction. When +`allow_trailing_dot` is provided, the service will not silently remove any trailing `.` character from directory/file +names for all operations made from that client. `allow_source_trailing_dot` will apply this same rule to source files +when performing a rename or copy operation. + ## 12.11.1 (2023-03-08) ### Bugs Fixed @@ -842,7 +860,12 @@ Azure file shares can be used to: * "Lift and shift" applications * Simplify cloud development with shared application settings, diagnostic share, and Dev/Test/Debug tools -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/azure/storage/fileshare) | [Package (PyPI)](https://pypi.org/project/azure-storage-file-share/) | [API reference documentation](https://aka.ms/azsdk-python-storage-fileshare-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples) +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/azure/storage/fileshare) +| [Package (PyPI)](https://pypi.org/project/azure-storage-file-share/) +| [Package (Conda)](https://anaconda.org/microsoft/azure-storage/) +| [API reference documentation](https://aka.ms/azsdk-python-storage-fileshare-ref) +| [Product documentation](https://docs.microsoft.com/azure/storage/) +| [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples) ## Getting started @@ -1007,7 +1030,7 @@ Create a file share to store your files ```python from azure.storage.fileshare import ShareClient -share = ShareClient.from_connection_string(conn_str="<connection_string>", share_name="my_share") +share = ShareClient.from_connection_string(conn_str="<connection_string>", share_name="myshare") share.create_share() ``` @@ -1016,7 +1039,7 @@ Use the async client to create a file share ```python from azure.storage.fileshare.aio import ShareClient -share = ShareClient.from_connection_string(conn_str="<connection_string>", share_name="my_share") +share = ShareClient.from_connection_string(conn_str="<connection_string>", share_name="myshare") await share.create_share() ``` @@ -1026,7 +1049,7 @@ Upload a file to the share ```python from azure.storage.fileshare import ShareFileClient -file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", file_path="my_file") +file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", file_path="my_file") with open("./SampleSource.txt", "rb") as source_file: file_client.upload_file(source_file) @@ -1037,7 +1060,7 @@ Upload a file asynchronously ```python from azure.storage.fileshare.aio import ShareFileClient -file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", file_path="my_file") +file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", file_path="my_file") with open("./SampleSource.txt", "rb") as source_file: await file_client.upload_file(source_file) @@ -1049,7 +1072,7 @@ Download a file from the share ```python from azure.storage.fileshare import ShareFileClient -file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", file_path="my_file") +file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", file_path="my_file") with open("DEST_FILE", "wb") as file_handle: data = file_client.download_file() @@ -1061,7 +1084,7 @@ Download a file asynchronously ```python from azure.storage.fileshare.aio import ShareFileClient -file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", file_path="my_file") +file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", file_path="my_file") with open("DEST_FILE", "wb") as file_handle: data = await file_client.download_file() @@ -1074,7 +1097,7 @@ List all directories and files under a parent directory ```python from azure.storage.fileshare import ShareDirectoryClient -parent_dir = ShareDirectoryClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", directory_path="parent_dir") +parent_dir = ShareDirectoryClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", directory_path="parent_dir") my_list = list(parent_dir.list_directories_and_files()) print(my_list) @@ -1085,7 +1108,7 @@ List contents of a directory asynchronously ```python from azure.storage.fileshare.aio import ShareDirectoryClient -parent_dir = ShareDirectoryClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", directory_path="parent_dir") +parent_dir = ShareDirectoryClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", directory_path="parent_dir") my_files = [] async for item in parent_dir.list_directories_and_files(): @@ -1169,7 +1192,7 @@ service_client = ShareServiceClient.from_connection_string("your_connection_stri Similarly, `logging_enable` can enable detailed logging for a single operation, even when it isn't enabled for the client: -```py +```python service_client.get_service_properties(logging_enable=True) ``` @@ -1224,6 +1247,24 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope # Release History +## 12.12.0 (2023-04-12) + +### Features Added +- Stable release of features from 12.12.0b1 + +## 12.12.0b1 (2023-03-28) + +### Features Added +- Added support for service version 2022-11-02. +- Added support for `TokenCredential` to be used for authentication. A `TokenCredential` can be provided for the +`credential` parameter to any client constructor. **Note:** When using a `TokenCredential`, the new keyword parameter +`token_intent` is **required** and must be provided. Additionally, this form of authentication is only supported for +certain operations in the Data Plane SDK. +- Added support for `allow_trailing_dot` and `allow_source_trailing_dot` on client construction. When +`allow_trailing_dot` is provided, the service will not silently remove any trailing `.` character from directory/file +names for all operations made from that client. `allow_source_trailing_dot` will apply this same rule to source files +when performing a rename or copy operation. + ## 12.11.1 (2023-03-08) ### Bugs Fixed @@ -1657,7 +1698,12 @@ Azure file shares can be used to: * "Lift and shift" applications * Simplify cloud development with shared application settings, diagnostic share, and Dev/Test/Debug tools -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/azure/storage/fileshare) | [Package (PyPI)](https://pypi.org/project/azure-storage-file-share/) | [API reference documentation](https://aka.ms/azsdk-python-storage-fileshare-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples) +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/azure/storage/fileshare) +| [Package (PyPI)](https://pypi.org/project/azure-storage-file-share/) +| [Package (Conda)](https://anaconda.org/microsoft/azure-storage/) +| [API reference documentation](https://aka.ms/azsdk-python-storage-fileshare-ref) +| [Product documentation](https://docs.microsoft.com/azure/storage/) +| [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples) ## Getting started @@ -1822,7 +1868,7 @@ Create a file share to store your files ```python from azure.storage.fileshare import ShareClient -share = ShareClient.from_connection_string(conn_str="<connection_string>", share_name="my_share") +share = ShareClient.from_connection_string(conn_str="<connection_string>", share_name="myshare") share.create_share() ``` @@ -1831,7 +1877,7 @@ Use the async client to create a file share ```python from azure.storage.fileshare.aio import ShareClient -share = ShareClient.from_connection_string(conn_str="<connection_string>", share_name="my_share") +share = ShareClient.from_connection_string(conn_str="<connection_string>", share_name="myshare") await share.create_share() ``` @@ -1841,7 +1887,7 @@ Upload a file to the share ```python from azure.storage.fileshare import ShareFileClient -file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", file_path="my_file") +file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", file_path="my_file") with open("./SampleSource.txt", "rb") as source_file: file_client.upload_file(source_file) @@ -1852,7 +1898,7 @@ Upload a file asynchronously ```python from azure.storage.fileshare.aio import ShareFileClient -file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", file_path="my_file") +file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", file_path="my_file") with open("./SampleSource.txt", "rb") as source_file: await file_client.upload_file(source_file) @@ -1864,7 +1910,7 @@ Download a file from the share ```python from azure.storage.fileshare import ShareFileClient -file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", file_path="my_file") +file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", file_path="my_file") with open("DEST_FILE", "wb") as file_handle: data = file_client.download_file() @@ -1876,7 +1922,7 @@ Download a file asynchronously ```python from azure.storage.fileshare.aio import ShareFileClient -file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", file_path="my_file") +file_client = ShareFileClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", file_path="my_file") with open("DEST_FILE", "wb") as file_handle: data = await file_client.download_file() @@ -1889,7 +1935,7 @@ List all directories and files under a parent directory ```python from azure.storage.fileshare import ShareDirectoryClient -parent_dir = ShareDirectoryClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", directory_path="parent_dir") +parent_dir = ShareDirectoryClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", directory_path="parent_dir") my_list = list(parent_dir.list_directories_and_files()) print(my_list) @@ -1900,7 +1946,7 @@ List contents of a directory asynchronously ```python from azure.storage.fileshare.aio import ShareDirectoryClient -parent_dir = ShareDirectoryClient.from_connection_string(conn_str="<connection_string>", share_name="my_share", directory_path="parent_dir") +parent_dir = ShareDirectoryClient.from_connection_string(conn_str="<connection_string>", share_name="myshare", directory_path="parent_dir") my_files = [] async for item in parent_dir.list_directories_and_files(): @@ -1984,7 +2030,7 @@ service_client = ShareServiceClient.from_connection_string("your_connection_stri Similarly, `logging_enable` can enable detailed logging for a single operation, even when it isn't enabled for the client: -```py +```python service_client.get_service_properties(logging_enable=True) ``` @@ -2039,6 +2085,24 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope # Release History +## 12.12.0 (2023-04-12) + +### Features Added +- Stable release of features from 12.12.0b1 + +## 12.12.0b1 (2023-03-28) + +### Features Added +- Added support for service version 2022-11-02. +- Added support for `TokenCredential` to be used for authentication. A `TokenCredential` can be provided for the +`credential` parameter to any client constructor. **Note:** When using a `TokenCredential`, the new keyword parameter +`token_intent` is **required** and must be provided. Additionally, this form of authentication is only supported for +certain operations in the Data Plane SDK. +- Added support for `allow_trailing_dot` and `allow_source_trailing_dot` on client construction. When +`allow_trailing_dot` is provided, the service will not silently remove any trailing `.` character from directory/file +names for all operations made from that client. `allow_source_trailing_dot` will apply this same rule to source files +when performing a rename or copy operation. + ## 12.11.1 (2023-03-08) ### Bugs Fixed @@ -2460,7 +2524,7 @@ https://aka.ms/azure-sdk-preview1-python. %prep -%autosetup -n azure-storage-file-share-12.11.1 +%autosetup -n azure-storage-file-share-12.12.0 %build %py3_build @@ -2500,5 +2564,5 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog -* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 12.11.1-1 +* Fri Apr 21 2023 Python_Bot <Python_Bot@openeuler.org> - 12.12.0-1 - Package Spec generated @@ -1 +1 @@ -af8ef48510de5c82f74b99334960a4a2 azure-storage-file-share-12.11.1.zip +9785237564cb8f5e7c1dd5dbb4c2d92a azure-storage-file-share-12.12.0.zip |
