A collection of helper for sql connections
Project description
connection-helper
usage
install / update package
uv add 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
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 objectsprint_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 databaseapply_duckdb_type_overrides()applies column type overrides to tables in an existing DuckDB databaseadd_duckdb_meta_table()adds a meta table to an existing DuckDB databaseoptimize_duckdb()copies a DuckDB database into a new one and applies optimizations to reduce size
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
connection_helper-0.13.3.tar.gz
(19.9 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
File details
Details for the file connection_helper-0.13.3.tar.gz.
File metadata
- Download URL: connection_helper-0.13.3.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e13dfb9ec3b746365341a2d3f085a7c9e53b18b4fdf0b7da3ea3a8a1c7e69ff
|
|
| MD5 |
175a2e650307e6bd4e07bf175b830fbc
|
|
| BLAKE2b-256 |
b48f01b59897aca71434fbddb9e14d7b7b3bd6f5275995c01fc9c7aa60f9bde9
|
File details
Details for the file connection_helper-0.13.3-py3-none-any.whl.
File metadata
- Download URL: connection_helper-0.13.3-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13d7d270cacb93786ba216031ae8695b74b333a5c1f5acc83ee3dba6fee8b6ea
|
|
| MD5 |
aff961cd5a8fe4c8cc6cba53bebad66e
|
|
| BLAKE2b-256 |
b60284867deadaa1e12ec09e6590a56433331b9b87e9085505009c27a1a40288
|