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
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 ⚡- 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- ...
💡 These 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]
- 🆕
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.0.tar.gz
(11.9 kB
view hashes)
Built Distribution
Close
Hashes for connection_helper-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bc7443676c9f7da826709634db2919ab6f3a1eb582d84b885e9e2ffd5bdaa25 |
|
MD5 | 790f72990d660f25dbb212abed04e550 |
|
BLAKE2b-256 | c7de735ab0e0ab60d68f0a74ba3185a923008dcde4bad11415aad56fbbc5a3ca |