Daily Shaarli

All links of one day in a single page.

August 20, 2023

Document docker poetry best practices · python-poetry · Discussion #1879 · GitHub

Good discussion and examples on best practices for building/delivering python poetry projects with Docker: Dockerfile tips, which command line arguments/ env vars to use for poetry, and how to approach multi-stage builds.

Python and Poetry on Docker - Baptiste Maingret’s Homepage

Build a multi-stage Docker image from official Python images with support for Poetry projects.

A good (concise) example of multi-stage dockerizing if you already somewhat know about basic docker concepts.

beartype/beartype

'Static' and very low-overhead type checking for Python. Uses the standard python type hints, requires a simple decorator and will crash the program if inputs do not fit types hinted.