Skip to main content

Vim pipeline utility to ingest data

Project description

vimdatautils

Vim python package to ingest data into a database

Features

  1. InboundPipeline.py utility, used by a specific integration component
  2. Data access layer (Dal), provides simplified methods to access data in postgres db

Installation

vimdatautils requires Python 3

pip install vimdatautils

Or to install/upgrade a specific version

pip install vimdatautils==<VERSION> --force-reinstall

Quickstart

  1. InboundPipeline, you will need to implement two methods: pre_load_logic, post_load_logic
from vimdatautils.inbound_pipeline import InboundPipeline
class Inbound(InboundPipeline):
def pre_load_logic(self):
        print("this will be executed before the load!")

    def post_load_logic(self):
        print("this will be executed after the load!")

    def main():
        inbound = Inbound("config_file.json", "postgresql://postgres:password@127.0.0.1/postgres")
        inbound.execute()
  1. Dal, import vimdatautils.dal, you will need to construct the dal with a postgres connection string in the below pattern

    postgresql://<db_user>:<db_password>@<db_host>/db_name
    
from vimdatautils.dal import Dal

dal = Dal("postgresql://postgres:password@127.0.0.1/postgres")
dal.execute_cmd("select 1;")

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vimdatautils-0.70-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file vimdatautils-0.70-py3-none-any.whl.

File metadata

  • Download URL: vimdatautils-0.70-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for vimdatautils-0.70-py3-none-any.whl
Algorithm Hash digest
SHA256 427e4484b564ecc771a0cdffe4df091415ad8f7aaedeab595bd1fe83b0250f18
MD5 ad790b1ae3de086b5fbbed7d9f0cfb95
BLAKE2b-256 7ab289ce4ce09a7a145ab205d5714d1807cb1e7d6924eb39b273ed662f5af0ab

See more details on using hashes here.

Supported by

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