Tag

pipdeptree

0 views collected around this technical thread.

Tencent Architect
Tencent Architect
Apr 29, 2024 · Operations

Optimizing Python Dependency Management: Refactoring pipdeptree for TencentOS

This article details the background, research, demos, discovered issues, and the comprehensive refactor of the pipdeptree tool to replace deprecated pkg_resources APIs with importlib.metadata, improving Python package dependency analysis for AI workloads in TencentOS.

Pythondependency managementimportlib
0 likes · 32 min read
Optimizing Python Dependency Management: Refactoring pipdeptree for TencentOS
Test Development Learning Exchange
Test Development Learning Exchange
Mar 13, 2024 · Backend Development

Extracting Project Dependencies and File Header Comments in Python

This guide explains how to automatically collect all third‑party modules used in a Python project—by manually inspecting imports or using tools such as pipreqs, Poetry, or pipdeptree to generate a requirements.txt file—and provides a Python script for extracting the first‑line comments from each .py file and saving them to a text file.

File CommentsPoetryautomation
0 likes · 4 min read
Extracting Project Dependencies and File Header Comments in Python