Skip to main content

Stacks Data Utilities

stacks-data is a Python library, containing a suite of utilities to accelerate development within an Ensono Stacks Data Platform. It is an integral part of the platform, supporting common tasks such as generating new data engineering workloads and running Spark jobs. stacks-data consists of:

  • Datastacks CLI - A command-line interface for data engineers, enabling interaction with Datastacks' various functions.
  • Data workload generation - Generate new data workloads based upon common templates.
  • PySpark utilities - A suite of reusable utilities to simplify development of data pipelines using Apache Spark and Python.
  • Data quality utilities - Utilities to support the data quality framework implemented in Stacks.
  • Azure utilities - Utilities to support common interactions with Azure resources from data workloads.
  • Behave utilities - Common scenarios and setup used by Behave end-to-end tests.


The following setup steps will ensure your development environment is setup correctly and install stacks-data in your Python virtual environment:

Alternatively, you can directly install stacks-data from PyPi, using:

pip install stacks-data

For information on utilising stacks-data from within Databricks - see development in Databricks.

Azure environment variables

To interact with Azure resources, the following additional environment variables are currently required:

  • AZURE_TENANT_ID: Directory ID for Azure Active Directory application.
  • AZURE_CLIENT_ID: Application ID for Azure Active Directory application.
  • AZURE_CLIENT_SECRET: Service Principal Secret.
  • ADLS_ACCOUNT: ADLS account name.
  • BLOB_ACCOUNT: Blob Storage account name.