Other

项目介绍

explorerhq/sql-explorer 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 Other 许可证,目前获得 2.9k 个 Star、373 次 Fork。

仓库全名
explorerhq/sql-explorer
开源许可证
Other
Star 数
2.9k
Fork 数
373
未关闭 Issue
49

README 摘要

:alt: Documentation Status :target: https://pypi.python.org/pypi/django-sql-explorer/ :alt: Latest Version :target: https://pypi.python.org/pypi/django-sql-explorer/ :alt: Downloads :target: https://pypi.python.org/pypi/django-sql-explorer/ :alt: License SQL Explorer ============ Official Website Live Demo Documentation Video Tour .. |inline-image| image:: https://sql-explorer.s3.amazonaws.com/video-thumbnail.png…

完整内容见 GitHub 原始 README 或本页 。

常见问题

sql-explorer 用什么语言开发?

主要使用 Python 编写,采用 Other 许可证,目前有 2.9k 个 Star。

sql-explorer 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 sql-explorer 的源码?

可以直接克隆仓库:git clone https://github.com/explorerhq/sql-explorer.git,默认分支为 master;安装与运行步骤见仓库 README。

sql-explorer 最近还在维护吗?

仓库最近一次更新为 1 周前,当前有 49 个未关闭 Issue;Star 数为 2.9k,可作为社区活跃度的参考。

简要分析

热度分
3684
价值分
1841
活跃状态
活跃

语言占比

CSS
Dockerfile
HTML
JavaScript
Python
SCSS
Shell

Release

README

… image:: https://readthedocs.org/projects/django-sql-explorer/badge/?version=latest :target: https://django-sql-explorer.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

… image:: http://img.shields.io/pypi/v/django-sql-explorer.svg?style=flat-square :target: https://pypi.python.org/pypi/django-sql-explorer/ :alt: Latest Version

… image:: http://img.shields.io/pypi/dm/django-sql-explorer.svg?style=flat-square :target: https://pypi.python.org/pypi/django-sql-explorer/ :alt: Downloads

… image:: http://img.shields.io/pypi/l/django-sql-explorer.svg?style=flat-square :target: https://pypi.python.org/pypi/django-sql-explorer/ :alt: License

SQL Explorer

  • Official Website <https://www.sqlexplorer.io/>_
  • Live Demo <https://demo.sqlexplorer.io/>_
  • Documentation <https://django-sql-explorer.readthedocs.io/en/latest/>_

Video Tour

… |inline-image| image:: https://sql-explorer.s3.amazonaws.com/video-thumbnail.png :target: https://sql-explorer.s3.amazonaws.com/Sql+Explorer+5.mp4 :height: 10em

|inline-image|

Quick Start

Included is a complete test project that you can use to kick the tires.

  1. Run docker compose up
  2. Navigate to 127.0.0.1:8000/explorer/
  3. log in with admin/admin
  4. Begin exploring!

This will also run a Vite dev server with hot reloading for front-end changes.

About

SQL Explorer aims to make the flow of data between people fast, simple, and confusion-free. It is a Django-based application that you can add to an existing Django site, or use as a standalone business intelligence tool. It will happily connect to any SQL database that Django supports <https://docs.djangoproject.com/en/5.0/ref/databases/>_ as well as user-uploaded CSV, JSON, or SQLite databases.

Quickly write and share SQL queries in a simple, usable SQL editor, view the results in the browser, and keep the information flowing.

Add an OpenAI (or other provider) API key and get an LLM-powered SQL assistant that can help write and debug queries. The assistant will automatically add relevant context and schema into the underlying LLM prompt.

SQL Explorer values simplicity, intuitive use, unobtrusiveness, stability, and the principle of least surprise. The project is MIT licensed, and pull requests are welcome.

Some key features include:

  • Support for multiple connections, admin configured or user-provided.
  • Users can upload and immediately query JSON or CSV files.
  • AI-powered SQL assistant
  • Quick access to schema information to make querying easier (including autocomplete)
  • Ability to snapshot queries on a regular schedule, capturing changing data
  • Query history and logs
  • Quick in-browser statistics, pivot tables, and scatter-plots (saving a trip to Excel for simple analyses)
  • Parameterized queries that automatically generate a friendly UI for users who don’t know SQL
  • A playground area for quickly running ad-hoc queries
  • Send query results via email
  • Saved queries can be exposed as a quick-n-dirty JSON API if desired
  • …and more!

Screenshots

Writing a query and viewing the schema helper

… image:: https://sql-explorer.s3.amazonaws.com/5.0-query-with-schema.png


Using the SQL AI Assistant

… image:: https://sql-explorer.s3.amazonaws.com/5.0-assistant.png


Viewing all queries

… image:: https://sql-explorer.s3.amazonaws.com/5.0-query-list.png


Query results w/ stats summary

… image:: https://sql-explorer.s3.amazonaws.com/5.0-query-results.png


Pivot in browser

… image:: https://sql-explorer.s3.amazonaws.com/5.0-pivot.png


View logs

… image:: https://sql-explorer.s3.amazonaws.com/5.0-querylogs.png

评论

暂无评论