Sign inSign up

svlentink/python-sql

By svlentink

•Updated over 8 years ago

Python with sql deps. and basic functions. Used for quick debugging.

Image
0

1.8K

svlentink/python-sql repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

146.4 MB

Last updated

over 8 years ago

docker pull svlentink/python-sql