Skip to main content

Posts

Showing posts from 2022

import in Python

Python allows you to reuse a code using imports. It can be constant values, general functions, formulas and what not. For instance you are writing a code to implement circle circumference formula, instead of hardcoding PI, Import Maths module from Python Standard Library  . This library has a massive list of facilities on offer. Learn about - ' from '

from in Python

While using Import, you can also import a part of the module. " from"  is used for that purpose. Math module for instance has a lot of features but we are bothered about the 'Floor' functionality. In this case we imported floor directly (in line 17th) from math using they keyword 'from'. Math is not required while calling 'floor' in case you directly imported floor.

ACLs in Azure Data Lake

Access Control Lists(ACLs) in azure are an extremely powerful toolset to provision granular levels of access in Azure Data Lake. Role-Based Access Control (RBAC) is best option to setup broader access levels however with ACLs you can reach the lowest possible grains as low as a file inside a blob container. Think of a scenario where you want to add more than 1 user to a folder inside a blob container and each one of them sees only their data - Possible with ACLs Prerequisites Azure Subscription Storage blob with hierarchical namespace enabled Reader Access on the storage object via RBAC How to setup ACLs in Azure Data Lake Like any other offering, Microsoft has a broad spectrum of tools/ways to setup ACLs, ranging from Azure Portal to writing python code . All the steps involved are available in Microsoft documentation, and in a very descriptive manner, therefore needless to rephrase again in this article. Instead, lets walk through some of the challenges one can c...