https://github.com/osx-rsplug-a/py_connect_postgres
https://github.com/osx-rsplug-a/py_connect_postgres
docker postgresql psycopg2 python3 sql
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/osx-rsplug-a/py_connect_postgres
- Owner: OSX-RSPlug-a
- Created: 2025-04-10T01:48:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-28T22:12:27.000Z (10 months ago)
- Last Synced: 2025-08-29T03:45:29.197Z (10 months ago)
- Topics: docker, postgresql, psycopg2, python3, sql
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# py_connect_postgres
Setup the stack.
# Script to create the SSL key:
chmod +x ./setup_bash.sh
./setup_bash.sh
# Setup the env for python code
python3 -m venv env
source env/bin/activate
pip3 install -m requirements.txt
python3 app.py
# Access the bash docker Postgres image
docker exec -it postgres sh
# Verify the data created in the DB
\dt