Python training in Chennai
#!/usr/bin/env python
import preprocessing
mysql = {'host': 'localhost',
'user': 'root',
'passwd': 'my secret password',
'db': 'write-math'}
preprocessing_queue = [preprocessing.scale_and_center,
preprocessing.dot_reduction,
preprocessing.connect_lines]
use_anonymous = True
Within the actual code, you can use it like this:
#!/usr/bin/env python
import databaseconfig as cfg
connect(cfg.mysql, cfg.mysql, cfg.mysql)