A Flask-based web dashboard for SQLite database query and management
Project description
SQLite Opus
A Flask-based web dashboard for SQLite database query and management.
Installation
pip install sqlite-opus
Or install from source:
git clone https://github.com/hungle00/sqlite-opus.git
cd sqlite-opus
pip install -e .
Quick Start
SQLite Opus can be used as a library, similar to Flask-MonitoringDashboard:
from flask import Flask
import sqlite_opus as dashboard
app = Flask(__name__)
# Bind the dashboard to your Flask app
dashboard.bind(app)
# The dashboard will be available at http://localhost:5000/sqlite-opus
app.run()
Screenshots
Dashboard: tables list, table schema viewer, and SQL query editor with results.
Configuration
You can customize the dashboard configuration:
import sqlite_opus as dashboard
# Option 1: Configure before binding
dashboard.config.url_prefix = "my-dashboard"
dashboard.config.max_query_results = 500
dashboard.bind(app)
# Option 2: Configure during binding
dashboard.bind(
app,
url_prefix="my-dashboard",
max_query_results=500,
enable_cors=True
)
Configuration Options
url_prefix: URL prefix for dashboard routes (default:"sqlite-opus")max_query_results: Maximum number of query results to return (default:1000)query_results_per_page: Rows per page for paginated SELECT results (default:50)enable_cors: Enable CORS support (default:True)
Features
- Web-based SQLite Query Interface: Execute SQL queries through a web dashboard
- Database Connection Management: Connect to and disconnect from SQLite databases
- Table Schema Viewer: View table structures and schemas
- Query Results Display: View query results in a formatted table with pagination (powered by the paginate library)
Development
Setup Development Environment
# Create virtual environment
python3.10 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install in development mode with dev dependencies
pip install -e ".[dev]"
Requirements
- Python >= 3.10
- Flask >= 2.3.0
- Flask-CORS >= 4.0.0 (optional, for CORS support)
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqlite_opus-0.2.1.tar.gz.
File metadata
- Download URL: sqlite_opus-0.2.1.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3e6c7a98e9127bc483b90864b4d9e24aa1d5b2640412baa5c2241a1370c4da5
|
|
| MD5 |
a476ff8a51aea75d2ffae1531a191d6b
|
|
| BLAKE2b-256 |
77ca3cdcd33209e563e39db2826faadbc36b213fd5fee027d94538a6d940c05a
|
File details
Details for the file sqlite_opus-0.2.1-py3-none-any.whl.
File metadata
- Download URL: sqlite_opus-0.2.1-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f82ddef1701e9380a6020063f14eeaf198a653bc19aecb6091d6dc0a02285eb1
|
|
| MD5 |
70898380467023517127adb880b3a07d
|
|
| BLAKE2b-256 |
36729f8e9b2bf5f61ebf06ec7025cb5e23fcb84e4a5ab51ff573f0d079ffb4d7
|