Public | Automated Build

Last pushed: 12 hours ago
Short Description
Python with sql deps. and basic functions. Used for quick debugging.
Full Description

python-sql

usage:

FROM svlentink/python-sql
COPY requirements.txt /
RUN pip install -r /requirements.txt
ENV MYSQL_INSTEAD_OF_POSTGRES IfThisKeyExistsWeUseMysqlValueDoesNotMatter
COPY $PWD /proj #your project

example config at /proj/config.yml:

db:
  host: db.lent.ink
  user: testuser
  password: 5ecr37
  database: product
some: other value
and: another

importing in your code:

#!/usr/bin/env python
from dblib import db_sql
Docker Pull Command
Owner
svlentink
Source Repository

Comments (0)