This package using MySQLdb interface to connect to database. This module will give convenience to fetch data as list (fetch_dbdata_list) and export it to text file (write_dbdata_file), or do all in 1 go using fetch_dbdata_file.
CONTENTS: 1st Module - mydb.py
def fetch_dbdata_file(sql, db_credential, output_filename, mode=”w”, delimiter=”t”) # all in one def fetch_dbdata_list(sql, db_credential, header=True) def write_dbdata_file(data_as_list, output_filename, mode=”w”, header_as_list=[], delimiter=”t”) def write_list_file(list_data, output_filename, mode=”w”)
2st Module - mydbconn.py
def set_logger(log_name) class Connect_DB: MySQLdb connection with additional feature to create log file
Metadata
Release files for clioedb 1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clioedb-1.7.tar.gz | 15.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clioedb-1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.8 kB
Release files / clioedb-1.7.tar.gz
| Download URL | clioedb-1.7.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f13e818d3fe26f4a5d88e6dad487c55752b61502e38e5de650e0be24ce2e8a6c
|
|
BLAKE2b-256 checksum How to use checksums |
a27f8dcf5073b618d33122ec4382caa8e06a2d2eab14a2084ee61736394d4e54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.1
|
Release files / clioedb-1.7-py3-none-any.whl
| Download URL | clioedb-1.7-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
680ebec1dfe078dac95eae475d59a68bc6ce5b65f0f9ac7bcdb9f583bc5f1fa1
|
|
BLAKE2b-256 checksum How to use checksums |
a6e9a92c5e4c69e3f84f05af2a6c538006ca11989220f515bac98a85e4ede95f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.1
|