The Head First Python 2e Database Context Manager
Project description
The UseDatabase context manager for working with MySQL/MariaDB.
For more information, see Chapters 7, 8, and 9 of Head First Python, 2nd edition.
Simple usage:
from DBcm import UseDatabase config = { ’host’: ’127.0.0.1’, ’user’: ’myUserid', ’password’: ’myPassword’, ’database’: ’myDB’ } with UseDatabase(config) as cursor: _SQL = "select * from log" cursor.execute(_SQL) data = cursor.fetchall()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
DBcm-1.5.tar.gz
(1.6 kB
view hashes)