A collection of helper for sql connections
Project description
connection-helper
usage
install / update package
pip install connection-helper -U
include in python
from connection_helper import sql, pgp, sec
why use connection-helper
connection-helper bundles some packages for connecting to sql databases
-
sqlis added as convenience wrapper for retrieving data from sql databasesconnect_sql()to get get data from['mssql', 'sqlite','postgres']load_sql_to_sqliteconnect to a sql db and transfer a list of tables tosqliteload_sqlite_to_parquet()to get all tables from a sqlite file as parquetsunpack_files_to_duckdb()return a tuple of all files of a dir (csv or parquet) into high performance duckdb objects ⚡print_meta()print meta information of a certain database (niche case)load_from_mssql()load data from an MSSQL database into a Pandas DataFramesave_to_mssql()save data from a Pandas DataFrame to an MSSQL databaseload_file_to_duckdb()load data from various sources into a duckdb database, using pandas read functions (experimental)load_sqlite_to_duckdb()converts a SQLite database to a DuckDB databaseload_mssql_to_duckdb()converts a MSSQL database to a DuckDB database
-
pgpcryptographic tools adapted from python-gnupg. this is a wrapper aroundgnupg, but only offers some convenience or tailored options. feel free to use the original library or the GNU Privacy Guard.encrypt()a message for one or more recipient(s) with a public keydecrypt()a message with a private key. Passphrase must be provided via env variablefind_key()in keyring- ...
💡 The pgp methods require a pgp public/private key in the keyring
secsecrets module. ⚠️ this package is optional and must be extra installed withpip install 'connection-helper[sec]'(enclose in '')
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
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
File details
Details for the file connection_helper-0.10.2.tar.gz.
File metadata
- Download URL: connection_helper-0.10.2.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2acabbf406fc4bd6a71b9a730ea14952a11f06fe177e61261ceb2efa1c0d7ce
|
|
| MD5 |
f7c40132178134ec1e2f7dc124e8c66f
|
|
| BLAKE2b-256 |
66c2a407214b0c3f8b3e70734c166d0831167ca64832280015cef31a399292c3
|
File details
Details for the file connection_helper-0.10.2-py3-none-any.whl.
File metadata
- Download URL: connection_helper-0.10.2-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43f47af0c06d9c2ea614d5aefd64b7b2346f1b75e4efb56a68dadce95a0ebc42
|
|
| MD5 |
9e008f19b3036022a9f0aaa4c0ae0aed
|
|
| BLAKE2b-256 |
d9ced8daf095b179c85a96c85ec352568af2a63557ab4f37dd12db1b58fd1351
|