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 | Actions Reset |
|---|---|---|---|---|
| vimdatautils-0.79-py3-none-any.whl | Python 3 | none | any | Details for vimdatautils-0.79-py3-none-any.whl |
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
|
Security for vimdatautils 0.79
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.