Pipe library / pypi-releases
pypi-releases
New PyPI releases for a project, from the official project RSS feed.
Developer monitoring
pypi.org
CLI
pipes run examples/pypi-releases.pipe.yaml
MCP call
{
"name": "pipe__pypi-releases",
"arguments": {}
}
Pipe file
examples/pypi-releases.pipe.yaml
pipes: 0
name: pypi-releases
version: 0.1.0
description: New PyPI releases for a project, from the official project RSS feed.
permissions:
network: [pypi.org]
inputs:
type: object
properties:
project:
type: string
pattern: "^[A-Za-z0-9_.-]+$"
default: sampleproject
required: [project]
outputs:
type: object
properties:
text: { type: string }
count: { type: integer }
required: [text, count]
output:
text: "${steps.format.text}"
count: "${steps.format.count}"
steps:
- id: fetch
block: fetch_http
with:
url: "https://pypi.org/rss/project/${inputs.project}/releases.xml"
max_bytes: 400000
retry: { max: 2, backoff_ms: 500 }
timeout_ms: 15000
- id: entries
block: parse_rss
in: "${steps.fetch}"
- id: capped
block: limit
in: "${steps.entries}"
with: { n: 15 }
- id: new
block: diff_since_last
in: "${steps.capped}"
with:
key: [id]
compare: [id]
emit: [added]
first_run: all
- id: format
block: format
in: "${steps.new}"
with:
header: "PyPI releases:\n"
item_template: "- ${item.title} ${item.link}"
separator: "\n"
- id: print
block: emit_stdout
in: "${steps.format.text}"
with: { format: text }