This release is a pre-release and may not be stable for production use.
Azure DataLake service client library for Python
Overview
This preview package for Python includes ADLS Gen2 specific API support made available in Storage SDK. This includes:
- New directory level operations (Create, Rename, Delete) for hierarchical namespace enabled (HNS) storage account. For HNS enabled accounts, the rename/move operations are atomic.
- Permission related operations (Get/Set ACLs) for hierarchical namespace enabled (HNS) accounts.
Source code | Package (PyPi) | Package (Conda) | API reference documentation | Product documentation | Samples
Getting started
Prerequisites
- Python 3.9 or later is required to use this package. For more details, please read our page on Azure SDK for Python version support policy.
- You must have an Azure subscription and an Azure storage account to use this package.
Install the package
Install the Azure DataLake Storage client library for Python with pip:
pip install azure-storage-file-datalake --pre
Create a storage account
If you wish to create a new storage account, you can use the Azure Portal, Azure PowerShell, or Azure CLI:
# Create a new resource group to hold the storage account -
# if using an existing resource group, skip this step
az group create --name my-resource-group --location westus2
# Install the extension 'Storage-Preview'
az extension add --name storage-preview
# Create the storage account
az storage account create --name my-storage-account-name --resource-group my-resource-group --sku Standard_LRS --kind StorageV2 --hierarchical-namespace true
Authenticate the client
Interaction with DataLake Storage starts with an instance of the DataLakeServiceClient class. You need an existing storage account, its URL, and a credential to instantiate the client object.
Get credentials
To authenticate the client you have a few options:
- Use a SAS token string
- Use an account shared access key
- Use a token credential from azure.identity
Alternatively, you can authenticate with a storage connection string using the from_connection_string method. See example: Client creation with a connection string.
You can omit the credential if your account URL already has a SAS token.
Create client
Once you have your account URL and credentials ready, you can create the DataLakeServiceClient:
from azure.storage.filedatalake import DataLakeServiceClient
service = DataLakeServiceClient(account_url="https://<my-storage-account-name>.dfs.core.windows.net/", credential=credential)
Key concepts
DataLake storage offers four types of resources:
- The storage account
- A file system in the storage account
- A directory under the file system
- A file in a the file system or under directory
Async Clients
This library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as aiohttp. See azure-core documentation for more information.
Async clients and credentials should be closed when they're no longer needed. These
objects are async context managers and define async close methods.
Clients
The DataLake Storage SDK provides four different clients to interact with the DataLake Service:
- DataLakeServiceClient -
this client interacts with the DataLake Service at the account level.
It provides operations to retrieve and configure the account properties
as well as list, create, and delete file systems within the account.
For operations relating to a specific file system, directory or file, clients for those entities
can also be retrieved using the
get_file_client,get_directory_clientorget_file_system_clientfunctions. - FileSystemClient -
this client represents interaction with a specific
file system, even if that file system does not exist yet. It provides operations to create, delete, or
configure file systems and includes operations to list paths under file system, upload, and delete file or
directory in the file system.
For operations relating to a specific file, the client can also be retrieved using
the
get_file_clientfunction. For operations relating to a specific directory, the client can be retrieved using theget_directory_clientfunction. - DatalakeDirectoryClient - this client represents interaction with a specific directory, even if that directory does not exist yet. It provides directory operations create, delete, rename, get properties and set properties operations.
- DatalakeFileClient - this client represents interaction with a specific file, even if that file does not exist yet. It provides file operations to append data, flush data, delete, create, and read file.
- DatalakeLeaseClient - this client represents lease interactions with a FileSystemClient, DataLakeDirectoryClient or DataLakeFileClient. It provides operations to acquire, renew, release, change, and break leases on the resources.
Examples
The following sections provide several code snippets covering some of the most common Storage DataLake tasks, including:
Client creation with a connection string
Create the DataLakeServiceClient using the connection string to your Azure Storage account.
from azure.storage.filedatalake import DataLakeServiceClient
service = DataLakeServiceClient.from_connection_string(conn_str="my_connection_string")
Uploading a file
Upload a file to your file system.
from azure.storage.filedatalake import DataLakeFileClient
data = b"abc"
file = DataLakeFileClient.from_connection_string("my_connection_string",
file_system_name="myfilesystem", file_path="myfile")
file.create_file ()
file.append_data(data, offset=0, length=len(data))
file.flush_data(len(data))
Downloading a file
Download a file from your file system.
from azure.storage.filedatalake import DataLakeFileClient
file = DataLakeFileClient.from_connection_string("my_connection_string",
file_system_name="myfilesystem", file_path="myfile")
with open("./BlockDestination.txt", "wb") as my_file:
download = file.download_file()
download.readinto(my_file)
Enumerating paths
List the paths in your file system.
from azure.storage.filedatalake import FileSystemClient
file_system = FileSystemClient.from_connection_string("my_connection_string", file_system_name="myfilesystem")
paths = file_system.get_paths()
for path in paths:
print(path.name + '\n')
Optional Configuration
Optional keyword arguments that can be passed in at the client and per-operation level.
Retry Policy configuration
Use the following keyword arguments when instantiating a client to configure the retry policy:
- retry_total (int): Total number of retries to allow. Takes precedence over other counts.
Pass in
retry_total=0if you do not want to retry on requests. Defaults to 10. - retry_connect (int): How many connection-related errors to retry on. Defaults to 3.
- retry_read (int): How many times to retry on read errors. Defaults to 3.
- retry_status (int): How many times to retry on bad status codes. Defaults to 3.
- retry_to_secondary (bool): Whether the request should be retried to secondary, if able.
This should only be enabled of RA-GRS accounts are used and potentially stale data can be handled.
Defaults to
False.
Other client / per-operation configuration
Other optional configuration keyword arguments that can be specified on the client or per-operation.
Client keyword arguments:
- connection_timeout (int): The number of seconds the client will wait to establish a connection to the server. Defaults to 20 seconds.
- read_timeout (int): The number of seconds the client will wait, between consecutive read operations, for a response from the server. This is a socket level timeout and is not affected by overall data size. Client-side read timeouts will be automatically retried. Defaults to 60 seconds.
- transport (Any): User-provided transport to send the HTTP request.
Per-operation keyword arguments:
- raw_response_hook (callable): The given callback uses the response returned from the service.
- raw_request_hook (callable): The given callback uses the request before being sent to service.
- client_request_id (str): Optional user specified identification of the request.
- user_agent (str): Appends the custom value to the user-agent header to be sent with the request.
- logging_enable (bool): Enables logging at the DEBUG level. Defaults to False. Can also be passed in at the client level to enable it for all requests.
- logging_body (bool): Enables logging the request and response body. Defaults to False. Can also be passed in at the client level to enable it for all requests.
- headers (dict): Pass in custom headers as key, value pairs. E.g.
headers={'CustomValue': value}
Troubleshooting
General
DataLake Storage clients raise exceptions defined in Azure Core.
This list can be used for reference to catch thrown exceptions. To get the specific error code of the exception, use the error_code attribute, i.e, exception.error_code.
Logging
This library uses the standard logging library for logging. Basic information about HTTP sessions (URLs, headers, etc.) is logged at INFO level.
Detailed DEBUG level logging, including request/response bodies and unredacted
headers, can be enabled on a client with the logging_enable argument:
import sys
import logging
from azure.storage.filedatalake import DataLakeServiceClient
# Create a logger for the 'azure.storage.filedatalake' SDK
logger = logging.getLogger('azure.storage')
logger.setLevel(logging.DEBUG)
# Configure a console output
handler = logging.StreamHandler(stream=sys.stdout)
logger.addHandler(handler)
# This client will log detailed information about its HTTP sessions, at DEBUG level
service_client = DataLakeServiceClient.from_connection_string("your_connection_string", logging_enable=True)
Similarly, logging_enable can enable detailed logging for a single operation,
even when it isn't enabled for the client:
service_client.list_file_systems(logging_enable=True)
Next steps
More sample code
Get started with our Azure DataLake samples.
Several DataLake Storage Python SDK samples are available to you in the SDK's GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with DataLake Storage:
-
datalake_samples_access_control.py- Examples for common DataLake Storage tasks:- Set up a file system
- Create a directory
- Set/Get access control for the directory
- Create files under the directory
- Set/Get access control for each file
- Delete file system
-
datalake_samples_upload_download.py- Examples for common DataLake Storage tasks:- Set up a file system
- Create file
- Append data to the file
- Flush data to the file
- Download the uploaded data
- Delete file system
Additional documentation
Table for ADLS Gen1 to ADLS Gen2 API Mapping For more extensive REST documentation on Data Lake Storage Gen2, see the Data Lake Storage Gen2 documentation on learn.microsoft.com.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Release History
12.27.0b1 (2026-11-04)
Breaking Changes
- Custom transports that use legacy
azure-coreRequest/Response types will no longer be supported and may now cause errors if used. Please ensure custom transports are utilizing types fromazure.core.rest. - Changed the default
max_single_get_sizefrom 32 MiB to 4 MiB. This means the initial download request will now be 4 MiB rather than 32 MiB which may result in more requests than previous versions depending on file size. This also means some file downloads may use parallel requests when they were not previously, ifmax_concurrencyis set greater than 1. To restore the previous behavior, passmax_single_get_size = 32 * 1024 * 1024when constructing the client.
Features Added
- Added support for service versions 2026-12-06 and 2027-03-07.
- Added opt-in client session-based authentication via the new
use_sessionkeyword argument. When enabled, eligible file read requests are authenticated with a short-lived, per-file-system session credential obtained from the service rather than the bearer token. Requires aTokenCredential. Sessions are managed by a session provider, which can be shared across clients via thesession_providerkeyword, and the account name used for signing can be set explicitly withsession_account_name.
Bugs Fixed
- Fixed an issue where a SAS generated for a path containing a backslash (
\) was invalid because the backslash was not normalized to a forward slash when building the signed resource.
Other Changes
- Content-Type for append_data has changed from application/json to octet-stream
- Migrated generated code to use the new TypeSpec generator.
12.26.1 (2026-10-29)
Bugs Fixed
- Fixed UTC conversion of timezone-aware datetimes in
generate_account_sas,generate_file_system_sas,generate_directory_sas,generate_file_sas, andDataLakeServiceClient.get_user_delegation_key(sync and async). Datetimes without timezone information continue to be treated as UTC. - Fixed an issue where certain headers were not being properly redacted when DEBUG logging was enabled.
12.26.0 (2026-09-30)
This version and all future versions will require Python 3.10+. Python 3.9 is no longer supported.
Features Added
- Stable release of features from 12.26.0b1
12.26.0b1 (2026-08-10)
Features Added
- Added support for service version 2026-10-06.
12.25.0 (2026-06-08)
Features Added
- Stable release of features from 12.25.0b1
12.24.0 (2026-05-14)
Features Added
- Stable release of features from 12.24.0b1
Bugs Fixed
- Fixed various issues with configuring logging via
logging_enableandlogging_bodykeywords on a per-request basis and with retries. Prior to this fix logging may have not behaved as expected, especially on retries. - Fix a potential memory leak caused by improper exception handling that could occur under rare circumstances.
12.25.0b1 (2026-04-01)
Features Added
- Added support for service version 2026-06-06.
- Added support for connection strings and
account_urls to accept URLs with-ipv6and-dualstacksuffixes forDataLakeServiceClient,FileSystemClient,DataLakeDirectoryClient, andDataLakeFileClient. - Added support for
DataLakeDirectoryClientandDataLakeFileClient'sset_tagsandget_tagsAPIs to conditionally set and get tags associated with a directory or file client, respectively.
Other Changes
- Consolidated the behavior of
max_concurrency=Noneby defaulting to the sharedDEFAULT_MAX_CONCURRENCYconstant.
12.24.0b1 (2026-01-27)
Features Added
- Added support for service version 2026-04-06.
- Added support for the keyword
user_delegation_tidtoDataLakeServiceClient.get_user_delegation_keyAPI, which can be used ingenerate_file_system_sas,generate_directory_sas, andgenerate_file_sasto specify the Tenant ID that is authorized to use the generated SAS URL. Note thatuser_delegation_tidmust be used together withuser_delegation_oid. - Added support for the keyword
request_headerstogenerate_file_system_sas,generate_directory_sas, andgenerate_file_saswhich specifies a set of headers and their corresponding values that must be present in the request header when using the generated SAS. - Added support for the keyword
request_query_paramstogenerate_file_system_sas,generate_directory_sas, andgenerate_file_saswhich specifies a set of query parameters and their corresponding values that must be present in the request URL when using the generated SAS.
Other Changes
- Bumped minimum
azure-coredependency to 1.37.0.
12.23.0 (2026-01-06)
Features Added
- Stable release of features from 12.23.0b1
Other Changes
- Changed the default
connection_data_block_sizefor all clients from 4 KiB to 256 KiB. This should result in significantly better throughput on large file downloads for most environments.
12.23.0b1 (2025-12-04)
Features Added
- Added support for service version 2026-02-06.
- Added support for the keyword
start_fromforDataLakeServiceClient'sget_pathsandDataLakeDirectoryClient'sget_pathsAPIs, which specifies the full path to start listing paths from. - Added support for the keyword
user_delegation_oidtogenerate_file_system_sas,generate_directory_sas, andgenerate_file_sas, which specifies the Entra ID of the user that is authorized to use the generated SAS URL. - Added support for
UseDevelopmentStorage=true;as a valid connection string for Azurite. - Added the ability to skip auto decompression on
DataLakeFileClient.download_filevia thedecompresskeyword.
Other Changes
- Migrated any previously documented
kwargarguments to be named keywords. Some public types may have been adjusted if they were previously erroneous or incomplete. - Removed
__enter__and__exit__attributes for all asynchronous client objects for raising explicitTypeError, and let theAttributeErrorraise directly.
12.22.0 (2025-10-15)
Features Added
- Stable release of features from 12.22.0b1
Other Changes
- Removed
__enter__and__exit__attributes for all asynchronous client objects for raising explicitTypeError, and let theAttributeErrorraise directly.
12.21.0 (2025-07-16)
Features Added
- Stable release of features from 12.21.0b1
12.22.0b1 (2025-06-12)
This version and all future versions will require Python 3.9+. Python 3.8 is no longer supported.
Features Added
- Added support for service version 2025-11-05.
12.21.0b1 (2025-05-06)
Features Added
- Added support for service version 2025-07-05.
- Added support for OAuth authentication in
FileSystemClient'sget_file_system_access_policyandset_file_system_access_policyAPIs. - Added support for progress tracking to
DataLakeFileClient'supload_dataanddownload_fileAPIs via a new optional callback,progress_hook.
Bugs Fixed
- Fixed an issue where URL safe encoding is inconsistent between Blob and Datalake paths.
12.20.0 (2025-03-27)
Features Added
- Updated type hints across the entire package and enabled MyPy to run during CI. Some public types may have been adjusted if they were previously erroneous or incomplete.
12.19.0 (2025-03-11)
Features Added
- Stable release of features from 12.19.0b1
12.19.0b1 (2025-02-11)
Features Added
- Added support for service version 2025-05-05.
12.18.1 (2025-01-22)
Bugs Fixed
- Fixed an issue where custom transports may encounter
AttributeErroron certain requests. - Fixed request handler to handle
Nonevalue forexpires_onkeyword toset_file_expiryAPI.
12.18.0 (2024-11-13)
Features Added
- Stable release of features from 12.18.0b1
12.18.0b1 (2024-10-10)
Features Added
- Added support for service version 2025-01-05.
- Added support for
get_paths()onDataLakeDirectoryClient.
12.17.0 (2024-09-17)
Features Added
- Stable release of features from 12.17.0b1
12.17.0b1 (2024-08-07)
Features Added
- Added support for service version 2024-11-04.
Other Changes
- Bumped minimum
azure-coredependency to 1.30.0.
12.16.0 (2024-07-18)
Features Added
- Stable release of features from 12.16.0b1
12.16.0b1 (2024-06-11)
Features Added
- Updated OAuth implementation to use the AAD scope returned in a Bearer challenge.
12.15.0 (2024-05-07)
Features Added
- Stable release of features from 12.15.0b1
12.15.0b1 (2024-04-16)
This version and all future versions will require Python 3.8+. Python 3.7 is no longer supported.
Features Added
- Added support for service version 2024-05-04.
- The
servicesparameter has been added to thegenerate_account_sasAPI, which enables the ability to generate SAS tokens to be used with multiple services. By default, the SAS token service scope will default to the current service. - Added
upnas an optional keyword that can be specified on APIs that return an instance ofPathProperties,DirectoryPropertiesorFileProperties. Specifying this keyword transforms the user identity values returned in theowner,group, andaclfields of the corresponding Properties from Azure Active Directory Object IDs to User Principal Names.
Bugs Fixed
- Bumped dependency of
typing-extensionsto>=4.6.0to avoid potentialTypeErrorwithtyping.TypeVaron Python 3.12. - Fixed an issue where authentication errors could raise
AttributeErrorinstead ofClientAuthenticationErrorwhen using async OAuth credentials.
12.14.0 (2023-11-07)
Features Added
- Stable release of features from 12.14.0b1
12.14.0b1 (2023-10-17)
Features Added
- Added support for service version 2023-11-03.
- Added
audienceas an optional keyword that can be specified on APIs that have acredentialparameter. This keyword only has an effect when the credential provided is of typeTokenCredential.
12.13.2 (2023-10-10)
Bugs Fixed
- Fixed an issue when an invalid type was provided for
credentialduring client construction, the__str__of the object would be present in the exception message and therefore potentially logged.
12.13.1 (2023-09-13)
Bugs Fixed
- Fixed breaking
KeyError: 'sdk_moniker'increate_configuration. NOTE: This is not an exported method and therefore should not be imported/called directly.
12.13.0 (2023-09-12)
Features Added
- Stable release of features from 12.13.0b1
12.13.0b1 (2023-08-08)
Features Added
- Added support for service versions 2023-05-03 and 2023-08-03.
12.12.0 (2023-07-11)
Features Added
- Stable release of features from 12.12.0b1
12.12.0b1 (2023-05-30)
Features Added
- Added support for service version 2023-01-03.
- Added support for
encryption_contextto theupload_dataAPI. Previously,encryption_contextsupport was only on thecreate_fileAPI. - Added
owner,group, andpermissionproperties toDirectoryPropertiesandFileProperties.
12.11.0 (2023-04-12)
Features Added
- Stable release of features from 12.11.0b1
12.11.0b1 (2023-03-28)
Features Added
- Added support for service version 2022-11-02.
- Added support for
encryption_context, a string value that can be passed when creating a file that will not be encrypted with the file. This value is returned ondownload_file,get_file_propertiesandget_paths.
12.10.1 (2023-03-08)
Bugs Fixed
- Fixed "duplicate type signatures" MyPy error.
12.10.0 (2023-02-22)
Features Added
- Stable release of features from 12.10.0b1
12.10.0b1 (2023-02-02)
Features Added
- Added support for service version 2021-12-02.
- Added ability to perform leasing actions on file append and flush. See new keyword
lease_actionfor details. - Added support for
AsyncIterableas data type for async file upload.
Bugs Fixed
- Fixed an issue where
rename_fileandrename_directorywould not work correctly if the new file/directory name contained a?character.
Other Changes
- Removed
msrestdependency. - Added
typing-extensions>=4.0.1as a dependency. - Added
isodate>=0.6.1as a dependency. - Added extra dependency
aiofor installing optional async dependencies. Usepip install azure-storage-file-datalake[aio]to install.
12.9.1 (2022-10-18)
Bugs Fixed
- Fixed possible
ValueErrorfor invalid content range that gets raised when downloading empty files through Azurite.
12.9.0 (2022-10-11)
Features Added
- Stable release of features from 12.9.0b1.
Other Changes
- Changed the default value for
read_timeoutto 60 seconds for all clients.
12.9.0b1 (2022-08-23)
This version and all future versions will require Python 3.7+. Python 3.6 is no longer supported.
Features Added
- Added support for
AzureNamedKeyCredentialas a validcredentialtype. - Added support for
flushtoappend_dataAPI, allowing for append and flush in one operation. - Encryption Scope is now supported for both
create_file_systemAPIs (FileSystemClient,DataLakeServiceClient). - Encryption Scope is now supported as a SAS permission.
- Added standard
readmethod toStorageStreamDownloader.
12.8.0 (2022-07-07)
Features Added
- Stable release of features from 12.8.0b1.
- Removed support for
expiry_optionsfrom filecreateAPIs. With this change,expires_onnow covers all functionalityexpiry_optionsoffered.
12.8.0b1 (2022-06-15)
Features Added
- Added support for service version 2021-08-06.
- Added support for
owner,group,acl,lease_id,lease_durationto both file and directorycreateAPIs. - Added support for
expiry_options,expires_onto filecreateAPIs.
12.7.0 (2022-05-09)
Features Added
- Stable release of features from 12.7.0b1.
Bugs Fixed
- Fixed a bug, introduced in the previous beta release, that caused Authentication errors when attempting to use an Account SAS with certain service level operations.
12.7.0b1 (2022-04-14)
Features Added
- Added support for service version 2021-06-08 as well as previous versions.
- Added support for Customer-Provided Keys (cpk) to all required APIs.
- The
get_paths()API now returnscreation_timeandexpiry_timefor each path.
Bugs Fixed
- Updated
create_file_system()docstring to have the correct return-type ofNone - Fixed parsing of extra
/symbols not being stripped properly inasyncclients - Fixed a bug where
get_paths()would fail if a path did not containlast_modifiedfrom the service.
12.6.0 (2022-03-08)
This version and all future versions will require Python 3.6+. Python 2.7 is no longer supported.
Stable release of preview features
- Added support for service version 2021-02-12.
- Account level SAS tokens now supports two new permissions:
permanent_deleteset_immutability_policy
- Added support for listing system file systems with list_file_systems().
Bugs Fixed
- Update
azure-coredependency to avoid inconsistent dependencies from being installed. - Added all missing Service SAS permissions.
Other Changes
- Temporarily removed the preview
delete_files()method onFileSystemClient. This feature will be added back in a future release.
12.6.0b2 (2021-12-13)
Features Added
- Added support for service version 2021-02-12.
- Added support for listing system file systems with list_file_systems().
Bugs Fixed
- Connection string SAS now works as expected.
12.6.0b1 (2021-11-08)
New features
- Added support for batch deleting files using the
delete_files()method from aFileSystemClient - Account level SAS tokens now support two new permissions:
permanent_deleteset_immutability_policyFixes
FileSystemPropertieswas not subscriptable. Now it is both subscriptable and attributes can also be accessed directly (#20772)- Datalake Client Typing annotation issues have been resolved (#19906)
12.5.0 (2021-09-15)
Stable release of preview features
- Added support for service version 2020-10-02 (STG78)
- Added support for quick query parquet
12.5.0b1 (2021-07-27)
New features
- Added support for quick query parquet
Fixes
- Fixed PathProperties class init issue (#18490)
Notes
- Deprecated new_name in for undelete filesystem operation
12.4.0 (2021-06-09)
New features
- Added support
set_service_properties(),get_service_properties()onDataLakeServiceClient - Added support for
list_deleted_paths()onFileSystemClient
12.4.0b1 (2021-05-12)
New features
- Added support
set_service_properties(),get_service_properties()onDataLakeServiceClient - Added support for
list_deleted_paths()onFileSystemClient
Fixes
- Fixed initiating
PathPropertiesproblem (#18490)
12.3.1 (2021-04-20)
Fixes
- Fixed
recursive=Trueon file deletion - Make
AccountName,AccountKeyetc. in conn_str case insensitive - Fixed
downloader.chunks()return chunks in different size (#9419, #15648) - Optimized memory usage for datalake file uploads large chunks (#16890)
- Fixed unclosed
ThreadPoolExecutor(#8955)
New Features
- Added
get_account_information()API
12.3.0 (2021-03-01)
Stable release of preview features
- Added support for
DatalakeServiceClient.undelete_filesystem() - Added support for
DirectoryClient.exists(),FileClient.exists()andFileSystemClient.exists()
Fixes
- Fixed
DatalakeServiceClientcontext manager/session closure issue (#15358) PurePosixPathis now handled correctly if passed as a path (#16159)
12.3.0b1 (2021-02-10)
New Features
- Added support for
DatalakeServiceClient.undelete_filesystem()
Fixes
- Fixed
DatalakeServiceClientcontext manager/session closure issue (#15358) PurePosixPathis now handled correctly if passed as a path (#16159)
12.2.3 (2021-02-08)
Fixes
- Fixed paging issue (#16531)
12.2.2 (2021-01-20)
Fixes
- Fixed msrest dependency issue (#16250)
12.2.1 (2021-01-13)
New features
- Added support for
AzureSasCredentialto allow SAS rotation in long living clients.
Fixes
- Converted PathProperties.last_modified to datetime format (#16019)
12.2.0 (2020-11-10)
Stable release of preview features
- Preview feature set/update/remove access control recursively.
- Preview feature
set_file_expiryon DataLakeFileClient. - Preview feature generating directory level sas.
Fixes
- Fixed session closure of filesystem (#14497)
Notes
- Updated dependency
azure-corefrom azure-core<2.0.0,>=1.6.0 to azure-core<2.0.0,>=1.9.0
12.2.0b1 (2020-10-02)
New Features
- Added support for recursive set/update/remove Access Control on a path and sub-paths.
- Added support for setting an expiry on files where the file gets deleted once it expires.
- Added support to generate directory SAS and added support to specify additional user ids and correlation ids for user delegation SAS.
12.1.2 (2020-09-10)
Fixes
- Fixed renaming with SAS string (#12057).
12.1.1 (2020-08-13)
- Patch release to update the minimum dependency requirement.
12.1.0 (2020-08-12)
- Added
query_fileAPI to enable users to select/project on DataLake file data by providing simple query expressions.
12.1.0b1 (2020-07-07)
New Feature
- Block size is increased to 4GB at maximum, max single put size is increased to 5GB.
12.0.2
Fixes
- Improve the performance of upload when using max_concurrency
Notes
- Updated dependency from azure-core<2.0.0,>=1.2.2 to azure-core<2.0.0,>=1.6.0
12.0.1 (2020-04-29)
Fixes
- Fixed rename_directory and rename_file doc
- upload_data didn't support setting umask and permissions.
12.0.0 (2020-03-10)
New Feature
- Added
set_file_system_access_policyandget_file_system_access_policyAPIs on FileSystemClient
Breaking changes
- For
generate_file_system_sas,generate_directory_sas,generate_file_sasAPIs,account_keyanduser_delegation_keyare merged into one parameter calledcredential. - Rename
rename_destinationtonew_namefor rename_directory and rename_file APIs - Rename
read_filetodownload_file. The return type is changed toStorageStreamDownloaderwith which user can doreadinto()andreadall() metadatais a required parameter for FileSystemClient, DataLakeFileClient and DataLakeDirectoryClientset_*_metadataAPIs.
Notes
- The
StorageUserAgentPolicyis now replaced with theUserAgentPolicyfrom azure-core. With this, the custom user agents are now added as a prefix instead of being appended.
12.0.0b7 (2020-02-12)
New Feature
- Async APIs are supported.
Fixes
- Responses are always decoded as UTF8
12.0.0b6 (2019-12-04)
StorageErrorExceptionis parsed into more detailed error.etagandmatch_conditionparameters are added as an option('if_match' and 'if_none_match' are still supported).- ADLS Gen1 to Gen2 API Mapping is available.
- All the clients now have a
close()method to close the sockets opened by the client
12.0.0b5 (2019-11-06)
- Initial Release. Please see the README for information on the new design.
- Support for Azure Data Lake Storage REST APIs.
- Support for DataLakeServiceClient: create file system, delete file system, get file systems, and get user delegation key
- Support for DataLakeLeaseClient: acquire, renew, release, change, and break lease
- Support for FileSystemClient: create, delete, get properties, set metadata, get paths, create directory, delete directory, create file, delete file
- Support for DataLakeDirectoryClient: create, delete, rename, get properties, get access control, set metadata, set properties, set access control, create file, delete file, create sub-directory, delete sub-directory
- Support for DataLakeFileClient: create, delete, rename, get properties, get access control, set metadata, set properties, set access control, append, flush, read
This package's documentation and samples
Metadata
Release files for azure-storage-file-datalake 12.27.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| azure_storage_file_datalake-12.27.0b1.tar.gz | 374.1 kB | Without provenance | Details for azure_storage_file_datalake-12.27.0b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| azure_storage_file_datalake-12.27.0b1-py3-none-any.whl | Python 3 | none | any | Details for azure_storage_file_datalake-12.27.0b1-py3-none-any.whl |
Total release size: 708.5 kB
Release files / azure_storage_file_datalake-12.27.0b1.tar.gz
| Download URL | azure_storage_file_datalake-12.27.0b1.tar.gz |
|---|---|
| Size | 374.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e82f0a688a5cb64fc640008bd5953bf74ee7a63fb1352f92a51b1b8d3f164c28
|
|
BLAKE2b-256 checksum How to use checksums |
c0a8cc36cd679bb6ad6ac5f670569555663130b0fbdbded533abff5aef0215c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|
Release files / azure_storage_file_datalake-12.27.0b1-py3-none-any.whl
| Download URL | azure_storage_file_datalake-12.27.0b1-py3-none-any.whl |
|---|---|
| Size | 334.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9920cea4d08863abcab01f8e2a1d791d244156b2f421456c2dbd1c36789a2e6
|
|
BLAKE2b-256 checksum How to use checksums |
958116c1f8a8478be6d55c44b6a6561f05b5ea71dfba360f27dc94b3c86733a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|
Security for azure-storage-file-datalake 12.27.0b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.