Skip to content

Instantly share code, notes, and snippets.

View PidgeyBE's full-sized avatar

PidgeyBE

View GitHub Profile
@PidgeyBE
PidgeyBE / pypi_latest_changes.py
Last active September 8, 2022 08:42
Investigate pip dependency updates
# This script ingests a requirements.txt file (e.g. as output of `pip freeze`)
# For every requirement, the latest version on pypi.org is fetched
# The results are sorted and printed
# This script was made because Python ecosystems often break because of unpinned
# dependencies. This script allows to investigate which of your dependencies have
# changed recently...
from datetime import datetime
from typing import Optional