Tagged articles
6 articles
Page 1 of 1
Code Mala Tang
Code Mala Tang
Oct 26, 2025 · Backend Development

Auto‑Clean Python Dependencies with pipreqs and Pre‑Commit

Learn how to automatically remove unused Python packages from your virtual environment by generating an accurate requirements.txt with pipreqs and enforcing clean dependencies on every commit using a pre‑commit hook, improving build size, speed, and security.

dependency-cleanuppipreqspre-commit
0 likes · 5 min read
Auto‑Clean Python Dependencies with pipreqs and Pre‑Commit
AI Algorithm Path
AI Algorithm Path
Sep 21, 2025 · Fundamentals

Mastering Python Virtual Environments: A Step‑by‑Step Guide

This article explains why Python virtual environments are essential for avoiding dependency conflicts, walks through creating and activating a venv, demonstrates installing, listing, and removing packages with pip, and shows how to manage requirements with a requirements.txt file.

Pythondependency managementpip
0 likes · 8 min read
Mastering Python Virtual Environments: A Step‑by‑Step Guide
Code Mala Tang
Code Mala Tang
Apr 20, 2025 · Backend Development

Poetry vs requirements.txt: Which Python Dependency Tool Wins?

Poetry is a modern Python dependency and packaging tool that consolidates environment management, dependency resolution, and publishing, offering deterministic builds and integrated workflows, while requirements.txt provides a simple, widely compatible list of packages; the article compares their features, advantages, limitations, and demonstrates usage, including Docker integration.

DockerPoetryPython
0 likes · 14 min read
Poetry vs requirements.txt: Which Python Dependency Tool Wins?
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.

AutomationFile CommentsPoetry
0 likes · 4 min read
Extracting Project Dependencies and File Header Comments in Python
Python Programming Learning Circle
Python Programming Learning Circle
Jan 6, 2024 · Fundamentals

10 Practical pip Tips for Managing Python Packages

This article introduces ten essential pip techniques—including installation, upgrading, version-specific installs, uninstalling, checking dependencies, using domestic mirrors, downloading without installing, and batch installing from requirements files—to help Python developers efficiently manage their packages.

InstallationPythonmirrors
0 likes · 6 min read
10 Practical pip Tips for Managing Python Packages
Test Development Learning Exchange
Test Development Learning Exchange
Mar 11, 2019 · Backend Development

How to Generate requirements.txt Using pip freeze and pipreqs

This guide explains two methods for creating a Python project's requirements.txt file—using pip freeze within a virtualenv and using the pipreqs tool to automatically scan source code—highlighting their commands, advantages, and the need for manual verification of the generated dependencies.

Pythondependency managementpip
0 likes · 3 min read
How to Generate requirements.txt Using pip freeze and pipreqs