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
- Docker installed on your machine:
Development Setup
- Clone the ngdataenginterface repository with ssh:
git clone git@gitlab.com:ng-cash/data/ngdataenginterface.git
- Change into the project directory:
cd ngdataenginterface
- Build the docker image
docker build -t my-pyspark-app .
Running the Development Environment
macOS / Linux
- 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.
- 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
- 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.
- 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
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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 951e13b1f6f3aff9bb06dcc7626b102b26b1718513b11266e186cc9547ce04e4 |
|
MD5 | 9bbc405e767dfdcb3f98629b25b974f6 |
|
BLAKE2b-256 | b439f1d5f94f1c18e0210c1cce75e05277e3bfeeaa0896fc39ec24e51799e732 |
File details
Details for the file ngdataenginterface-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: ngdataenginterface-0.1.8-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/5.4.109+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 906f5b86235db7c1b819cc772cfcab4bab4ea5ba8e95aa39df4f677012bd3cb6 |
|
MD5 | d9daf892acc88ac0980cf0f5bdfe34b0 |
|
BLAKE2b-256 | 9201961932342b312ab70992eb60ccb84ae0ec8554ff1e212e8e3236ef6b1d9d |