vimdatautils
Vim python package to ingest data into a database
Features
- InboundPipeline.py utility, used by a specific integration component
- 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
- 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()
-
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)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|