Skip to content
BEAD

Python requirements.txt Parser

Parse pip requirements with extras, markers, editable installs, and URL pins. Validate PEP 440 and reformat.

Lines
16
Packages
6
Issues
0
KindNameSpecifier / targetExtras / markerNote
CommentWeb frameworkWeb framework
Packagefastapi>=0.110,<1.0
Packageuvicorn==0.30.1[standard]
CommentDataData
Packagerequests==2.32.0pinned for compat
Packagepydantic>=2.6
Packagesqlalchemy>=2.0 ; python_version >= "3.9"
CommentDevDev
Include filedev-requirements.txt
Editable./local-pkg
CommentDirect URLDirect URL
URL installtorchhttps://download.pytorch.org/whl/cpu/torch-2.1.0%2Bcpu-cp311-cp311-linux_x86_64.whl
Normalized, sorted, deduped
</>Use this tool programmaticallycurl · JavaScript · MCP

Same tool, callable from any HTTP client or from Claude (via MCP). Anonymous: 100 req/day per IP. Sign up for 1,000 req/day.

curl
curl https://api.b-e-a-d.com/tools/requirements-txt-parser/run \
  -H "Content-Type: application/json" \
  -d '{
  "input": "your input here"
}'
JavaScript (fetch)
const res = await fetch("https://api.b-e-a-d.com/tools/requirements-txt-parser/run", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "input": "your input here"
}),
});
const data = await res.json();
console.log(data.result);
MCP (Claude Desktop / Claude Code)
# In Claude Desktop / Claude Code, add to your MCP config:
{
  "mcpServers": {
    "bead": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.b-e-a-d.com"]
    }
  }
}

# Then ask Claude to call:
mcp__bead__bead_requirements_txt_parser

Full reference: developer docs · OpenAPI spec

What gets parsed

  • Plain requirements: requests==2.32.0
  • Extras: uvicorn[standard]>=0.30,<1.0
  • Environment markers: ; python_version < "3.11"
  • Comments (# …) and blank lines
  • Editable installs (-e ./pkg) and nested files (-r dev.txt)
  • URL installs (git+https://…, direct wheel URLs)

Output

A structured table plus a normalized, sorted, deduped reformatted requirements.txt.

You might also like

Used in these workflows