Skip to main content

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;")

Metadata

Release files for vimdatautils 0.79

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for vimdatautils 0.79
File Interpreter ABI Platform
vimdatautils-0.79-py3-none-any.whl Python 3 none any Details

Release files / vimdatautils-0.79-py3-none-any.whl

Download URL vimdatautils-0.79-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9220b618dd9c2cd70b228a9cf4e35a4db9a77c72859e937b54e27b290fe4dde7
BLAKE2b-256 checksum
How to use checksums
39b97981625c05efca2331bab0d31b1b0a758ee194a95abe3c825069ac0edba4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.79 This release

1 release file

0.78

1 release file

0.77

1 release file

0.75

1 release file

0.73

1 release file

0.72

1 release file

0.71

1 release file

0.70

1 release file

0.69

1 release file

0.68

1 release file

0.67

1 release file

0.66

1 release file

0.65

1 release file

0.64

1 release file

0.63

1 release file

0.61

1 release file

0.60

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page