requirements.txt ↔ pyproject.toml
Clean up messy pip freeze outputs and migrate legacy Python repositories to modern pyproject.toml (uv / Poetry / Hatch / pip) packaging.
fastapi==0.115.6
httpx==0.28.1
pydantic>=2.10.0
ruff>=0.8.0
uvicorn[standard]>=0.32.0[project]
name = "reddeviloper-engine"
version = "0.1.0"
requires-python = ">=3.11"
dependencies = [
"fastapi==0.115.6",
"httpx==0.28.1",
"pydantic>=2.10.0",
"ruff>=0.8.0",
"uvicorn[standard]>=0.32.0",
]Practical Scenarios
When & Why to Use requirements.txt ↔ pyproject.toml
Modernizing Legacy Python Repositories
Convert old requirements.txt files into clean [project].dependencies arrays for uv, ruff, and PEP 621 builds.
Cleaning Duplicate & Unsorted Pins
Eliminate duplicate dependency lines and comment clutter before code reviews or Docker image builds.
Standardizing Microservice Manifests
Keep Python dependency lists deterministic so git diffs stay clean across upgrades.
Related Tools
Browse all tools.env → Wrangler TOML / JSON / Docker
Transform .env files into Cloudflare wrangler.toml [vars], JSON objects, or Docker -e CLI flags in one click.
JSON → Pydantic / Dataclass Generator
Paste any JSON API response to generate nested Pydantic v2 BaseModel, @dataclass, or TypedDict schemas automatically.
Python Security & Automation Cookbook
Copy-ready Python 3.11+ patterns for TLS expiry checks, async port checks, SHA-256 hashing, safe subprocesses, and retries.