命令行python程序的浏览器界面

时间:2020-12-13 00:12:31

I have a command line tool that I have written (in Python) that interfaces to a SQLite database (one DB per user). This program presents a lot of data to the user which can be cumbersome in a terminal.

我有一个命令行工具,我已经编写(在Python中)与SQLite数据库(每个用户一个DB)的接口。该程序向用户呈现了许多数据,这在终端中可能是麻烦的。

One option is to provide a wxPython interface, but another thought is to leverage Firefox or Webkit to provide an interface.

一种选择是提供wxPython接口,但另一种想法是利用Firefox或Webkit提供接口。

Anyone ever go about something like this? Or else any very easy ways to add graphical interfaces to manipulate large amounts of data in python programs? Thanks!

有人这样做过吗?或者是否有任何非常简单的方法来添加图形界面来操纵python程序中的大量数据?谢谢!

2 个解决方案

#1


The django automatic admin interface (you can use legacy DBs, and sqlite), or databrowse application are worth considering as easy, (almost) no-coding web interfaces.

django自动管理界面(您可以使用旧版DB和sqlite)或数据库应用程序值得考虑作为简单,(几乎)无编码的Web界面。

#2


You might also look at Qt's model/view framework. It's trivial to take a SQL result set and map it into a table view etc...

您还可以查看Qt的模型/视图框架。获取SQL结果集并将其映射到表视图等等是微不足道的......

http://doc.trolltech.com/4.5/sql-tablemodel.html

This works quite well from PyQt4 also.

这也适用于PyQt4。

#1


The django automatic admin interface (you can use legacy DBs, and sqlite), or databrowse application are worth considering as easy, (almost) no-coding web interfaces.

django自动管理界面(您可以使用旧版DB和sqlite)或数据库应用程序值得考虑作为简单,(几乎)无编码的Web界面。

#2


You might also look at Qt's model/view framework. It's trivial to take a SQL result set and map it into a table view etc...

您还可以查看Qt的模型/视图框架。获取SQL结果集并将其映射到表视图等等是微不足道的......

http://doc.trolltech.com/4.5/sql-tablemodel.html

This works quite well from PyQt4 also.

这也适用于PyQt4。