]> gitweb.pimeys.fr Git - scripts-20-100.git/blob - extract_sess.py
[bde/stats/all_past] Affichage du timing au fur et à mesure
[scripts-20-100.git] / extract_sess.py
1 #!/usr/bin/env python
2
3 import sqlite3
4 import os
5
6 c = sqlite3.connect(os.path.expanduser('~/.ipython/profile_default/history.sqlite'))
7
8 r = c.execute('select * from history where session=(select max(session) from sessions);')
9
10 for line in iter(r.fetchone, None):
11 print line[-1].encode('utf-8')