litexplore
The current options to explore remote SQLite databases require running a service on the remote and make it listen on some port. Another option is SSH'ing to the remote instance and use the SQLite CLI to explore the database. Litexplore is a Python web app that lets you explore remote SQLite databases over SSH connections without having to copy the full DB or manually use the CLI.
It works by sending commands over an SSH connection. The connection is multiplexed and it's reused to send commands. This reduces the overhead of openning a new SSH connection to send each command.
NOTE:
litexploreis still in an early beta state. It works and it's usable, but there may be signficant changes happening.
Requirements
- python 3.7 or higher
- pydantic
- fastapi
- uvicorn
- Jinja2
- python-multipart
Installation
- Create a virtual env
python3 -m venv .venv
- Activate the venv and install the dependencies
source .venv/bin/activate
python3 -m pip install litexplore
- Run the program
litexplore
- Open your browser at
http://127.0.0.1:8000
Note: even though the server uses 0.0.0.0 as the default host, open the browser at 127.0.0.1. Otherwise, cookies won't work and they're used to store the user config.
Run litexplore --help to see other available options.
Using pipx
- Install
litexplore
pipx install litexplore
- Run it:
litexplore
Usage
The main page is a form with 3 inputs.
- The first input us the SSH host name as defined in your
~/.sshconfig` - The second input is the path to an SQLite database in the remote host
- The third (optional) input is a path to an SQLite CLI. Some pre-installed sqlite3 CLIs have not been compiled
with support for the
-jsonflag, whichlitexploreuses.
How it works
See this blog post
Roadmap
See roadmap issues
Metadata
Release files for litexplore 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| litexplore-0.0.3.tar.gz | 33.5 kB | Without provenance | Details for litexplore-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| litexplore-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for litexplore-0.0.3-py3-none-any.whl |
Total release size: 68.1 kB
Release files / litexplore-0.0.3.tar.gz
| Download URL | litexplore-0.0.3.tar.gz |
|---|---|
| Size | 33.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
190ba9e431b86138b8c08767417ee4b27901b79d708469cacf01c0c20b76a673
|
|
BLAKE2b-256 checksum How to use checksums |
6100e6ffb18ea7382a8e59ca817f23a763985794420f7039ab7df6589763ccd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / litexplore-0.0.3-py3-none-any.whl
| Download URL | litexplore-0.0.3-py3-none-any.whl |
|---|---|
| Size | 34.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d35bf954ba91b1ee24b7a577900b176f17082ef8db8936de87a84f60cb8d8d63
|
|
BLAKE2b-256 checksum How to use checksums |
3ecf03bdbdf696ec9cec8a84d0b260e985d1e99d51850092add41c7a993bce8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for litexplore 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.