sqlite-bro 0.12.1__tar.gz → 0.13.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sqlite_bro-0.12.1 → sqlite_bro-0.13.1}/PKG-INFO +89 -89
- sqlite_bro-0.13.1/pyproject.toml +36 -0
- sqlite_bro-0.13.1/sqlite_bro/__init__.py +1 -0
- {sqlite_bro-0.12.1 → sqlite_bro-0.13.1}/sqlite_bro/sqlite_bro.py +13 -6
- sqlite_bro-0.12.1/HISTORY.rst +0 -258
- sqlite_bro-0.12.1/MANIFEST.in +0 -3
- sqlite_bro-0.12.1/setup.cfg +0 -10
- sqlite_bro-0.12.1/setup.py +0 -54
- sqlite_bro-0.12.1/sqlite_bro/tests/__init__.py +0 -0
- sqlite_bro-0.12.1/sqlite_bro.egg-info/PKG-INFO +0 -89
- sqlite_bro-0.12.1/sqlite_bro.egg-info/SOURCES.txt +0 -15
- sqlite_bro-0.12.1/sqlite_bro.egg-info/dependency_links.txt +0 -1
- sqlite_bro-0.12.1/sqlite_bro.egg-info/entry_points.txt +0 -3
- sqlite_bro-0.12.1/sqlite_bro.egg-info/top_level.txt +0 -1
- {sqlite_bro-0.12.1 → sqlite_bro-0.13.1}/LICENSE +0 -0
- {sqlite_bro-0.12.1 → sqlite_bro-0.13.1}/README.rst +0 -0
- {sqlite_bro-0.12.1/sqlite_bro → sqlite_bro-0.13.1/sqlite_bro/tests}/__init__.py +0 -0
- {sqlite_bro-0.12.1 → sqlite_bro-0.13.1}/sqlite_bro/tests/test_general.py +0 -0
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: sqlite_bro
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: a graphic SQLite Client in 1 Python file
|
|
5
|
-
|
|
6
|
-
Author: stonebig
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Classifier:
|
|
12
|
-
Classifier:
|
|
13
|
-
Classifier:
|
|
14
|
-
Classifier:
|
|
15
|
-
Classifier: Operating System ::
|
|
16
|
-
Classifier: Programming Language :: Python
|
|
17
|
-
Classifier:
|
|
18
|
-
Classifier:
|
|
19
|
-
Classifier: Topic ::
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
$
|
|
59
|
-
$ pip install
|
|
60
|
-
$ pip
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
or just
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: sqlite_bro
|
|
3
|
+
Version: 0.13.1
|
|
4
|
+
Summary: a graphic SQLite Client in 1 Python file
|
|
5
|
+
Keywords: sqlite,gui,ttk,sql
|
|
6
|
+
Author: stonebig
|
|
7
|
+
Requires-Python: >=3.3
|
|
8
|
+
Description-Content-Type: text/x-rst
|
|
9
|
+
Classifier: Intended Audience :: Education
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: MacOS
|
|
12
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Operating System :: POSIX
|
|
15
|
+
Classifier: Operating System :: Unix
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering
|
|
19
|
+
Classifier: Topic :: Software Development :: Widget Sets
|
|
20
|
+
Project-URL: Documentation, https://github.com/stonebig/sqlite_bro/README.rst
|
|
21
|
+
Project-URL: Source, https://github.com/stonebig/sqlite_bro
|
|
22
|
+
|
|
23
|
+
sqlite_bro : a graphic SQLite browser in 1 Python file
|
|
24
|
+
======================================================
|
|
25
|
+
|
|
26
|
+
sqlite_bro is a tool to browse SQLite databases with
|
|
27
|
+
any basic python installation.
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
Features
|
|
31
|
+
--------
|
|
32
|
+
|
|
33
|
+
* Tabular browsing of a SQLite database
|
|
34
|
+
|
|
35
|
+
* Import/Export of .csv files with auto-detection
|
|
36
|
+
|
|
37
|
+
* Import/Export of .sql script
|
|
38
|
+
|
|
39
|
+
* Export of database creation .sql script
|
|
40
|
+
|
|
41
|
+
* Support of sql-embedded Python functions
|
|
42
|
+
|
|
43
|
+
* support supports command-line scripting if Python>=3.2 (see sqlite_bro -h), with or without Graphic User Interface
|
|
44
|
+
|
|
45
|
+
* Easy to distribute : 1 Python source file, Python and PyPy3 compatible
|
|
46
|
+
|
|
47
|
+
* Easy to start : just launch sqlite_bro
|
|
48
|
+
|
|
49
|
+
* Easy to learn : Welcome example, minimal interface
|
|
50
|
+
|
|
51
|
+
* Easy to teach : Character size, SQL + SQL result export on a click
|
|
52
|
+
|
|
53
|
+
Installation
|
|
54
|
+
------------
|
|
55
|
+
|
|
56
|
+
You can install, upgrade, uninstall sqlite_bro.py with these commands::
|
|
57
|
+
|
|
58
|
+
$ apt-get install python3-tk # apt-get install python-tk if you are using python2
|
|
59
|
+
$ pip install sqlite_bro
|
|
60
|
+
$ pip install --upgrade sqlite_bro
|
|
61
|
+
$ pip uninstall sqlite_bro
|
|
62
|
+
|
|
63
|
+
or just launch latest version from IPython with %load https://raw.githubusercontent.com/stonebig/sqlite_bro/master/sqlite_bro/sqlite_bro.py
|
|
64
|
+
or just copy the file 'sqlite_bro.py' to any pc and type 'python sqlite_bro.py'
|
|
65
|
+
|
|
66
|
+
Example usage
|
|
67
|
+
-------------
|
|
68
|
+
|
|
69
|
+
::
|
|
70
|
+
|
|
71
|
+
$ sqlite_bro
|
|
72
|
+
|
|
73
|
+
::
|
|
74
|
+
|
|
75
|
+
$ sqlite_bro -h
|
|
76
|
+
|
|
77
|
+
Screenshots
|
|
78
|
+
-----------
|
|
79
|
+
|
|
80
|
+
.. image:: https://raw.githubusercontent.com/stonebig/sqlite_bro/master/docs/sqlite_bro.GIF
|
|
81
|
+
|
|
82
|
+
.. image:: https://raw.githubusercontent.com/stonebig/sqlite_bro/master/docs/sqlite_bro_command_line.GIF
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
Links
|
|
86
|
+
-----
|
|
87
|
+
|
|
88
|
+
* `Fork me on GitHub <http://github.com/stonebig/sqlite_bro>`_
|
|
89
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[build-system] # flit_core seems the step after 'setuptools','wheel','build','twine' (see https://github.com/pypa/build/issues/394)
|
|
2
|
+
requires = ["flit_core"]
|
|
3
|
+
build-backend = "flit_core.buildapi"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sqlite_bro"
|
|
7
|
+
authors = [
|
|
8
|
+
{name = "stonebig"},
|
|
9
|
+
]
|
|
10
|
+
dependencies = []
|
|
11
|
+
requires-python = ">=3.3"
|
|
12
|
+
readme = "README.rst"
|
|
13
|
+
license = {file = "LICENSE"}
|
|
14
|
+
classifiers=[
|
|
15
|
+
'Intended Audience :: Education',
|
|
16
|
+
'License :: OSI Approved :: MIT License',
|
|
17
|
+
'Operating System :: MacOS',
|
|
18
|
+
'Operating System :: Microsoft :: Windows',
|
|
19
|
+
'Operating System :: OS Independent',
|
|
20
|
+
'Operating System :: POSIX',
|
|
21
|
+
'Operating System :: Unix',
|
|
22
|
+
'Programming Language :: Python :: 3',
|
|
23
|
+
'Development Status :: 5 - Production/Stable',
|
|
24
|
+
'Topic :: Scientific/Engineering',
|
|
25
|
+
'Topic :: Software Development :: Widget Sets',
|
|
26
|
+
]
|
|
27
|
+
dynamic = ["version",]
|
|
28
|
+
description="a graphic SQLite Client in 1 Python file"
|
|
29
|
+
keywords = ["sqlite", "gui", "ttk", "sql"]
|
|
30
|
+
|
|
31
|
+
[project.urls]
|
|
32
|
+
Documentation = "https://github.com/stonebig/sqlite_bro/README.rst"
|
|
33
|
+
Source = "https://github.com/stonebig/sqlite_bro"
|
|
34
|
+
|
|
35
|
+
[project.scripts]
|
|
36
|
+
sqlite_bro = "sqlite_bro.sqlite_bro:_main"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.13.1'
|
|
@@ -34,14 +34,16 @@ except ImportError: # or we are still Python2.7
|
|
|
34
34
|
|
|
35
35
|
tipwindow = None
|
|
36
36
|
|
|
37
|
+
# starting Python-3.13, PEP 667 forces us to us a specific dictionnary pydef_locals instead of locals()
|
|
38
|
+
pydef_locals ={}
|
|
37
39
|
|
|
38
40
|
class App:
|
|
39
41
|
"""the GUI graphic application"""
|
|
40
42
|
|
|
41
43
|
def __init__(self, use_gui=True):
|
|
42
44
|
"""create a tkk graphic interface with a main window tk_win"""
|
|
43
|
-
self.__version__ = "0.
|
|
44
|
-
self._title = "of
|
|
45
|
+
self.__version__ = "0.13.1"
|
|
46
|
+
self._title = "of 2024-05-11b : 'Setup me down !'"
|
|
45
47
|
self.conn = None # Baresql database object
|
|
46
48
|
self.database_file = ""
|
|
47
49
|
self.initialdir = "."
|
|
@@ -1619,7 +1621,11 @@ def guess_sql_creation(table_name, separ, decim, header, data, quoter='"'):
|
|
|
1619
1621
|
if header:
|
|
1620
1622
|
# de-duplicate column names, if needed by pastixing with '_'+number
|
|
1621
1623
|
for i in range(len(r)):
|
|
1622
|
-
|
|
1624
|
+
|
|
1625
|
+
if r[i] == "": # 2022-02-04a replace empty column title per usual default
|
|
1626
|
+
r[i] = "c_" + ("000" + str(i))[-3:]
|
|
1627
|
+
|
|
1628
|
+
if r[i] in r[:i]:
|
|
1623
1629
|
j = 1
|
|
1624
1630
|
while r[i] + "_" + str(j) in r[:i] + r[i + 1 :]:
|
|
1625
1631
|
j += 1
|
|
@@ -1938,19 +1944,20 @@ class Baresql:
|
|
|
1938
1944
|
|
|
1939
1945
|
instruction = sql.strip("; \t\n\r")
|
|
1940
1946
|
# create Python function in Python
|
|
1941
|
-
exec(instruction[2:], globals(),
|
|
1947
|
+
exec(instruction[2:], globals(), pydef_locals)
|
|
1942
1948
|
# add Python function in SQLite
|
|
1943
1949
|
instr_header = re.findall(r"\w+", instruction[: (instruction + ")").find(")")])
|
|
1944
1950
|
instr_name = instr_header[1]
|
|
1945
1951
|
instr_parms = len(instr_header) - 2
|
|
1952
|
+
instr_pointer=eval(instr_name, globals(), pydef_locals)
|
|
1953
|
+
self.conn.create_function(instr_name, instr_parms, instr_pointer)
|
|
1946
1954
|
instr_add = "self.conn.create_function('%s', %s, %s)" % (
|
|
1947
1955
|
instr_name,
|
|
1948
1956
|
instr_parms,
|
|
1949
1957
|
instr_name,
|
|
1950
1958
|
)
|
|
1951
|
-
exec(instr_add, globals(), locals())
|
|
1952
1959
|
# housekeeping definition of pydef in a dictionnary
|
|
1953
|
-
the_help =
|
|
1960
|
+
the_help = pydef_locals[instr_name].__doc__
|
|
1954
1961
|
self.conn_def[instr_name] = {
|
|
1955
1962
|
"parameters": instr_parms,
|
|
1956
1963
|
"inst": instr_add,
|
sqlite_bro-0.12.1/HISTORY.rst
DELETED
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
Changelog
|
|
2
|
-
=========
|
|
3
|
-
|
|
4
|
-
2021-08-15a : v0.12.1 'Pop-up results to excel !'
|
|
5
|
-
-------------------------------------------------
|
|
6
|
-
|
|
7
|
-
* 'backup' and 'restore' functions are accessible via menu (for python >=3.7)
|
|
8
|
-
|
|
9
|
-
* running script and displaying output in temporary files is available via icons
|
|
10
|
-
|
|
11
|
-
* supports running in an environment with no DISPLAY
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
2021-08-09b : v0.11.1 'Script me more!'
|
|
15
|
-
---------------------------------------
|
|
16
|
-
|
|
17
|
-
* supports '.output' and '.print' functions
|
|
18
|
-
|
|
19
|
-
* supports '.dump' and '.read' functions
|
|
20
|
-
|
|
21
|
-
* supports '.open' function
|
|
22
|
-
|
|
23
|
-
* supports '.backup' and '.restore' functions
|
|
24
|
-
|
|
25
|
-
* switch to github actions and pytest
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
2021-08-01a : v0.10.0 'Hello, better .scripting World!'
|
|
29
|
-
-------------------------------------------------------
|
|
30
|
-
|
|
31
|
-
* supports '.headers on|off' function
|
|
32
|
-
|
|
33
|
-
* supports '.separator COL' function
|
|
34
|
-
|
|
35
|
-
* supports '.cd DIRECTORY' function
|
|
36
|
-
|
|
37
|
-
* supports command-line scripting (see sqlite_bro -h)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
2021-04-25a : v0.9.3 'Hello, World!'
|
|
41
|
-
------------------------------------
|
|
42
|
-
|
|
43
|
-
* support functions with no parameters or parameters on several lines
|
|
44
|
-
|
|
45
|
-
2021-04-20a : v0.9.2 'Give PyPy a chance!'
|
|
46
|
-
------------------------------------------
|
|
47
|
-
|
|
48
|
-
* compatiblity with PyPy
|
|
49
|
-
|
|
50
|
-
* handle '~' convention for Home directory
|
|
51
|
-
|
|
52
|
-
* indicate Python Executable and Home directory in Information bubble
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
2019-06-16a : v0.9.1 'Support un-named Tabs!!'
|
|
56
|
-
----------------------------------------------
|
|
57
|
-
|
|
58
|
-
* previously, un-named Tabs couldn't be renamed nor moved.
|
|
59
|
-
|
|
60
|
-
2019-05-02a : v0.9.0 'De-duplicate column names!'
|
|
61
|
-
-------------------------------------------------
|
|
62
|
-
|
|
63
|
-
* header columns in a .csv file are de-duplicated to avoid error: 'a', 'a', 'a_1' becomes 'a', 'a_2', 'a_1'
|
|
64
|
-
|
|
65
|
-
2016-03-06a : v0.8.11 'Combine Functions!'
|
|
66
|
-
------------------------------------------
|
|
67
|
-
|
|
68
|
-
* add a combining of functions example: 'py_func1(1*py_func2)', not 'py_func1(py_func2)'
|
|
69
|
-
|
|
70
|
-
* fixed a nasty tokenizer issue
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
2015-08-12a : v0.8.10 'F9 runs !'
|
|
74
|
-
---------------------------------
|
|
75
|
-
|
|
76
|
-
* clicking on 'F9' key will run current selected instructions (patch by Yuxiang Wang)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
2015-05-24a : v0.8.9 'Yield !'
|
|
80
|
-
------------------------------
|
|
81
|
-
|
|
82
|
-
* re-structure sql splitting as a generator instead of a list
|
|
83
|
-
|
|
84
|
-
* remove too long history from pypi front page
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
2015-04-16a : v0.8.8 'Continuous Integration !'
|
|
88
|
-
-------------------------------------------------
|
|
89
|
-
|
|
90
|
-
* re-structure as a package for Appveyor Continuous Integration tests
|
|
91
|
-
|
|
92
|
-
* include a global test
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
2014-09-10b : v0.8.7.4 '.Import this !'
|
|
96
|
-
---------------------------------------
|
|
97
|
-
|
|
98
|
-
* compatibility fix for python 2.7
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
2014-09-10a : v0.8.7.3 '.Import this !'
|
|
102
|
-
---------------------------------------
|
|
103
|
-
|
|
104
|
-
* wheel packaging format on pypi.org (no user code change)
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
2014-09-03c : v0.8.7.2 '.Import this !'
|
|
108
|
-
---------------------------------------
|
|
109
|
-
|
|
110
|
-
* '.once' default encoding is 'utf-8-sig' on windows
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
2014-09-03b : v0.8.7.1 '.Import this !'
|
|
114
|
-
---------------------------------------
|
|
115
|
-
|
|
116
|
-
* '.import' and '.once' support
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
2014-08-09a : v0.8.6 'Committed to speed'
|
|
120
|
-
-----------------------------------------
|
|
121
|
-
|
|
122
|
-
* use a transaction when importing a csv file
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
2014-07-02b : v0.8.5 'Rename your tabs !'
|
|
126
|
-
-----------------------------------------
|
|
127
|
-
|
|
128
|
-
* tabs can be renamed via double-click
|
|
129
|
-
|
|
130
|
-
* more OS agnostic
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
2014-06-30a : v0.8.4 'Move your tabs !'
|
|
134
|
-
---------------------------------------
|
|
135
|
-
|
|
136
|
-
* tabs can be dragged with the mouse
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
2014-06-28a : v0.8.3 'Cross on tabs !'
|
|
140
|
-
--------------------------------------
|
|
141
|
-
|
|
142
|
-
* each tab has its closing button
|
|
143
|
-
|
|
144
|
-
* Ctrl-Z and Ctrl-Y works on Script Text aera
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
2014-06-26a : v0.8.2 'Getting to the point'
|
|
148
|
-
-------------------------------------------
|
|
149
|
-
|
|
150
|
-
* switch to no-autocommit mode by default to allow savepoints
|
|
151
|
-
|
|
152
|
-
* a 'legacy autocommit' Open Database option is added
|
|
153
|
-
|
|
154
|
-
* add an example of COMMIT and ROLLBACK, and an example of SAVEPOINTS
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
2014-06-25a : v0.8.1 'Attach them all !'
|
|
158
|
-
----------------------------------------
|
|
159
|
-
|
|
160
|
-
* support attachement of several databases with the same name
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
2014-06-21a : v0.8.0 'Mark the date !'
|
|
164
|
-
--------------------------------------
|
|
165
|
-
|
|
166
|
-
* recognize date formats in .csv importation
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
2014-06-19a : v0.7.2 'Remember me'
|
|
170
|
-
----------------------------------
|
|
171
|
-
|
|
172
|
-
* keep memory of last directory used
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
2014-06-17a : v0.7.1
|
|
176
|
-
--------------------
|
|
177
|
-
|
|
178
|
-
* improved publishing on Pypi (was tricky, especially the front page)
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
2014-06-15b : v0.7.0
|
|
182
|
-
--------------------
|
|
183
|
-
|
|
184
|
-
* create a github project 'sqlite_bro', from 'sqlite_py_manager' baresql example
|
|
185
|
-
|
|
186
|
-
* discover how to publish on Pypi (hard)
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
2014-06-14c : "It's a long way to temporary !"
|
|
190
|
-
----------------------------------------------
|
|
191
|
-
|
|
192
|
-
* works with temporary tables
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
2014-06-10a : 'Sanitizer of Python (xkcd.com/327)'
|
|
196
|
-
--------------------------------------------------
|
|
197
|
-
|
|
198
|
-
* imported python functions must be validated
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
2014-06-09a : 'The magic 8th PEP'
|
|
202
|
-
---------------------------------
|
|
203
|
-
|
|
204
|
-
* PEP8 alignement
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
2014-06-07a : 'Yield me a token'
|
|
208
|
-
--------------------------------
|
|
209
|
-
|
|
210
|
-
* the pythonic way to generate tokens is 'Yield'
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
2014-06-04a : 'Log me out !'
|
|
214
|
-
----------------------------
|
|
215
|
-
|
|
216
|
-
* export SQL + SQL top result in a file in 1 click
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
2014-06-01a 'Commit and Rollback'
|
|
220
|
-
---------------------------------
|
|
221
|
-
|
|
222
|
-
* support COMMIT and ROLLBACK
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
2014-06-03a : 'See me now ?'
|
|
226
|
-
----------------------------
|
|
227
|
-
|
|
228
|
-
* character INCREASE icon, so the back of the class can see
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
2014-05-25a : 'sql everywhere'
|
|
232
|
-
------------------------------
|
|
233
|
-
|
|
234
|
-
* make it work as low as Python 2.7 + SQlite 3.6.21
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
2014-05-25a : 'Assassination of Class Room'
|
|
238
|
-
-------------------------------------------
|
|
239
|
-
|
|
240
|
-
* the GUI is a Class now
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
2014-05-11
|
|
244
|
-
----------
|
|
245
|
-
|
|
246
|
-
* addition of Tooltips over icons
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
2014-05-06
|
|
250
|
-
----------
|
|
251
|
-
|
|
252
|
-
* addition of the Welcome Demo
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
2014-05-01
|
|
256
|
-
----------
|
|
257
|
-
|
|
258
|
-
* birth : need of a ZERO-requirements SQLite Browser for a Python Class
|
sqlite_bro-0.12.1/MANIFEST.in
DELETED
sqlite_bro-0.12.1/setup.cfg
DELETED
sqlite_bro-0.12.1/setup.py
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
from __future__ import with_statement
|
|
3
|
-
import os
|
|
4
|
-
from setuptools import setup
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
def get_version():
|
|
8
|
-
with open(os.path.join('sqlite_bro', 'sqlite_bro.py')) as f:
|
|
9
|
-
for line in f:
|
|
10
|
-
if line.strip().startswith('self.__version__'):
|
|
11
|
-
return eval(line.split('=')[-1])
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
def read(*paths):
|
|
15
|
-
"""Build a file path from *paths* and return the contents."""
|
|
16
|
-
with open(os.path.join(*paths), 'r') as f:
|
|
17
|
-
return f.read()
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
setup(
|
|
21
|
-
name='sqlite_bro',
|
|
22
|
-
version=get_version(),
|
|
23
|
-
description="a graphic SQLite Client in 1 Python file",
|
|
24
|
-
|
|
25
|
-
long_description=(read('README.rst')),
|
|
26
|
-
keywords=['sqlite', 'gui', 'ttk', 'sql'],
|
|
27
|
-
author='stonebig',
|
|
28
|
-
author_email='write_pull_requests_to_stonebig@github.com',
|
|
29
|
-
url='https://github.com/stonebig/sqlite_bro',
|
|
30
|
-
license='MIT license',
|
|
31
|
-
# py_modules=['sqlite_bro'],
|
|
32
|
-
packages=['sqlite_bro', 'sqlite_bro.tests'],
|
|
33
|
-
# package_dir={"sqlite_bro": "sqlite_bro"},
|
|
34
|
-
# namespace_packages=[],
|
|
35
|
-
include_package_data=True,
|
|
36
|
-
# zip_safe=False,
|
|
37
|
-
# install_requires=[],
|
|
38
|
-
entry_points={
|
|
39
|
-
'console_scripts': [
|
|
40
|
-
'sqlite_bro = sqlite_bro.sqlite_bro:_main',
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
classifiers=[
|
|
44
|
-
'Development Status :: 5 - Production/Stable',
|
|
45
|
-
'Environment :: Console',
|
|
46
|
-
'Intended Audience :: Education',
|
|
47
|
-
'License :: OSI Approved :: MIT License',
|
|
48
|
-
'Operating System :: OS Independent',
|
|
49
|
-
'Programming Language :: Python',
|
|
50
|
-
'Programming Language :: Python :: 2.7',
|
|
51
|
-
'Programming Language :: Python :: 3',
|
|
52
|
-
'Topic :: Scientific/Engineering :: Information Analysis',
|
|
53
|
-
]
|
|
54
|
-
)
|
|
File without changes
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: sqlite-bro
|
|
3
|
-
Version: 0.12.1
|
|
4
|
-
Summary: a graphic SQLite Client in 1 Python file
|
|
5
|
-
Home-page: https://github.com/stonebig/sqlite_bro
|
|
6
|
-
Author: stonebig
|
|
7
|
-
Author-email: write_pull_requests_to_stonebig@github.com
|
|
8
|
-
License: MIT license
|
|
9
|
-
Keywords: sqlite,gui,ttk,sql
|
|
10
|
-
Platform: UNKNOWN
|
|
11
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
-
Classifier: Environment :: Console
|
|
13
|
-
Classifier: Intended Audience :: Education
|
|
14
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
-
Classifier: Operating System :: OS Independent
|
|
16
|
-
Classifier: Programming Language :: Python
|
|
17
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
18
|
-
Classifier: Programming Language :: Python :: 3
|
|
19
|
-
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
20
|
-
License-File: LICENSE
|
|
21
|
-
|
|
22
|
-
sqlite_bro : a graphic SQLite browser in 1 Python file
|
|
23
|
-
======================================================
|
|
24
|
-
|
|
25
|
-
sqlite_bro is a tool to browse SQLite databases with
|
|
26
|
-
any basic python installation.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Features
|
|
30
|
-
--------
|
|
31
|
-
|
|
32
|
-
* Tabular browsing of a SQLite database
|
|
33
|
-
|
|
34
|
-
* Import/Export of .csv files with auto-detection
|
|
35
|
-
|
|
36
|
-
* Import/Export of .sql script
|
|
37
|
-
|
|
38
|
-
* Export of database creation .sql script
|
|
39
|
-
|
|
40
|
-
* Support of sql-embedded Python functions
|
|
41
|
-
|
|
42
|
-
* support supports command-line scripting if Python>=3.2 (see sqlite_bro -h), with or without Graphic User Interface
|
|
43
|
-
|
|
44
|
-
* Easy to distribute : 1 Python source file, Python and PyPy3 compatible
|
|
45
|
-
|
|
46
|
-
* Easy to start : just launch sqlite_bro
|
|
47
|
-
|
|
48
|
-
* Easy to learn : Welcome example, minimal interface
|
|
49
|
-
|
|
50
|
-
* Easy to teach : Character size, SQL + SQL result export on a click
|
|
51
|
-
|
|
52
|
-
Installation
|
|
53
|
-
------------
|
|
54
|
-
|
|
55
|
-
You can install, upgrade, uninstall sqlite_bro.py with these commands::
|
|
56
|
-
|
|
57
|
-
$ apt-get install python3-tk # apt-get install python-tk if you are using python2
|
|
58
|
-
$ pip install sqlite_bro
|
|
59
|
-
$ pip install --upgrade sqlite_bro
|
|
60
|
-
$ pip uninstall sqlite_bro
|
|
61
|
-
|
|
62
|
-
or just launch latest version from IPython with %load https://raw.githubusercontent.com/stonebig/sqlite_bro/master/sqlite_bro/sqlite_bro.py
|
|
63
|
-
or just copy the file 'sqlite_bro.py' to any pc and type 'python sqlite_bro.py'
|
|
64
|
-
|
|
65
|
-
Example usage
|
|
66
|
-
-------------
|
|
67
|
-
|
|
68
|
-
::
|
|
69
|
-
|
|
70
|
-
$ sqlite_bro
|
|
71
|
-
|
|
72
|
-
::
|
|
73
|
-
|
|
74
|
-
$ sqlite_bro -h
|
|
75
|
-
|
|
76
|
-
Screenshots
|
|
77
|
-
-----------
|
|
78
|
-
|
|
79
|
-
.. image:: https://raw.githubusercontent.com/stonebig/sqlite_bro/master/docs/sqlite_bro.GIF
|
|
80
|
-
|
|
81
|
-
.. image:: https://raw.githubusercontent.com/stonebig/sqlite_bro/master/docs/sqlite_bro_command_line.GIF
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Links
|
|
85
|
-
-----
|
|
86
|
-
|
|
87
|
-
* `Fork me on GitHub <http://github.com/stonebig/sqlite_bro>`_
|
|
88
|
-
|
|
89
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
HISTORY.rst
|
|
2
|
-
LICENSE
|
|
3
|
-
MANIFEST.in
|
|
4
|
-
README.rst
|
|
5
|
-
setup.cfg
|
|
6
|
-
setup.py
|
|
7
|
-
sqlite_bro/__init__.py
|
|
8
|
-
sqlite_bro/sqlite_bro.py
|
|
9
|
-
sqlite_bro.egg-info/PKG-INFO
|
|
10
|
-
sqlite_bro.egg-info/SOURCES.txt
|
|
11
|
-
sqlite_bro.egg-info/dependency_links.txt
|
|
12
|
-
sqlite_bro.egg-info/entry_points.txt
|
|
13
|
-
sqlite_bro.egg-info/top_level.txt
|
|
14
|
-
sqlite_bro/tests/__init__.py
|
|
15
|
-
sqlite_bro/tests/test_general.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
sqlite_bro
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|