{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"}],"enrichment":{"capability":"Parses and manipulates Dockerfile files programmatically, allowing you to read, analyze, and modify Dockerfile structure and content through a Python API.","skillfed_tags":["dockerfile","container-build","parsing"],"use_cases":["Extract base image, labels, and user directives from existing Dockerfiles for inventory or compliance auditing","Programmatically update a Dockerfile's base image across a fleet of build configurations","Validate Dockerfile structure and syntax before passing it to a build system","Generate or transform Dockerfiles in build automation tools that need to inject environment variables or change layers"],"what_it_does":"dockerfile-parse is a Python library that reads and parses Dockerfile files into a structured representation, exposing properties like base image, labels, and user directives for programmatic inspection and modification. It has no runtime dependencies and supports Python 3.6 through 3.11, making it lightweight to integrate into build tooling, container orchestration systems, or CI/CD pipelines that need to reason about or rewrite Dockerfiles.\n\nThe library is in Production/Stable status and has been maintained since 2015, though recent activity is minimal. It is suitable for tasks like extracting metadata from Dockerfiles, validating structure, or generating modified versions with updated base images or labels. The permissive BSD license allows use in both open and closed projects.","worth_installing":"Yes, if you need to parse or modify Dockerfiles in Python code. Low install friction, no dependencies, and stable API make it a straightforward choice for build tooling. Dormant maintenance is acceptable for a mature, narrow-scope library, but verify that its parser handles your target Dockerfile syntax before committing to it in a critical pipeline."},"id":"dockerfile-parse","links":{"html":"https://skillfed.io/packages/dockerfile-parse","md":"https://skillfed.io/packages/dockerfile-parse.md","pypi":"https://pypi.org/project/dockerfile-parse/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-07-18","license_spdx":null,"license_treatment":"permissive","name":"dockerfile-parse","python_support":"supports_current","summary":"Python library for Dockerfile manipulation"},"popularity":{"monthly_downloads":11634782,"position":1375,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.0.1"}
