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
-
sql
is added as convenience wrapper for retrieving data from sql databasesconnect_sql()
to get get data from['mssql', 'sqlite','postgres']
load_sql_to_sqlite
connect to a sql db and transfer a list of tables tosqlite
load_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 database- 🆕
load_file_to_duckdb()
load data from various sources into a duckdb database, using pandas read functions (experimental) - azure storage connector 🚧
-
pgp
cryptographic tools adapted from python-gnupg. this is a wrapper aroundgnupg
, but only offers some cenvenience 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
sec
secrets module. ⚠️ this package is optional and must be extra installed withpip install 'connection-helper[sec]'
(enclose in '')- 🆕
get_infisical_secrets()
retrieve secrets from Infisical project (requires existing account and machine identities)
- 🆕
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
connection_helper-0.8.11.tar.gz
(14.1 kB
view details)
Built Distribution
File details
Details for the file connection_helper-0.8.11.tar.gz
.
File metadata
- Download URL: connection_helper-0.8.11.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c135e860d83a9b6e305434f114b1ee3a90dc15138a8af3b7185b17ba3c2df6d3 |
|
MD5 | b300c6bc239c44db48bd76def94be05f |
|
BLAKE2b-256 | 4d4a4a504159b6f5d28bfc616904c607bf6044de989c579f00bf13940aeb474a |
File details
Details for the file connection_helper-0.8.11-py3-none-any.whl
.
File metadata
- Download URL: connection_helper-0.8.11-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5d9c5e44548cfa4d6f7501a0fb07ff45a0a57abaff638e93dc98c33d1670688 |
|
MD5 | ba28a13d4c4b32b4821b63cfe7bb84ad |
|
BLAKE2b-256 | bd5c7bd1b648c1445ba9aadad46b8e23c136cf6dc2fa23d50bdecf18298e8f7f |