Skip to content

Web-based SQLite database browser written in Python THAT CAN FUCKING PUT A FUCKING NEW FUCKING RECORD IN A FUCKING SQLITE DB AS IF IT WAS A FUCKING DIFFICULT THING TO DO IN THE ORIGINAL APP TOO

License

Notifications You must be signed in to change notification settings

spacewalkingninja/sqlite-web-NOT-SHIT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqlite-web is a web-based SQLite database browser written in Python.

Project dependencies:

Installation

$ pip install git+https://github.com/spacewalkingninja/sqlite-web-NOT-SHIT@master

Usage

$ sqlite_web /path/to/database.db

Developer Fast Re-install to make edits easy:

$ python3 -m pip uninstall sqlite_web -y && python3 -m pip install git+https://github.com/spacewalkingninja/sqlite-web-NOT-SHIT@master && sqlite_web ./*.sql -p 4200 -H 0.0.0.0

Features

  • 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.

AND NOW BY FUCKING MAKING A GOOD PIECE OF SOFTWARE U CAN ADD OR EDIT OR DELETE ROWS FROM THE TABLES! With love, spacewalkingninja!

Screenshots

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:

Command-line options

The syntax for invoking sqlite-web is:

$ 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.
  • -P, --password: prompt for password to access sqlite-web. Alternatively, the password can be stored in the "SQLITE_WEB_PASSWORD" environment variable, in which case the application will not prompt for a password, but will use the value from the environment.
  • -r, --read-only: open database in read-only mode.
  • -e, --extension: path or name of loadable extension(s). To load multiple extensions, specify -e [path] for each extension.
  • -u, --url-prefix: URL prefix for application, e.g. "/sqlite-web".
  • -c, --cert and -k, --key - specify SSL cert and private key.
  • -a, --ad-hoc - run using an ad-hoc SSL context.

Using docker

A Dockerfile is provided with sqlite-web. To use:

$ cd docker/  # Change dirs to the dir containing Dockerfile
$ docker build -t coleifer/sqlite-web .
$ docker run -it --rm \
    -p 8080:8080 \
    -v /path/to/your-data:/data \
    -e SQLITE_DATABASE=db_filename.db \
    coleifer/sqlite-web

About

Web-based SQLite database browser written in Python THAT CAN FUCKING PUT A FUCKING NEW FUCKING RECORD IN A FUCKING SQLITE DB AS IF IT WAS A FUCKING DIFFICULT THING TO DO IN THE ORIGINAL APP TOO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 49.3%
  • HTML 44.7%
  • CSS 5.1%
  • Other 0.9%