Answer the question
In order to leave comments, you need to log in
Which toolbox to use for a Python application template?
I'm looking for best practices/tools/ideas to include in a Python project template.
The goal is to standardize the structure of new projects in the company.
Such a template should not be associated with any particular web platform, database, etc.
It should serve as a starting point for creating a new backend service in Python.
From my point of view, the template should include: a
basic folder structure for sources and tests
a reliable way to organize project / configuration settings a
linter / static code analyzer a code
formatting tool
scripts for local deployment and testing
documentation / auto -documentation
Please share your ideas/thoughts on what is hot right now in 2020.
Thanks
Answer the question
In order to leave comments, you need to log in
a basic folder structure for sources and tests --- this is highly dependent on the task, but as an example you can look at the structure created in django
a reliable way to organize project / configuration settings --- a separate .py or .json file.
linter / static code analyzer --- this pulls up the IDE you are working in.
code formatting tool --- IDE auto-formatting
scripts for local deployment and testing --- setup.py or any testing library from unittest plus possibly external CI.
documentation / auto-documentation --- sphinx.
There are many templates for different Python projects on Github, be it a redistributable package or a Django/Flask/... app. If different templates from wemake-services for Python packages, Django apps
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question