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.1

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.1
File Size Uploaded Provenance Actions
ms_qc_tools-0.1.1.tar.gz 43.9 kB Without provenance Details for ms_qc_tools-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 97.9 kB

Release files / ms_qc_tools-0.1.1.tar.gz

Download URL ms_qc_tools-0.1.1.tar.gz
Size 43.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b9b9cda02c25fdb265980ba141ca91a8ef4c382e1d5bf3f520e1a327fc8d14cf
BLAKE2b-256 checksum
How to use checksums
b041325e2910aab8ee154dd6764e47369ce8bef4c1d5410efc7827996513ac69
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.1-py3-none-any.whl

Download URL ms_qc_tools-0.1.1-py3-none-any.whl
Size 54.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efe9004c3bd2f2777d1123190135fcd0fb9c08ffe96ff2dbbdbc606f3df3034c
BLAKE2b-256 checksum
How to use checksums
25f066ec4be1dfabcdc201fba8aad7a3076ef1f665cbe4762556c768837e2f6d
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.1

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