Python應用程序的最佳項目結構是什麼? [關閉] - What is the best project structure for a Python application? [closed]

問題:

Imagine that you want to develop a non-trivial end-user desktop (not web) application in Python. 想象一下,您想用Python開發一個平凡的最終用戶桌面(非Web)應用程序。 What is the best way to structure the project's folder hierarchy? 構造項目文件夾層次結構的最佳方法是什麼? web

Desirable features are ease of maintenance, IDE-friendliness, suitability for source control branching/merging, and easy generation of install packages. 理想的功能是易於維護,IDE友好,適用於源代碼控制分支/合併以及易於生成安裝軟件包。 app

In particular: 尤爲是: 測試

  1. Where do you put the source? 您將源放在哪裏?
  2. Where do you put application startup scripts? 您將應用程序啓動腳本放在哪裏?
  3. Where do you put the IDE project cruft? 您將IDE項目放在哪裏?
  4. Where do you put the unit/acceptance tests? 您將單元/驗收測試放在哪裏?
  5. Where do you put non-Python data such as config files? 您將非Python數據(例如配置文件)放在哪裏?
  6. Where do you put non-Python sources such as C++ for pyd/so binary extension modules? 您將pyd / so二進制擴展模塊的非Python源代碼(例如C ++)放在哪裏?

解決方案:

參考一: https://stackoom.com/question/oFV/Python應用程序的最佳項目結構是什麼-關閉
參考二: https://oldbug.net/q/oFV/What-is-the-best-project-structure-for-a-Python-application-closed
相關文章
相關標籤/搜索