sqlite-bro 0.12.2__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.2 → 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.2 → sqlite_bro-0.13.1}/sqlite_bro/sqlite_bro.py +8 -5
- sqlite_bro-0.12.2/HISTORY.rst +0 -264
- sqlite_bro-0.12.2/MANIFEST.in +0 -3
- sqlite_bro-0.12.2/setup.cfg +0 -10
- sqlite_bro-0.12.2/setup.py +0 -54
- sqlite_bro-0.12.2/sqlite_bro/tests/__init__.py +0 -0
- sqlite_bro-0.12.2/sqlite_bro.egg-info/PKG-INFO +0 -89
- sqlite_bro-0.12.2/sqlite_bro.egg-info/SOURCES.txt +0 -15
- sqlite_bro-0.12.2/sqlite_bro.egg-info/dependency_links.txt +0 -1
- sqlite_bro-0.12.2/sqlite_bro.egg-info/entry_points.txt +0 -3
- sqlite_bro-0.12.2/sqlite_bro.egg-info/top_level.txt +0 -1
- {sqlite_bro-0.12.2 → sqlite_bro-0.13.1}/LICENSE +0 -0
- {sqlite_bro-0.12.2 → sqlite_bro-0.13.1}/README.rst +0 -0
- {sqlite_bro-0.12.2/sqlite_bro → sqlite_bro-0.13.1/sqlite_bro/tests}/__init__.py +0 -0
- {sqlite_bro-0.12.2 → 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 = "."
|
|
@@ -1942,19 +1944,20 @@ class Baresql:
|
|
|
1942
1944
|
|
|
1943
1945
|
instruction = sql.strip("; \t\n\r")
|
|
1944
1946
|
# create Python function in Python
|
|
1945
|
-
exec(instruction[2:], globals(),
|
|
1947
|
+
exec(instruction[2:], globals(), pydef_locals)
|
|
1946
1948
|
# add Python function in SQLite
|
|
1947
1949
|
instr_header = re.findall(r"\w+", instruction[: (instruction + ")").find(")")])
|
|
1948
1950
|
instr_name = instr_header[1]
|
|
1949
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)
|
|
1950
1954
|
instr_add = "self.conn.create_function('%s', %s, %s)" % (
|
|
1951
1955
|
instr_name,
|
|
1952
1956
|
instr_parms,
|
|
1953
1957
|
instr_name,
|
|
1954
1958
|
)
|
|
1955
|
-
exec(instr_add, globals(), locals())
|
|
1956
1959
|
# housekeeping definition of pydef in a dictionnary
|
|
1957
|
-
the_help =
|
|
1960
|
+
the_help = pydef_locals[instr_name].__doc__
|
|
1958
1961
|
self.conn_def[instr_name] = {
|
|
1959
1962
|
"parameters": instr_parms,
|
|
1960
1963
|
"inst": instr_add,
|
sqlite_bro-0.12.2/HISTORY.rst
DELETED
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
Changelog
|
|
2
|
-
=========
|
|
3
|
-
|
|
4
|
-
2022-02-04a : v0.12.2 'Filling the blanks !'
|
|
5
|
-
--------------------------------------------
|
|
6
|
-
|
|
7
|
-
* empty columns names are always replaced per the default 'c_nnn' convention
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
2021-08-15a : v0.12.1 'Pop-up results to excel !'
|
|
11
|
-
-------------------------------------------------
|
|
12
|
-
|
|
13
|
-
* 'backup' and 'restore' functions are accessible via menu (for python >=3.7)
|
|
14
|
-
|
|
15
|
-
* running script and displaying output in temporary files is available via icons
|
|
16
|
-
|
|
17
|
-
* supports running in an environment with no DISPLAY
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
2021-08-09b : v0.11.1 'Script me more!'
|
|
21
|
-
---------------------------------------
|
|
22
|
-
|
|
23
|
-
* supports '.output' and '.print' functions
|
|
24
|
-
|
|
25
|
-
* supports '.dump' and '.read' functions
|
|
26
|
-
|
|
27
|
-
* supports '.open' function
|
|
28
|
-
|
|
29
|
-
* supports '.backup' and '.restore' functions
|
|
30
|
-
|
|
31
|
-
* switch to github actions and pytest
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
2021-08-01a : v0.10.0 'Hello, better .scripting World!'
|
|
35
|
-
-------------------------------------------------------
|
|
36
|
-
|
|
37
|
-
* supports '.headers on|off' function
|
|
38
|
-
|
|
39
|
-
* supports '.separator COL' function
|
|
40
|
-
|
|
41
|
-
* supports '.cd DIRECTORY' function
|
|
42
|
-
|
|
43
|
-
* supports command-line scripting (see sqlite_bro -h)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
2021-04-25a : v0.9.3 'Hello, World!'
|
|
47
|
-
------------------------------------
|
|
48
|
-
|
|
49
|
-
* support functions with no parameters or parameters on several lines
|
|
50
|
-
|
|
51
|
-
2021-04-20a : v0.9.2 'Give PyPy a chance!'
|
|
52
|
-
------------------------------------------
|
|
53
|
-
|
|
54
|
-
* compatiblity with PyPy
|
|
55
|
-
|
|
56
|
-
* handle '~' convention for Home directory
|
|
57
|
-
|
|
58
|
-
* indicate Python Executable and Home directory in Information bubble
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
2019-06-16a : v0.9.1 'Support un-named Tabs!!'
|
|
62
|
-
----------------------------------------------
|
|
63
|
-
|
|
64
|
-
* previously, un-named Tabs couldn't be renamed nor moved.
|
|
65
|
-
|
|
66
|
-
2019-05-02a : v0.9.0 'De-duplicate column names!'
|
|
67
|
-
-------------------------------------------------
|
|
68
|
-
|
|
69
|
-
* header columns in a .csv file are de-duplicated to avoid error: 'a', 'a', 'a_1' becomes 'a', 'a_2', 'a_1'
|
|
70
|
-
|
|
71
|
-
2016-03-06a : v0.8.11 'Combine Functions!'
|
|
72
|
-
------------------------------------------
|
|
73
|
-
|
|
74
|
-
* add a combining of functions example: 'py_func1(1*py_func2)', not 'py_func1(py_func2)'
|
|
75
|
-
|
|
76
|
-
* fixed a nasty tokenizer issue
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
2015-08-12a : v0.8.10 'F9 runs !'
|
|
80
|
-
---------------------------------
|
|
81
|
-
|
|
82
|
-
* clicking on 'F9' key will run current selected instructions (patch by Yuxiang Wang)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
2015-05-24a : v0.8.9 'Yield !'
|
|
86
|
-
------------------------------
|
|
87
|
-
|
|
88
|
-
* re-structure sql splitting as a generator instead of a list
|
|
89
|
-
|
|
90
|
-
* remove too long history from pypi front page
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
2015-04-16a : v0.8.8 'Continuous Integration !'
|
|
94
|
-
-------------------------------------------------
|
|
95
|
-
|
|
96
|
-
* re-structure as a package for Appveyor Continuous Integration tests
|
|
97
|
-
|
|
98
|
-
* include a global test
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
2014-09-10b : v0.8.7.4 '.Import this !'
|
|
102
|
-
---------------------------------------
|
|
103
|
-
|
|
104
|
-
* compatibility fix for python 2.7
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
2014-09-10a : v0.8.7.3 '.Import this !'
|
|
108
|
-
---------------------------------------
|
|
109
|
-
|
|
110
|
-
* wheel packaging format on pypi.org (no user code change)
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
2014-09-03c : v0.8.7.2 '.Import this !'
|
|
114
|
-
---------------------------------------
|
|
115
|
-
|
|
116
|
-
* '.once' default encoding is 'utf-8-sig' on windows
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
2014-09-03b : v0.8.7.1 '.Import this !'
|
|
120
|
-
---------------------------------------
|
|
121
|
-
|
|
122
|
-
* '.import' and '.once' support
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
2014-08-09a : v0.8.6 'Committed to speed'
|
|
126
|
-
-----------------------------------------
|
|
127
|
-
|
|
128
|
-
* use a transaction when importing a csv file
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
2014-07-02b : v0.8.5 'Rename your tabs !'
|
|
132
|
-
-----------------------------------------
|
|
133
|
-
|
|
134
|
-
* tabs can be renamed via double-click
|
|
135
|
-
|
|
136
|
-
* more OS agnostic
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
2014-06-30a : v0.8.4 'Move your tabs !'
|
|
140
|
-
---------------------------------------
|
|
141
|
-
|
|
142
|
-
* tabs can be dragged with the mouse
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
2014-06-28a : v0.8.3 'Cross on tabs !'
|
|
146
|
-
--------------------------------------
|
|
147
|
-
|
|
148
|
-
* each tab has its closing button
|
|
149
|
-
|
|
150
|
-
* Ctrl-Z and Ctrl-Y works on Script Text aera
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
2014-06-26a : v0.8.2 'Getting to the point'
|
|
154
|
-
-------------------------------------------
|
|
155
|
-
|
|
156
|
-
* switch to no-autocommit mode by default to allow savepoints
|
|
157
|
-
|
|
158
|
-
* a 'legacy autocommit' Open Database option is added
|
|
159
|
-
|
|
160
|
-
* add an example of COMMIT and ROLLBACK, and an example of SAVEPOINTS
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
2014-06-25a : v0.8.1 'Attach them all !'
|
|
164
|
-
----------------------------------------
|
|
165
|
-
|
|
166
|
-
* support attachement of several databases with the same name
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
2014-06-21a : v0.8.0 'Mark the date !'
|
|
170
|
-
--------------------------------------
|
|
171
|
-
|
|
172
|
-
* recognize date formats in .csv importation
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
2014-06-19a : v0.7.2 'Remember me'
|
|
176
|
-
----------------------------------
|
|
177
|
-
|
|
178
|
-
* keep memory of last directory used
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
2014-06-17a : v0.7.1
|
|
182
|
-
--------------------
|
|
183
|
-
|
|
184
|
-
* improved publishing on Pypi (was tricky, especially the front page)
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
2014-06-15b : v0.7.0
|
|
188
|
-
--------------------
|
|
189
|
-
|
|
190
|
-
* create a github project 'sqlite_bro', from 'sqlite_py_manager' baresql example
|
|
191
|
-
|
|
192
|
-
* discover how to publish on Pypi (hard)
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
2014-06-14c : "It's a long way to temporary !"
|
|
196
|
-
----------------------------------------------
|
|
197
|
-
|
|
198
|
-
* works with temporary tables
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
2014-06-10a : 'Sanitizer of Python (xkcd.com/327)'
|
|
202
|
-
--------------------------------------------------
|
|
203
|
-
|
|
204
|
-
* imported python functions must be validated
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
2014-06-09a : 'The magic 8th PEP'
|
|
208
|
-
---------------------------------
|
|
209
|
-
|
|
210
|
-
* PEP8 alignement
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
2014-06-07a : 'Yield me a token'
|
|
214
|
-
--------------------------------
|
|
215
|
-
|
|
216
|
-
* the pythonic way to generate tokens is 'Yield'
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
2014-06-04a : 'Log me out !'
|
|
220
|
-
----------------------------
|
|
221
|
-
|
|
222
|
-
* export SQL + SQL top result in a file in 1 click
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
2014-06-01a 'Commit and Rollback'
|
|
226
|
-
---------------------------------
|
|
227
|
-
|
|
228
|
-
* support COMMIT and ROLLBACK
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
2014-06-03a : 'See me now ?'
|
|
232
|
-
----------------------------
|
|
233
|
-
|
|
234
|
-
* character INCREASE icon, so the back of the class can see
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
2014-05-25a : 'sql everywhere'
|
|
238
|
-
------------------------------
|
|
239
|
-
|
|
240
|
-
* make it work as low as Python 2.7 + SQlite 3.6.21
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
2014-05-25a : 'Assassination of Class Room'
|
|
244
|
-
-------------------------------------------
|
|
245
|
-
|
|
246
|
-
* the GUI is a Class now
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
2014-05-11
|
|
250
|
-
----------
|
|
251
|
-
|
|
252
|
-
* addition of Tooltips over icons
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
2014-05-06
|
|
256
|
-
----------
|
|
257
|
-
|
|
258
|
-
* addition of the Welcome Demo
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
2014-05-01
|
|
262
|
-
----------
|
|
263
|
-
|
|
264
|
-
* birth : need of a ZERO-requirements SQLite Browser for a Python Class
|
sqlite_bro-0.12.2/MANIFEST.in
DELETED
sqlite_bro-0.12.2/setup.cfg
DELETED
sqlite_bro-0.12.2/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.2
|
|
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
|