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()
Release files for easy-database 1.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| easy_database-1.1.8.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| easy_database-1.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / easy_database-1.1.8.tar.gz
| Download URL | easy_database-1.1.8.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6849fe5d053ad73878378b1041f86122e2983cf76578022836d8cf22bf7b8e51
|
|
BLAKE2b-256 checksum How to use checksums |
e74cce70da8809539d6f30a81dab21304084690443e24530413833abe8e94a55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / easy_database-1.1.8-py3-none-any.whl
| Download URL | easy_database-1.1.8-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ac116d3107b76c7e33d51416b0f0a8a3320f172bb7c50ad7505f8e8162a78a0
|
|
BLAKE2b-256 checksum How to use checksums |
95a4c13609a8cf3184d0d3367dfbb6a17af08f25a7c78c60ae7149e1da70c40b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|