Package: azure-storage-file
Microsoft Azure Storage SDK for PythonThis project provides a client library in Python that makes it easy to
consume Microsoft Azure Storage services. For documentation please see
the Microsoft AzurePython Developer Centerand ourAPI Reference(also available onreadthedocs).If you are looking for the Service Bus or Azure Management
libraries, please visithttps://github.com/Azure/azure-sdk-for-python.CompatibilityIMPORTANT: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.You can check the version using pip:pipfreezeIf you see azure==0.11.0 (or any version below 1.0), uninstall it first then install it again:pipuninstallazurepipinstallazureIf you are upgrading from a version older than 0.30.0, see the upgrade doc, the
usage samples in the samples directory, and the ChangeLog and BreakingChanges.If you are encounteringproblemsinstalling azure storage on Azure Web Apps,upgrading pipmight help.IMPORTANT: If you have an earlier version of the azure-storage package
(version <= 0.36.0), you should uninstall it before installing the new split packages.You can check the version using pip:pipfreezeIf you see azure-storage==0.36.0 (or any version below 0.36.0), uninstall it first:pipuninstallazure-storageFeaturesBlobCreate/Read/Update/Delete ContainersCreate/Read/Update/Delete BlobsAdvanced Blob OperationsQueueCreate/Delete QueuesInsert/Peek Queue MessagesAdvanced Queue OperationsFilesCreate/Update/Delete SharesCreate/Update/Delete DirectoriesCreate/Read/Update/Delete FilesAdvanced File OperationsGetting StartedDownloadThe Azure Storage SDK for Python is composed of 5 packages:azure-storage-blobContains the blob service APIs.azure-storage-fileContains the file service APIs.azure-storage-queueContains the queue service APIs.azure-storage-commonContains common code shared by blob, file and queue.azure-storage-nspkgOwns the azure.storage namespace, user should not use this directly.Note: prior to and including version 0.36.0, there used to be a single package (azure-storage) containing all services.
It is no longer supported, and users should install the 3 before-mentioned service packages individually, depending on the need.
In addition, thetablepackage is no longer releasing under the azure-storage namespace, please refer tocosmosdb.Option 1: Via PyPiTo install via the Python Package Index (PyPI), type:pip install azure-storage-blob
pip install azure-storage-file
pip install azure-storage-queueOption 2: Source Via GitTo get the source code of the SDK via git just type:git clone git://github.com/Azure/azure-storage-python.git

cd ./azure-storage-python/azure-storage-nspkg
python setup.py install

cd ../azure-storage-common
python setup.py install

cd ../azure-storage-blob
python setup.py installReplace azure-storage-blob with azure-storage-file or azure-storage-queue, to install the other services.Option 3: Source ZipDownload a zip of the code via GitHub or PyPi. Then follow the same instructions in option 2.Minimum RequirementsPython 2.7, 3.3, 3.4, 3.5, or 3.6.See setup.py for dependenciesUsageTo use this SDK to call Microsoft Azure storage services, you need to
firstcreate an account.LoggingTo make debugging easier, it is recommended to turn on logging for the logger named ‘azure.storage’.
Here are two example configurations:# Basic configuration: configure the root logger, including 'azure.storage'logging.basicConfig(format='%(asctime)s%(name)-20s%(levelname)-5s%(message)s',level=logging.INFO)# More advanced configuration allowing more controllogger=logging.getLogger('azure.storage')handler=logging.StreamHandler()formatter=logging.Formatter('%(asctime)s%(name)-20s%(levelname)-5s%(message)s')handler.setFormatter(formatter)logger.addHandler(handler)logger.setLevel(logging.INFO)Here is how we use the logging levels, it is recommended to use INFO:DEBUG: log strings to signINFO: log outgoing requests and responses, as well as retry attemptsWARNING: not usedERROR: log calls that still failed after all the retriesCode SampleSee the samples directory for blob, queue, and file usage samples.Need Help?Be sure to check out the Microsoft AzureDeveloper Forums on MSDNor
theDeveloper Forums on Stack Overflowif you have trouble with the
provided code.Contribute Code or Provide FeedbackIf you would like to become an active contributor to this project, please
follow the instructions provided inAzure Projects Contribution
Guidelines. You can find more details for contributing in theCONTRIBUTING.md doc.If you encounter any bugs with the library, please file an issue in theIssuessection of the project.Learn MorePython Developer CenterAzure Storage ServiceAzure Storage Team BlogAPI Reference