Skip to main content

A template package from iPP eng. GmbH

Project description

Python Project Template

A Python Template to start quickly a new project. Generate doxygen for html and latex (PDF) with single
command in the project directory with the CLI. As well an program (.exe) for Windows can be generated with
a single instruction.

Note: Section Links not working with Pycharm markdown preview.

Getting started

Make sure you have installed python on your machine. If working with vscode, see at the tasks first (ctrl+shit+P -> task). There are some automation scripts in .vscode/scripts to execute several commands. This project and the scripts are optimized for using in a virtual environment (venv). Just run task Run (main.py) and the rest will be done automatically for you (consider notification or desired actions in terminal output).

Use the appropriate task to execute commands in virtual environment, such as pip list or pip install <PACKAGE_NAME>

Create virtual environment

It is recommended to use this project in a virtual environment.

  1. Make sure you have installed virtualenv package globaly: pip install virtualenv
  2. If you're working with vsCode, run main.py from tasks, will handle all automatically. Otherwise continue with following steps.
  3. Create new folder (e.g. mkdir venv)
  4. Navigate to this folder and just type python -m venv .
  5. Then start the environment: Navigate to venv/Scripts/ and execute activate.bat

Project setup (This section is just for template documentation, delete on release)

  1. Setup the PROJECT_NAME in docs/doxyfile

Project Folder Description

Folder-Name Usage/Content
bin the executable generated with py2exe
docs doxygen documentation
src code sources, implementations & scripts

Deploy Project

If the application want to execute from everywhere, you have to generate an executable (.exe) with py2exe.

py2exe

Use py2exe to generate the executable file.
First install py2exe, then run python generate_bin.py from root folder.
This script contains following three steps:

  1. navigate to project's directory with CLI
  2. run python setup.py py2exe -d ./bin

Note: Using py2exe every "folder" (here programs) must be a package. Otherwise py2exe don't include these modules for executable file.


Generate documentation

Run doxygen in docs-folder because relative paths in doxygen-config-file are relative to the directory from which doxygen is run.
Navigate to ./docs and run just doxygen doxyfile

Edit ./docs/doxyfile and change PROJECT_NAME to the desired name.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipptemplate-0.1.8.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipptemplate-0.1.8-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file ipptemplate-0.1.8.tar.gz.

File metadata

  • Download URL: ipptemplate-0.1.8.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for ipptemplate-0.1.8.tar.gz
Algorithm Hash digest
SHA256 cddf14d5c70c8fdd8cd1ff42745fe2a36ac83f3576f58517733ce76332c2645d
MD5 76c06c2bf58f33df865e9be165f6fa1c
BLAKE2b-256 63a648cd263971e248fa240ca725a6d443eeb13042220089459955e1a1efcd3b

See more details on using hashes here.

File details

Details for the file ipptemplate-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: ipptemplate-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for ipptemplate-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fc32f7dbb5e63ea1155a3e13cfadd706b535ecc18fe880bf11d8a98a88ed2d9b
MD5 415d0a50f65a655c376a6a44f78a1511
BLAKE2b-256 7ed62a2377793735251579323a04c350de72bd237f89a04fed05b025ebe967eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page