用Python编写基于Web的SQLite数据库浏览器:sqlite-browser

jopen 7年前

用Python编写基于Web的SQLite数据库浏览器:sqlite-browser
sqlite-browser是一个用Python编写基于Web的SQLite数据库浏览器。

项目依赖

安装:

$ pip install sqlite-browser flask peewee

使用:

$ sqlite_browser /path/to/database.db

特性:

  • 可用于您现有的SQLite数据库,或者可以用来创建新的数据库
  • Add or drop:
    • Tables
    • Columns (yes, you can drop and rename columns!)
    • Indexes
    </li>
  • 导出数据成JSON或CSV.
  • 导入JSON 或CSV 文件.
  • 浏览表中的数据。
  • </ul>

    截屏

    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:



    项目主页:http://www.open-open.com/lib/view/home/1415511633637