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.4.tar.gz (3.5 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.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ipptemplate-0.1.4.tar.gz
  • Upload date:
  • Size: 3.5 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.4.tar.gz
Algorithm Hash digest
SHA256 e2638a1d107e254c6dda1f1e655c4734b54e3a024417f939fb45dfa39594b35c
MD5 fae1c7a0c50519321b10df0d0178311c
BLAKE2b-256 f9d1df0186f36b0404c16d18cbefc0461c0424c28f00f01cefed104dbdea877b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ipptemplate-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c342d2c0c4e82dbcd6a5136c3e6995d3f69e81d0fd46252a2d339ce9c0108aba
MD5 ae0a1f66d73d2da2f40d76496bf9abe4
BLAKE2b-256 ad9061e9260f48adf90e09ac5cce0dcf39ee56a81a0591df4110517460201e79

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