有哪些好的 python 库可以满足以下需求?

发布于 2024-08-05 20:39:12 字数 315 浏览 4 评论 0原文

什么是满足以下需求的优秀 python 库:

  • MVC
  • 域抽象
  • 数据库抽象
  • 视频库(仅用于创建缩略图)

我已经知道 SQLAlchemy 对于数据库抽象非常有用,因此除非您想建议一个更好的库,否则不要费心使用它。

编辑:提及这似乎很愚蠢,但我谈论的是 GUI 的 MVC,而不是 Web,只是为了澄清而提及

编辑: MVC 部分也包含 GUI 部分或者我可以使用像 PyQt 这样的单独的 GUI 库吗

What are good python libraries for the following needs:

  • MVC
  • Domain Abstraction
  • Database Abstraction
  • Video library (just to create thumbnails)

I already know that SQLAlchemy is really good for Database Abstraction so don't bother with it unless you want to suggest a better one.

Edit: This might seem stupid to mention but I'm talking about MVC for GUI and not for web, just mentioning for clarification

Edit: Also does the MVC part contain GUI part or can I use a separate library for GUI like PyQt

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

魔法少女 2024-08-12 20:39:12

您是否尝试过 wxWidgets(事实上,wxPython)?

它有很好的文档(这总是一件好事),并且允许以 MVC 方式创建代码。它只是 GUI 库,但允许一些简单的图像操作(如果它不够好,请尝试使用 Python 版本的 ImageMagick)。它使用本机控件,因此应用程序在其运行的操作系统上看起来是本机的。

另一方面, PyQt 拥有比 wxWidgets 或 wxPython 更好的文档,但我永远无法习惯其 GUI 的外观和感觉(它是自定义的,因此在任何操作系统上看起来都不是原生的)。由于 Riverbankcomputing 无法与诺基亚就许可证达成一致,诺基亚启动了一个名为 PySide 的项目,该项目是 Qt 的 LGPL 版本 -绑定。预计将于 2010 年初完成。

Have you tried wxWidgets (well, wxPython in fact)?

It has nice documentation (which is always a good thing), and allows creating code in MVC manner. It's just the GUI library, but allows some simple image manipulation (if it's not good enough for you try using Python version of ImageMagick). It uses native controls, so the application looks native on the OS it's being ran.

PyQt on the other hand has even better docs than wxWidgets or wxPython, but I could never get used to the look&feel of its GUI (it's custom, so it doesn't look native on any OS). Because riverbankcomputing couldn't agree with nokia on a license nokia started a project called PySide which is a LGPL version of the Qt-bindings. It's supposed to be finished in early 2010.

等数载,海棠开 2024-08-12 20:39:12

django 是一个非常好的mvc框架,带有orm

django is a pretty good mvc framework with an orm

只怪假的太真实 2024-08-12 20:39:12

您可以使用 http://turbogears.org/ 。它类似于 Django,但使用“架子上的”现有模块。

TurboGears 2 建立在几个下一代 Web 框架的经验之上,包括 TurboGears 1(当然)、Django 和 Rails。所有这些框架都有局限性,这些局限性在各个方面都令人沮丧,而 TG2 就是对这种沮丧的回答。我们想要的东西具有:

  • 真正的多数据库支持
  • 水平数据分区(分片)
  • 支持各种 JavaScript 工具包和新的小部件系统,使构建 ajax 密集型应用程序变得更加容易
  • 支持多种数据交换格式。
  • 通过标准 WSGI 组件内置可扩展性

You could go with http://turbogears.org/ . Its like Django, but uses "of the shelves" existing modules.

TurboGears 2 is the built on top of the experience of several next generation web frameworks including TurboGears 1 (of course), Django, and Rails. All of these frameworks had limitations which were frustrating in various ways, and TG2 is an answer to that frustration. We wanted something that had:

  • Real multi-database support
  • Horizontal data partitioning (sharding)
  • Support for a variety of JavaScript toolkits, and new widget system to make building ajax heavy apps easier
  • Support for multiple data-exchange formats.
  • Built in extensibility via standard WSGI components
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文