Python with sql deps. and basic functions. Used for quick debugging.
1.8K
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
Content type
Image
Digest
Size
146.4 MB
Last updated
over 8 years ago
docker pull svlentink/python-sql