Skip to content

Instantly share code, notes, and snippets.

@Gribouillis
Gribouillis / inspectsqlite.py
Created December 5, 2018 13:25
print the structure of an sqlite database from python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Python 2 and 3
Created on Wed Jan 29 18:40:31 2014
name: inspectsqlite.py
@author: Gribouillis for the python forum at www.daniweb.com
@license: Public Domain
Use this code freely
"""
"""
History:
2018.11.25.19: argument path to as_dict(). New methods from_fs() from_dir()
2018.11.25 : bugfix in 'r' mode of openbin.
2018.10.01 : initial version
"""
import fs
import fs.base
import fs.errors
import fs.osfs
@Gribouillis
Gribouillis / umitconsole.py
Created February 4, 2018 20:14
Python 2 console in pygtk from the umit project (old)
#!/usr/bin/env python
#------------------------------------------------------------------------------
#
# Copyright (c) 1998 James Henstridge, 2006 Nicolas Rougier
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.