当前位置: 首页 > 软件库 > Web应用开发 > Web框架 >

python-project-template

授权协议 Unlicense License
开发语言 Python
所属分类 Web应用开发、 Web框架
软件类型 开源软件
地区 不详
投 递 者 缑泓
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Python Project Template

A low dependency and really simple to start project template for Python Projects.

See also

  • Flask-Project-Template for a full feature Flask project including database, API, admin interface, etc.
  • FastAPI-Project-Template The base to start an openapi project featuring: SQLModel, Typer, FastAPI, JWT Token Auth, Interactive Shell, Management Commands.

HOW TO USE THIS TEMPLATE

DO NOT FORK this is meant to be used from Use this template feature.

  1. Click on Use this template
  2. Give a name to your project
    (e.g. my_awesome_project recommendation is to use all lowercase and underscores separation for repo names.)
  3. Wait until the first run of CI finishes
    (Github Actions will process the template and commit to your new repo)
  4. If you want codecov Reports and Automatic Release to PyPI
    On the new repository settings->secrets add your PIPY_API_TOKEN and CODECOV_TOKEN (get the tokens on respective websites)
  5. Read the file CONTRIBUTING.md
  6. Then clone your new project and happy coding!

NOTE: WAIT until first CI run on github actions before cloning your new project.

What is included on this template?

  • ��️ Templates for starting multiple application types:
    • Basic low dependency Python program (default) use this template
    • Flask with database, admin interface, restapi and authentication use this template.or Run make init after cloning to generate a new project based on a template.
  • �� A basic setup.py file to provide installation, packaging and distribution for your project.
    Template uses setuptools because it's the de-facto standard for Python packages, you can run make switch-to-poetry later if you want.
  • �� A Makefile with the most useful commands to install, test, lint, format and release your project.
  • �� Documentation structure using mkdocs
  • �� Auto generation of change log using gitchangelog to keep a HISTORY.md file automatically based on your commit history on every release.
  • �� A simple Containerfile to build a container image for your project.
    Containerfile is a more open standard for building container images than Dockerfile, you can use buildah or docker with this file.
  • �� Testing structure using pytest
  • Code linting using flake8
  • �� Code coverage reports using codecov
  • ��️ Automatic release to PyPI using twine and github actions.
  • �� Entry points to execute your program using python -m <project_name> or $ project_name with basic CLI argument parsing.
  • �� Continuous integration using Github Actions with jobs to lint, test and release your project on Linux, Mac and Windows environments.

Curious about architectural decisions on this template? read ABOUT_THIS_TEMPLATE.md
If you want to contribute to this template please open an issue or fork and send a PULL REQUEST.

❤️ Sponsor this project


project_name

project_description

Install it from PyPI

pip install project_name

Usage

from project_name import BaseClass
from project_name import base_function

BaseClass().base_method()
base_function()
$ python -m project_name
#or
$ project_name

Development

Read the CONTRIBUTING.md file.

  • ==================== python-docx-template Use a docx as a jinja2 template Introduction This package uses 2 major packages : python-docx for reading, writing and creating sub documents jinja2 for manag

  • python项目构建 To create a project that other people can use and contribute to, you need to follow a specific directory structure. Moreover, releasing a new version should be as simple and painless as pos

  • 最近需要用python读取docx模板,然后生成一个定制化的docx文档。大概3年前用过这个库,当时忘了是在mac还是linux上安装的,没觉得难装,昨天在Windows上安装,花了不少时间,有必要记录一下。 1、首先考虑用pip安装,如果OK,就不用往下看了。 $ pip install python-docx 2、如果上述命令在执行的过程中,出现 lxml安装报错,类似于下面的错误: c:\u

  • python-docx-template Use a docx as a jinja2 template Introduction This package uses 2 major packages : python-docx for reading, writing and creating sub documents jinja2 for managing tags inserted int

  • 这周听了老师讲关于django的框架问题,第一次比较透彻的了解了mtv框架。也是第一次接触模板的概念,研究了一下,现在就记录下来好嘞。。。   首先要介绍一 I've just installed PyCharm, and have opened an existing project with multiple apps. When I open django templates, they a

  • 安装失败 C:\Users\86189\Downloads>pip install python_Levenshtein Looking in indexes: http://mirrors.aliyun.com/pypi/simple/ Collecting python_Levenshtein Downloading http://mirrors.aliyun.com/pypi/packa

 相关资料
  • fis. project fis 项目相关 Source: project.js, line 6 Members (static) getSourceByPatterns 返回项目目录下符合检索规则的文件。以 project.files 为匹配规则,project.ignore 为排除规则进行检索 Source: project.js, line 50 Methods (static) curre

  • SRS团队致力于和开源社区一起打造最牛逼的流媒体分发平台,我们很自豪能投入到SRS的开发、发布、衍生新的开源项目。 让我们一起在流媒体领域从装逼到牛逼吧~

  • 我是初学者。下面我对欧拉项目3号问题的解决方案需要很长时间才能返回答案。有人能提出改进建议吗?我做错了什么?我写了一些代码来帮助我思考这个问题的所有难题。 13195的质因数是5、7、13、29。 600851475143的最大质因数是什么?

  • Phaser 3 TypeScript Starter Template A starter template for Phaser 3 with TypeScript and webpack for building excellent html5-games that work great in the browser and on mobile devices. Key Features •

  • Project Settings You can set various application configuration parameters using a platform-agnostic configuration file, config.xml. This file is based on the W3C Packaged Web Apps (Widgets) specificat

  • Apart from various contributions, WinSCP is mostly a one-man project. The man is me, Martin Prikryl. The following is a list of project milestones. See also version history. I started the first work o