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!
Metadata
Release files for ngdataenginterface 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ngdataenginterface-0.1.8.tar.gz | 12.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ngdataenginterface-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.9 kB
Release files / ngdataenginterface-0.1.8.tar.gz
| Download URL | ngdataenginterface-0.1.8.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
951e13b1f6f3aff9bb06dcc7626b102b26b1718513b11266e186cc9547ce04e4
|
|
BLAKE2b-256 checksum How to use checksums |
b439f1d5f94f1c18e0210c1cce75e05277e3bfeeaa0896fc39ec24e51799e732
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.18 Linux/5.4.109+
|
Release files / ngdataenginterface-0.1.8-py3-none-any.whl
| Download URL | ngdataenginterface-0.1.8-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
906f5b86235db7c1b819cc772cfcab4bab4ea5ba8e95aa39df4f677012bd3cb6
|
|
BLAKE2b-256 checksum How to use checksums |
9201961932342b312ab70992eb60ccb84ae0ec8554ff1e212e8e3236ef6b1d9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.18 Linux/5.4.109+
|