abstraction for ETL Database interaction
Project description
easy_database
description
This is a personal package used to hold code patterns used for relational ETL database access.
Usage
environment setup
pyenv install 3.8.0
pyenv virtualenv 3.8.0 app_3.8
pyenv activate app_3.8
# for integration tests
export PASSWORD=testing1234
export USERNAME=testing1234
export DATABASE=testing1234
export TABLE=customers
export INTEGRATION_TEST=True
export DB_IP_ADDRESS=127.0.0.1
export DATABASE_TYPE=postgresql
sudo --preserve-env docker-compose up
python
import easy_database.database as db
database_manager = db.database_factory("postgresql")
database_manager.set_connection_string("...")
database_manager.open_conn()
database_manager.send_sql("SELECT * FROM TEST;")
database_manager.close_conn()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easy_database-1.1.8.tar.gz
(3.8 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 easy_database-1.1.8.tar.gz.
File metadata
- Download URL: easy_database-1.1.8.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6849fe5d053ad73878378b1041f86122e2983cf76578022836d8cf22bf7b8e51
|
|
| MD5 |
fbdb66eb9aa6baeb31838e663d4a8d21
|
|
| BLAKE2b-256 |
e74cce70da8809539d6f30a81dab21304084690443e24530413833abe8e94a55
|
File details
Details for the file easy_database-1.1.8-py3-none-any.whl.
File metadata
- Download URL: easy_database-1.1.8-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ac116d3107b76c7e33d51416b0f0a8a3320f172bb7c50ad7505f8e8162a78a0
|
|
| MD5 |
6b7e7b051178e554a93d5fc13d34d46e
|
|
| BLAKE2b-256 |
95a4c13609a8cf3184d0d3367dfbb6a17af08f25a7c78c60ae7149e1da70c40b
|