A small example package
Project description
Python ETL Base Code
This project has the etl jupyter file for kick starting any new development, .whl file which has all the inbuilt etl functionality and boiler plate structure for any new integration.
hra_etl library has following functions
BaseTable.decrypt (config file path,filename,path of the curretnt script,DSN name, flag)
- flag = 0 (no addition of as of date and file would be in GF temp folder)
- flag = 1 (as of date added and file will be in decypted folder)
from hra_etl import BaseTable
import os
import sys
if __name__ == '__main__':
path = os.path.dirname(os.path.realpath(__file__))
filename = sys.argv[1]
BaseTable.BaseTable.decrypt(path+"\\"+filename+".config",filename,path,'HRA','1')
BaseTable.BaseTable.setup(path)
- where path is the location where the folders and files would be generated. Below are the folders and files it would generate on calling this function
- Control file
- It has 5 files WF(overall workflow control file), stg, base, base-audit, pkg.
- Error_log
- It would hold all teh error logs.
- Unittest_log
- to have all the logs for unittesting
- bkp.txt
- to store the bkp creation date.
- Control file
from hra_etl import BaseTable
import os
import sys
if __name__ == '__main__':
path = os.path.dirname(os.path.realpath(__file__))
BaseTable.BaseTable.setup(path)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hra_etl-0.0.4.tar.gz
(17.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hra_etl-0.0.4-py3-none-any.whl
(19.2 kB
view details)
File details
Details for the file hra_etl-0.0.4.tar.gz.
File metadata
- Download URL: hra_etl-0.0.4.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- 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.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d72976bef35bb41ec305974f2aa83ba4f5ff66f6ac6181a991315f2aa3419477
|
|
| MD5 |
6ffd5f046833ec4ef362e1d274235478
|
|
| BLAKE2b-256 |
99ae69df90f47c889a10abc02727a969cad33d7a1a2ec33dea512ee24cba7bcb
|
File details
Details for the file hra_etl-0.0.4-py3-none-any.whl.
File metadata
- Download URL: hra_etl-0.0.4-py3-none-any.whl
- Upload date:
- Size: 19.2 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.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f25ad8bf2bc5c30e17e5dc7a0a9e6fcb707b0c09735447db121c7e1a2991a879
|
|
| MD5 |
0249d1dd1466d7a2dc017d4a35529556
|
|
| BLAKE2b-256 |
af97f8538a37f58541679aaef96d8103d8e4a59b78037a53c8f9bb7d74cffadb
|