sqlite-web
is a web-based SQLite database browser written in Python.
Project dependencies:
$ pip install sqlite-web
$ sqlite_web /path/to/database.db
- Works with your existing SQLite databases, or can be used to create new databases.
- Add or drop:
- Tables
- Columns (yes, you can drop and rename columns!)
- Indexes
- Export data as JSON or CSV.
- Import JSON or CSV files.
- Browse table data.
The index page shows some basic information about the database, including the number of tables and indexes, as well as its size on disk:
The structure
tab displays information about the structure of the table, including columns, indexes, and foreign keys (if any exist). From this page you can also create, rename or drop columns and indexes.
The content
tab displays all the table data. Links in the table header can be used to sort the data:
The query
tab allows you to execute arbitrary SQL queries on a table. The query results are displayed in a table and can be exported to either JSON or CSV:
The import
tab supports importing CSV and JSON files into a table. There is an option to automatically create columns for any unrecognized keys in the import file:
The syntax for invoking sqlite-web is:
.. code-block:: console
$ sqlite_web [options] /path/to/database-file.db
The following options are available:
-p
,--port
: default is 8080-H
,--host
: default is 127.0.0.1-d
,--debug
: default is false-x
,--no-browser
: do not open a web-browser when sqlite-web starts.