用Python編寫基于Web的SQLite數據庫瀏覽器:sqlite-browser

jopen 10年前發布 | 75K 次閱讀 數據庫管理工具 sqlite-browser

用Python編寫基于Web的SQLite數據庫瀏覽器:sqlite-browser
sqlite-browser是一個用Python編寫基于Web的SQLite數據庫瀏覽器。

項目依賴

  • flask
  • peewee
  • </ul>

    安裝:

    $ 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
    • 導出數據成JSON或CSV.
    • 導入JSON 或CSV 文件.
    • 瀏覽表中的數據。

    截屏

    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.baiduhome.net/lib/view/home/1415511633637

     

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!