Facilitate data engineering on the Ingenii data platform
Project description
Ingenii Data Engineering Package
Details
- Current Version: 0.1.4
Overview
This package provides utilities for data engineering on Ingenii's Azure Data Platform. This can be both used for local development, and is used in the Ingenii Databricks Runtime.
Usage
Import the package to use the functions within.
import ingenii_data_engineering
dbt
See details of how we validate dbt schemas in the dbt README file
Pre-processing
See details of working with pre-processing functions in the pre-processing README file
Development
Prerequisites
- A working knowledge of git SCM
- Installation of Python 3.7.3
Set up
- Complete the 'Getting Started > Prerequisites' section
- For Windows only:
- Go to ezwinports - this is required to be able to run
make
commands - Download make-4.2.1-without-guile-w32-bin.zip (get the version without guile)
- Extract zip and Copy the contents to C:\ProgramFiles\Git\mingw64\ merging the folders, but do NOT overwrite/replace any exisiting files.
- Go to ezwinports - this is required to be able to run
- Run
make setup
: to copy the .env into place (.env-dist
>.env
)
Getting started
-
Complete the 'Getting Started > Set up' section
-
From the root of the repository, in a terminal (preferably in your IDE) run the following commands to set up a virtual environment:
python -m venv venv . venv/bin/activate pip install -r requirements-dev.txt pre-commit install
or for Windows:
python -m venv venv . venv/Scripts/activate pip install -r requirements-dev.txt pre-commit install
-
Note: if you get a
permission denied
error when executing thepre-commit install
command you'll need to runchmod -R 775 venv/bin/
to recursively update permissions in thevenv/bin/
dir -
The following checks are run as part of pre-commit hooks: flake8(note unit tests are not run as a hook)
Building
- Complete the 'Getting Started > Set up' section
- Run
make build
to create the package in./dist
- Run
make clean
to remove dist files
Testing
- Complete the 'Getting Started > Set up' and 'Development' sections
- Run
make test
to run the unit tests using pytest - Run
flake8
to run lint checks using flake8 - Run
make qa
to run the unit tests and linting in a single command - Run
make qa
to remove pytest files
Version History
0.1.0
: dbt schema validation, pre-processing class0.1.1
: Minor bug fixes0.1.2
: Rearrangement and better split of work with the Databricks Runtime. Better validation0.1.3
: Adding pre-processing utilities
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ingenii_data_engineering-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43a17b882da41c5cb1d10ade9d6e01308c09f8c3f0f01eaccde9348064cf74da |
|
MD5 | 388a87729112ee4ec5fd0e146770fe4d |
|
BLAKE2b-256 | 4b2a7f1ddd45e5e69bcca90298a2c41d42ce34be237a2a12d78caaaee3cf298b |
Hashes for ingenii_data_engineering-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a024ee05a80985dc71f0d86d19c40058066ba41caf62f4e517b13b4eb61befec |
|
MD5 | f038c7adaa1c509a24a31f9f4e53c411 |
|
BLAKE2b-256 | 35def66fbe66b5e31da8ea6f184748e35721b61c8906afbc5cc425541a2b21a2 |