简体   繁体   English

使用SQLAlchemy和wxPython的桌面应用程序的项目结构

[英]Project structure for desktop applications using SQLAlchemy and wxPython

I want to create a desktop application using SQLAlchemy and wxPython, but I'd like to structure the project in a way similar to django projects, using django app-like packages (related models, views and tests in the same package) and settings and main module in the root directory. 我想使用SQLAlchemy和wxPython创建一个桌面应用程序,但是我想以类似于django项目的方式构建项目,使用django app-like包(相同模型,视图和测试在同一个包中)和设置,以及根目录中的主模块。

I'd like to know if that is a good structure and how to do that minimizing coupling between packages. 我想知道这是否是一个很好的结构,以及如何最大限度地减少包之间的耦合。

You can certainly do it that way. 你当然可以这样做。 I recently started a project with another fellow to demonstrate one way to do just this sort of thing. 我最近与另一位研究员开始了一个项目,展示了一种方法来做这种事情。 You're welcome to take a look at how we separate all this stuff out here: https://bitbucket.org/driscollis/medialocker 欢迎您来看看我们如何将所有这些内容分开: https//bitbucket.org/driscollis/medialocker

It's gotten a little abstract, but I think you can still use it as a model anyway. 它有点抽象,但我认为无论如何你仍然可以用它作为模型。 Hope that helps! 希望有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用wxpython构建独立的桌面GUI应用 - Building standalone desktop GUI app using wxpython 如何调试wxpython应用程序? - How to debug wxpython applications? 如何正确构造SQLAlchemy(声明式)python项目及其单元测试 - How to correctly structure SQLAlchemy (declarative style) python project and it`s unittests 为什么wxPython应用程序启动缓慢? - Why wxPython applications are slow to start? 如何使用三个使用通用模块的应用程序构建python项目 - How to structure a python project with three applications that use common module 是否可以使用Python与基于GUI的桌面应用程序进行交互,以及如何进行交互? - Is it possible to interact with GUI-based desktop applications using Python, and how? 适用于桌面应用程序的灵活DBMS? - Flexible DBMS for desktop applications? 对如何构建 GUI(wxpython)感到困惑 - Confused on how to structure the GUI (wxpython) 在SQLAlchemy中使用正确的文件结构以及如何向db添加数据 - Using proper file structure with SQLAlchemy and how to add data to db 使用关联代理对象进行定位的SQLAlchemy有序树结构 - SQLAlchemy ordered tree structure using association proxy object for positioning
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM