https://github.com/rggh/postgresql-python-docker
Postgresql + Python + Docker
https://github.com/rggh/postgresql-python-docker
docker postgresql pytest python yaml
Last synced: about 1 month ago
JSON representation
Postgresql + Python + Docker
- Host: GitHub
- URL: https://github.com/rggh/postgresql-python-docker
- Owner: RGGH
- Created: 2022-05-31T14:14:55.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-01T18:24:11.000Z (about 4 years ago)
- Last Synced: 2025-06-26T12:52:59.296Z (12 months ago)
- Topics: docker, postgresql, pytest, python, yaml
- Language: Python
- Homepage:
- Size: 41 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Postgresql (Docker container) + Python
This is a ready made framework to begin a Python & SQL project
Uses .sql and .yml to create a database, create tables, add dummy data
---
- Clone the repo,
- issue "docker-compose build"
- run app2.py or write your own python code
- the data will be persistent as it uses a mounted volume
---
### Python + Psycopg2
Psycopg2 : use this: (rather than pip install psycpog2)
pip install psycopg2-binary
https://pypi.org/project/psycopg2-binary/
Psycopg 2 is mostly implemented in C as a libpq wrapper,
resulting in being both efficient and secure.