sqlitexplorer 1.0.0__py3-none-any.whl

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.
sqlitexplorer/shell.py ADDED
@@ -0,0 +1,254 @@
1
+ """Interactive shell (REPL) on top of an open :class:`Explorer`.
2
+
3
+ Statements are accumulated until :func:`sqlite3.complete_statement` says they
4
+ are complete, then executed one by one. Lines starting with a dot are shell
5
+ commands. readline (history and Tab completion) is used when available and
6
+ the session is interactive.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ import os
12
+ import sqlite3
13
+ import sys
14
+ from collections.abc import Callable
15
+ from contextlib import suppress
16
+ from pathlib import Path
17
+
18
+ import typer
19
+
20
+ from sqlitexplorer.core import Explorer, ExplorerError, split_statements, translate_error
21
+ from sqlitexplorer.render import OutputFormat, OutputOptions, emit, emit_stream, ok_message
22
+
23
+ __all__ = ["Completer", "DOT_COMMANDS", "SQL_KEYWORDS", "history_path", "run_shell"]
24
+
25
+ PROMPT = "sqlitexplorer> "
26
+ CONTINUATION = " ...> "
27
+
28
+ SQL_KEYWORDS = (
29
+ "ALL", "ALTER", "AND", "AS", "ASC", "ATTACH", "BEGIN", "BETWEEN", "BLOB", "BY",
30
+ "CASE", "COMMIT", "COUNT", "CREATE", "DATABASE", "DELETE", "DESC", "DETACH",
31
+ "DISTINCT", "DROP", "ELSE", "END", "EXISTS", "EXPLAIN", "FROM", "GROUP", "HAVING",
32
+ "IN", "INDEX", "INNER", "INSERT", "INTEGER", "INTO", "IS", "JOIN", "KEY", "LEFT",
33
+ "LIKE", "LIMIT", "MAX", "MIN", "NOT", "NULL", "OFFSET", "ON", "OR", "ORDER",
34
+ "OUTER", "PLAN", "PRAGMA", "PRIMARY", "QUERY", "REAL", "ROLLBACK", "SELECT",
35
+ "SET", "SUM", "TABLE", "TEXT", "THEN", "UNION", "UPDATE", "VALUES", "VIEW",
36
+ "WHEN", "WHERE", "WITH",
37
+ ) # fmt: skip
38
+
39
+ DOT_COMMANDS = {
40
+ ".tables": "list tables and views with their row counts",
41
+ ".schema": "[NAME] print CREATE statements",
42
+ ".describe": "TABLE show the columns of a table or view",
43
+ ".indexes": "[TABLE] list indexes",
44
+ ".stats": "TABLE per-column statistics",
45
+ ".format": "table|csv|tsv|json|markdown change the output format",
46
+ ".null": "TEXT text shown for NULL values",
47
+ ".truncate": "N|off truncate long values",
48
+ ".help": "show this help",
49
+ ".quit": "leave the shell (also .exit or Ctrl-D)",
50
+ }
51
+
52
+
53
+ class Completer:
54
+ """readline completer over dot-commands, SQL keywords, table and column names."""
55
+
56
+ def __init__(self, db: Explorer) -> None:
57
+ self._db = db
58
+ self._matches: list[str] = []
59
+
60
+ def candidates(self) -> list[str]:
61
+ names: list[str] = []
62
+ try:
63
+ for table in self._db.names():
64
+ names.append(table)
65
+ names.extend(self._db.column_names(table))
66
+ except (ExplorerError, sqlite3.Error):
67
+ pass
68
+ return names
69
+
70
+ def __call__(self, text: str, state: int) -> str | None:
71
+ if state == 0:
72
+ pool = (
73
+ list(DOT_COMMANDS) if text.startswith(".") else [*SQL_KEYWORDS, *self.candidates()]
74
+ )
75
+ lowered = text.lower()
76
+ matches = {item for item in pool if item.lower().startswith(lowered)}
77
+ self._matches = sorted(matches, key=str.lower)
78
+ return self._matches[state] if state < len(self._matches) else None
79
+
80
+
81
+ def history_path() -> Path:
82
+ base = os.environ.get("XDG_STATE_HOME") or str(Path.home() / ".local" / "state")
83
+ return Path(base) / "sqlitexplorer" / "history"
84
+
85
+
86
+ def _setup_readline(completer: Completer) -> Callable[[], None] | None:
87
+ """Configure readline if available; return a function that saves the history."""
88
+ try:
89
+ import readline
90
+ except ImportError:
91
+ return None
92
+ readline.set_completer(completer)
93
+ readline.set_completer_delims(" \t\n,;()")
94
+ if "libedit" in (readline.__doc__ or ""):
95
+ readline.parse_and_bind("bind ^I rl_complete")
96
+ else:
97
+ readline.parse_and_bind("tab: complete")
98
+ readline.set_history_length(1000)
99
+ path = history_path()
100
+ with suppress(OSError):
101
+ readline.read_history_file(path)
102
+
103
+ def save() -> None:
104
+ try:
105
+ path.parent.mkdir(parents=True, exist_ok=True)
106
+ readline.write_history_file(path)
107
+ except OSError:
108
+ pass
109
+
110
+ return save
111
+
112
+
113
+ def _read_piped_line(prompt: str) -> str:
114
+ line = sys.stdin.readline()
115
+ if not line:
116
+ raise EOFError
117
+ return line.rstrip("\r\n")
118
+
119
+
120
+ def run_shell(
121
+ db: Explorer,
122
+ *,
123
+ options: OutputOptions,
124
+ write: bool,
125
+ interactive: bool,
126
+ report_error: Callable[[ExplorerError], None],
127
+ ) -> None:
128
+ """Read statements and dot-commands until EOF or ``.quit``."""
129
+ save_history = _setup_readline(Completer(db)) if interactive else None
130
+ read_line = input if interactive else _read_piped_line
131
+ buffer = ""
132
+ try:
133
+ while True:
134
+ try:
135
+ line = read_line(CONTINUATION if buffer else PROMPT)
136
+ except KeyboardInterrupt:
137
+ if not interactive:
138
+ return
139
+ typer.echo("")
140
+ buffer = ""
141
+ continue
142
+ except EOFError:
143
+ if buffer.strip():
144
+ _run_sql(db, buffer, options=options, write=write, report_error=report_error)
145
+ if interactive:
146
+ typer.echo("")
147
+ return
148
+ stripped = line.strip()
149
+ if not buffer and stripped.startswith("."):
150
+ if not _dot_command(db, stripped, options=options, report_error=report_error):
151
+ return
152
+ continue
153
+ if not buffer and not stripped:
154
+ continue
155
+ buffer = f"{buffer}\n{line}" if buffer else line
156
+ if sqlite3.complete_statement(buffer):
157
+ _run_sql(db, buffer, options=options, write=write, report_error=report_error)
158
+ buffer = ""
159
+ finally:
160
+ if save_history is not None:
161
+ save_history()
162
+
163
+
164
+ def _run_sql(
165
+ db: Explorer,
166
+ sql: str,
167
+ *,
168
+ options: OutputOptions,
169
+ write: bool,
170
+ report_error: Callable[[ExplorerError], None],
171
+ ) -> None:
172
+ for statement in split_statements(sql):
173
+ try:
174
+ stream = db.stream(statement)
175
+ if stream.returns_rows:
176
+ emit_stream(stream, options)
177
+ else:
178
+ typer.echo(ok_message(stream))
179
+ except ExplorerError as error:
180
+ report_error(error)
181
+ except sqlite3.Error as error:
182
+ if write:
183
+ db.rollback()
184
+ report_error(translate_error(error, write=write))
185
+ return
186
+ if write:
187
+ db.commit()
188
+
189
+
190
+ def _dot_command(
191
+ db: Explorer,
192
+ line: str,
193
+ *,
194
+ options: OutputOptions,
195
+ report_error: Callable[[ExplorerError], None],
196
+ ) -> bool:
197
+ """Run one dot-command. Returns False when the shell should exit."""
198
+ command, _, argument = line.partition(" ")
199
+ argument = argument.strip()
200
+ try:
201
+ if command in (".quit", ".exit"):
202
+ return False
203
+ if command == ".help":
204
+ for name, description in DOT_COMMANDS.items():
205
+ typer.echo(f"{name:<11}{description}")
206
+ elif command == ".tables":
207
+ emit(db.tables(), options, empty="(no tables)")
208
+ elif command == ".schema":
209
+ statements = db.schema(argument or None)
210
+ typer.echo("\n\n".join(f"{s};" for s in statements) if statements else "(empty schema)")
211
+ elif command == ".describe":
212
+ emit(db.columns(_required(argument, command)), options)
213
+ elif command == ".indexes":
214
+ emit(db.indexes(argument or None), options, empty="(no indexes)")
215
+ elif command == ".stats":
216
+ emit(db.stats(_required(argument, command)).result, options)
217
+ elif command == ".format":
218
+ options.format = _parse_format(argument)
219
+ elif command == ".null":
220
+ options.null = argument
221
+ elif command == ".truncate":
222
+ options.truncate = _parse_truncate(argument)
223
+ else:
224
+ raise ExplorerError(f"unknown command {command}, try .help")
225
+ except ExplorerError as error:
226
+ report_error(error)
227
+ except sqlite3.Error as error:
228
+ report_error(translate_error(error, write=False))
229
+ return True
230
+
231
+
232
+ def _required(argument: str, command: str) -> str:
233
+ if not argument:
234
+ raise ExplorerError(f"usage: {command} TABLE")
235
+ return argument
236
+
237
+
238
+ def _parse_format(argument: str) -> OutputFormat:
239
+ try:
240
+ return OutputFormat(argument.lower())
241
+ except ValueError:
242
+ choices = ", ".join(fmt.value for fmt in OutputFormat)
243
+ raise ExplorerError(
244
+ f"unknown format: {argument or '(none)'}; choose from {choices}"
245
+ ) from None
246
+
247
+
248
+ def _parse_truncate(argument: str) -> int | None:
249
+ if argument.lower() in ("", "off"):
250
+ return None
251
+ try:
252
+ return max(1, int(argument))
253
+ except ValueError:
254
+ raise ExplorerError("usage: .truncate N|off") from None
@@ -0,0 +1,229 @@
1
+ Metadata-Version: 2.4
2
+ Name: sqlitexplorer
3
+ Version: 1.0.0
4
+ Summary: Explore SQLite databases from the terminal: tables, schema, stats, search, queries, charts, export/import and an interactive shell.
5
+ Author-email: "Carlos A. Planchón" <carlosandresplanchonprestes@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Repository, https://github.com/carlosplanchon/sqlitexplorer.git
8
+ Keywords: sqlite,sqlite3,database,cli,terminal,explorer,chart,shell,repl
9
+ Classifier: Environment :: Console
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Topic :: Database
12
+ Classifier: Topic :: Database :: Front-Ends
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Requires-Python: >=3.10
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: outfancy>=0.11
23
+ Requires-Dist: plotille>=6
24
+ Requires-Dist: typer>=0.12
25
+ Provides-Extra: dev
26
+ Requires-Dist: pytest>=8; extra == "dev"
27
+ Requires-Dist: ruff; extra == "dev"
28
+ Dynamic: license-file
29
+
30
+ # sqlitexplorer
31
+
32
+ ![sqlitexplorer banner](https://raw.githubusercontent.com/carlosplanchon/sqlitexplorer/master/assets/banner.jpg)
33
+
34
+ A command-line explorer for SQLite databases. It lists tables, prints schemas,
35
+ dumps rows, computes statistics, searches values, runs ad-hoc queries, draws
36
+ charts, exports and imports data, and offers an interactive shell. Tables are
37
+ rendered with [outfancy](https://github.com/carlosplanchon/outfancy) and charts
38
+ with [plotille](https://github.com/tammoippen/plotille).
39
+
40
+ [![CI](https://github.com/carlosplanchon/sqlitexplorer/actions/workflows/ci.yml/badge.svg)](https://github.com/carlosplanchon/sqlitexplorer/actions/workflows/ci.yml)
41
+ [![PyPI version](https://img.shields.io/pypi/v/sqlitexplorer.svg)](https://pypi.org/project/sqlitexplorer/)
42
+ [![Python versions](https://img.shields.io/pypi/pyversions/sqlitexplorer.svg)](https://pypi.org/project/sqlitexplorer/)
43
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
44
+ [![DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/carlosplanchon/sqlitexplorer)
45
+
46
+ ## Installation
47
+
48
+ Requires Python 3.10 or newer.
49
+
50
+ ```sh
51
+ # From a clone of this repository:
52
+ uv tool install .
53
+ # or with pip:
54
+ pip install .
55
+ ```
56
+
57
+ ## Quick tour
58
+
59
+ ```sh
60
+ sqlitexplorer tables app.db # tables and views with their row counts
61
+ sqlitexplorer schema app.db [users] # CREATE statements, in creation order
62
+ sqlitexplorer describe app.db users # columns: type, NOT NULL, default, primary key
63
+ sqlitexplorer indexes app.db [users] # indexes and the columns they cover
64
+ sqlitexplorer foreign-keys app.db [posts] # foreign keys
65
+ sqlitexplorer info app.db [--check] # size, pragmas, object counts, integrity check
66
+ sqlitexplorer show app.db users # rows of a table or view
67
+ sqlitexplorer stats app.db users # nulls, distinct, min, max, top values per column
68
+ sqlitexplorer search app.db "marie" # find a text in every column of every table
69
+ sqlitexplorer query app.db "SELECT ..." # run SQL
70
+ sqlitexplorer chart app.db "SELECT day, total FROM sales ORDER BY day"
71
+ sqlitexplorer dump app.db # the whole database as SQL
72
+ sqlitexplorer export app.db users -o users.csv # rows to a file
73
+ sqlitexplorer import app.db people people.csv # a file into a table
74
+ sqlitexplorer diff app.db backup.db # compare two schemas
75
+ sqlitexplorer shell app.db # interactive shell
76
+ ```
77
+
78
+ Every command has `--help`. Databases are opened read-only and are never
79
+ created; commands that change data need `--write`, except `import`, which
80
+ always writes.
81
+
82
+ ## Exploring
83
+
84
+ `show` accepts filters so most questions need no SQL:
85
+
86
+ ```sh
87
+ sqlitexplorer show app.db users -c name,age --where "age > 18" --order-by age --desc -n 20 --offset 40
88
+ ```
89
+
90
+ `--columns` and `--order-by` are validated against the table; `--where` is a
91
+ raw SQL condition.
92
+
93
+ `stats` reports, for each column, the declared type, how many NULLs, how many
94
+ distinct values, the minimum, the maximum and the most frequent values
95
+ (`--top N`). Everything but the frequent values comes from a single pass over
96
+ the table; on big tables use `--top 0` to skip them, `--columns` to analyse
97
+ only some columns, or `--sample N` to work on a random sample of N rows (the
98
+ output then says so). Likewise `tables --no-count` skips the row counts.
99
+
100
+ `search` looks for a case-insensitive substring in every non-BLOB column of
101
+ every table (`--table` restricts it, `--limit` stops early) and prints the
102
+ table, column, rowid and value of each match. Each table is scanned once.
103
+
104
+ ## Output options
105
+
106
+ Every command that prints rows takes the same options:
107
+
108
+ | Option | Effect |
109
+ |---|---|
110
+ | `--format`, `-f` | `table` (default), `csv`, `tsv`, `json` or `markdown` |
111
+ | `--null TEXT` | text shown for NULL values (default `NULL`) |
112
+ | `--truncate N` | cut values longer than N characters |
113
+ | `--page N`, `--page-size M` | print only one page of the rows; the footer goes to stderr |
114
+ | `--pager` | send the output to `$PAGER` (default `less -R`) when on a terminal |
115
+ | `--color` / `--no-color` | force or disable ANSI colors; by default only on a terminal, never when `NO_COLOR` is set |
116
+ | `--width N` | width to fit tables into (default: the terminal width) |
117
+
118
+ `NULL` and `BLOB` values are printed as SQL literals (`NULL`, `X'0102'`). In
119
+ the JSON format NULL becomes `null`, BLOBs are base64 strings and values are
120
+ never truncated.
121
+
122
+ When a table is wider than the terminal, the widest columns are narrowed and
123
+ their values wrapped so that every column and label stays visible. Use
124
+ `--width` or another format to get the values on one line.
125
+
126
+ Big results do not need to fit in memory: `--page` fetches only the requested
127
+ page (in SQL for `show`, from the cursor for `query`), and the csv, tsv, json
128
+ and markdown formats, `export` and `dump` are written row by row. The table
129
+ format is the exception, since it needs every row to size its columns.
130
+
131
+ ## Queries
132
+
133
+ ```sh
134
+ sqlitexplorer query app.db "SELECT name, age FROM users WHERE age > :min" -p min=30
135
+ sqlitexplorer query app.db --file report.sql # several statements, one transaction
136
+ echo "SELECT COUNT(*) FROM users" | sqlitexplorer query app.db -
137
+ sqlitexplorer query app.db "SELECT ..." --attach old=backup.db # then use old.users
138
+ sqlitexplorer query app.db "SELECT ..." --explain # EXPLAIN QUERY PLAN as a tree
139
+ sqlitexplorer query app.db "SELECT ..." --time # rows and elapsed time on stderr
140
+ sqlitexplorer query app.db "SELECT COUNT(*) FROM jobs" --watch 2 # re-run every 2 s, Ctrl-C stops
141
+ sqlitexplorer query app.db "DELETE FROM users WHERE age IS NULL" --write
142
+ ```
143
+
144
+ Several statements can be given at once (separated by `;`); they run in one
145
+ transaction that is committed at the end and rolled back on the first error.
146
+ `--param` values that look like numbers are bound as numbers. Attached
147
+ databases follow the read-only rule of the main one.
148
+
149
+ ## Charts
150
+
151
+ ```sh
152
+ sqlitexplorer chart app.db "SELECT day, sales, returns FROM daily ORDER BY day"
153
+ sqlitexplorer chart app.db "SELECT age FROM users" --kind hist --bins 20
154
+ ```
155
+
156
+ The first column is the X axis (numbers or ISO dates), every other column is a
157
+ series named after the column; rows with NULLs are skipped and counted on
158
+ stderr. `--kind` selects `line` (default), `scatter` or `hist` (first column
159
+ only, `--bins`). `--height`, `--width`, `--x-label`, `--y-label` and `--color`
160
+ adjust the drawing.
161
+
162
+ ## Export, import, dump and diff
163
+
164
+ ```sh
165
+ sqlitexplorer dump app.db -o backup.sql # replayable SQL, like .dump
166
+ sqlitexplorer export app.db users -f json -o users.json
167
+ sqlitexplorer export app.db --all -o exported/ -f csv # one file per table and view
168
+ sqlitexplorer import app.db people people.csv # csv, tsv or json (list of objects)
169
+ sqlitexplorer diff app.db backup.db # exit status 1 when the schemas differ
170
+ ```
171
+
172
+ `import` creates the table when it does not exist, inferring INTEGER, REAL or
173
+ TEXT for each column; empty CSV cells become NULL. The format comes from the
174
+ file extension unless `--format` is given.
175
+
176
+ ## Shell
177
+
178
+ ```
179
+ $ sqlitexplorer shell app.db
180
+ sqlitexplorer> SELECT name
181
+ ...> FROM users;
182
+ sqlitexplorer> .tables
183
+ sqlitexplorer> .format json
184
+ sqlitexplorer> .quit
185
+ ```
186
+
187
+ Statements end with `;` and may span several lines. Dot-commands: `.tables`,
188
+ `.schema [NAME]`, `.describe TABLE`, `.indexes [TABLE]`, `.stats TABLE`,
189
+ `.format FORMAT`, `.null TEXT`, `.truncate N|off`, `.help` and `.quit`. Tab
190
+ completes SQL keywords, table and column names; the history is kept in
191
+ `$XDG_STATE_HOME/sqlitexplorer/history` (`~/.local/state` by default). With
192
+ `--write` every statement is committed as soon as it succeeds. SQL can also be
193
+ piped into the shell.
194
+
195
+ Completion of the command line itself (commands, options and table names) is
196
+ installed with `sqlitexplorer --install-completion`.
197
+
198
+ ## Development
199
+
200
+ ```sh
201
+ uv venv
202
+ uv pip install -e ".[dev]"
203
+ uv run pytest
204
+ uv run ruff check .
205
+ ```
206
+
207
+ ## Releasing
208
+
209
+ Releases are driven by version tags. Pushing `vX.Y.Z` runs the tests, builds
210
+ the distributions, publishes them to PyPI with
211
+ [trusted publishing](https://docs.pypi.org/trusted-publishers/) and creates a
212
+ GitHub release with the artifacts attached.
213
+
214
+ ```sh
215
+ uv version 0.3.0 # or: uv version --bump minor
216
+ git commit -am "Release 0.3.0"
217
+ git tag v0.3.0
218
+ git push origin master v0.3.0
219
+ ```
220
+
221
+ The tag must match the version in `pyproject.toml`; the workflow refuses to
222
+ publish otherwise. Before the first release, register the repository as a
223
+ trusted publisher of the project on PyPI with the workflow name `release.yml`
224
+ and the environment `pypi`, and create that environment in the repository
225
+ settings on GitHub.
226
+
227
+ ## License
228
+
229
+ MIT. See [LICENSE](LICENSE).
@@ -0,0 +1,14 @@
1
+ sqlitexplorer/__init__.py,sha256=_QaFu1_krQMSWzZQttAjpEWD52Y0SiYESAyN9xWQNTg,314
2
+ sqlitexplorer/__main__.py,sha256=madQt2JWvV_1Kb-gJS-WWWZ-uZ3Cb2zpNexx0NRwH_8,118
3
+ sqlitexplorer/charts.py,sha256=Mmf1kBygFAvFDHNVisH-zxbMLa-ZQEgTvtHq8C4zicA,6046
4
+ sqlitexplorer/cli.py,sha256=4omMBYR-Y4qLG3CnE5rrtCgnnLpQU7K5qoQNHZmC-WY,27439
5
+ sqlitexplorer/completion.py,sha256=BDoLHWmY5hzeWe2d5S0fZ43PUrKd6n1mztLhexThUk8,650
6
+ sqlitexplorer/core.py,sha256=KGAo8W5m9ZCJYfd6eR2Wl6u-qYp0p6kiq70jTS5aNiE,27254
7
+ sqlitexplorer/render.py,sha256=4_vDQtp4oNZdqv7MBxibxScKEVj0UFe0ti5Xxqhg6tI,17801
8
+ sqlitexplorer/shell.py,sha256=0-SXpehANSLRBUgFzx__nhHy6PWmh17UJ3Y6evbcuYc,8742
9
+ sqlitexplorer-1.0.0.dist-info/licenses/LICENSE,sha256=EntRdjOkc8SHsT_IPdTQUG8tJjiCWaAL7Cck5yS0NFs,1076
10
+ sqlitexplorer-1.0.0.dist-info/METADATA,sha256=fn2OC2VkNtyT4jqxegPf7eCYSnNkbrc5z5X1TC1sSSo,10011
11
+ sqlitexplorer-1.0.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
12
+ sqlitexplorer-1.0.0.dist-info/entry_points.txt,sha256=XIkU6hndeYcPTlR2Skaeh9Zy0TsY9Ilq3ohoZlN1FGM,57
13
+ sqlitexplorer-1.0.0.dist-info/top_level.txt,sha256=zt1GxOE886ZUrJim00zuouBPKudZCU0Nmv6fzcyPUjw,14
14
+ sqlitexplorer-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ sqlitexplorer = sqlitexplorer.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 Carlos A. Planchón
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ sqlitexplorer