Skip to main content

A library for facilitating the development of data engineering pipelines

Project description

ngdataenginterface

Installation

To install the ngdataenginterface package from PyPI, you can use pip:

pip install ngdataenginterface

installing a Specific Version

If you need to install a specific version of the package, you can specify it using the == operator:

pip install ngdataenginterface==1.0.0

Replace 1.0.0 with the desired version number.

Development Guide for ngdataenginterface

This guide provides step-by-step instructions for setting up a development environment using Docker for the ngdataenginterface project on macOS, Linux, and Windows machines.

Prerequisites

Development Setup

  1. Clone the ngdataenginterface repository with ssh:
git clone git@gitlab.com:ng-cash/data/ngdataenginterface.git
  1. Change into the project directory:
cd ngdataenginterface
  1. Build the docker image
docker build -t my-pyspark-app .

Running the Development Environment

macOS / Linux

  1. Start a Docker container and mount the project directory for iterative development:
    docker run -it --rm -v "$(pwd)":/app my-pyspark-app
    

This command starts the Docker container interactively (-it flag), removes it after it exits (--rm flag), and mounts the current directory ($(pwd)) to the /app directory inside the container. You will have an interactive bash shell within the container.

  1. Inside the container, you can run tests, execute scripts, and make changes to the code using your preferred editor or IDE on your host machine. The changes will be immediately available inside the container.

Windows

  1. Start a Docker container and mount the project directory for iterative development:
    docker run -it --rm -v "%cd%:/app" my-pyspark-app bash
    

This command starts the Docker container interactively z(-it flag), removes it after it exits (--rm flag), and mounts the current directory (%cd%) to the /app directory inside the container. You will have an interactive bash shell within the container. Run python command to access python shell.

  1. Inside the container, you can run tests, execute scripts, and make changes to the code using your preferred editor or IDE on your host machine. The changes will be immediately available inside the container.

Run the tests to verify if the configurations are correct:

ENV=dev AWS_ACCESS_KEY_ID=<aws-access-key-id> AWS_SECRET_ACCESS_KEY=<aws-secret-access-key> pytest -vv

Don't forget to change aws-access-key-id and aws-secret-access-key.

After that, run python command to access python shell, and tou are ready to go!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ngdataenginterface-0.1.8.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

ngdataenginterface-0.1.8-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file ngdataenginterface-0.1.8.tar.gz.

File metadata

  • Download URL: ngdataenginterface-0.1.8.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/5.4.109+

File hashes

Hashes for ngdataenginterface-0.1.8.tar.gz
Algorithm Hash digest
SHA256 951e13b1f6f3aff9bb06dcc7626b102b26b1718513b11266e186cc9547ce04e4
MD5 9bbc405e767dfdcb3f98629b25b974f6
BLAKE2b-256 b439f1d5f94f1c18e0210c1cce75e05277e3bfeeaa0896fc39ec24e51799e732

See more details on using hashes here.

File details

Details for the file ngdataenginterface-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for ngdataenginterface-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 906f5b86235db7c1b819cc772cfcab4bab4ea5ba8e95aa39df4f677012bd3cb6
MD5 d9daf892acc88ac0980cf0f5bdfe34b0
BLAKE2b-256 9201961932342b312ab70992eb60ccb84ae0ec8554ff1e212e8e3236ef6b1d9d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page