Skip to main content

A template for python package developement inside a docker container

Requirements

  • Docker

How to use

Initial setup

  • Clone repo
  • Change name
  • Change App folder name to package name
  • Re-initialize git:
    • rm -rf .git
    • git init
  • Edit pyproject.toml as required
  • Edit requirements.txt if additional python packages should be included in docker image. Note that packages required for distribution of the python packages should be instead added to pyproject.toml
  • Edit .pre-commit-config.yaml to add/remove pre-commit hooks

Developing

  • Start container with ./start_dev.sh
  • [First time only, install pre-commit hooks with pre-commit install]
  • [Update pre-commit hooks wiht pre-commit autoupdate]
  • Files can be edited from outside the container (i.e. the entire folder is mounted inside the running docker container under /App)
  • Run git from inside container
  • Install and test package from insider container (e.g. pip install -e . or pip install .)
  • If needed a clean rebuild can be forced by ./stop_dev.sh

What's included

  • Python 3.13 (can be changed from Dockerfile)
  • User inside container will be automatically set to the user launching start_docker.sh
  • Git user.email and user.name will be automatically set to the defined outside the container
  • Pre-commit hooks:
    • trailing-whitespace
    • end-of-file-fixer
    • check-yaml
    • check-added-large-files
    • check-docstring-first
    • autoflake
    • isort
    • docformatter
    • black
    • flake8
  • GPL3 license

Metadata

Release files for ms-qc-tools 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ms-qc-tools 0.1.0
File Size Uploaded Provenance Actions
ms_qc_tools-0.1.0.tar.gz 43.7 kB Without provenance Details for ms_qc_tools-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ms-qc-tools 0.1.0
File Interpreter ABI Platform Actions
ms_qc_tools-0.1.0-py3-none-any.whl Python 3 none any Details for ms_qc_tools-0.1.0-py3-none-any.whl

Total release size: 97.4 kB

Release files / ms_qc_tools-0.1.0.tar.gz

Download URL ms_qc_tools-0.1.0.tar.gz
Size 43.7 kB
Tags Source
SHA-256 checksum
How to use checksums
716024eb1482d82e018e18080d49919abc8201e6c72ef811624ccf0583d6c983
BLAKE2b-256 checksum
How to use checksums
1f8cdccb3ff31d4a8c73f67bfec30a60a7b1aaa0a2111caefdcaba7ed085c96b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / ms_qc_tools-0.1.0-py3-none-any.whl

Download URL ms_qc_tools-0.1.0-py3-none-any.whl
Size 53.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccb718296ecb08a330bf4182d4f6c122000cbaba1970d9f3bb8e746e736279e6
BLAKE2b-256 checksum
How to use checksums
366b9db8a9f6f17b84a00f15710ab8a5c536875c49065c0b5993152532fe211a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for ms-qc-tools 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page