Skip to content
techMEDIUM2026-05-11 09:57 UTC

How to write and publish a Python package to PyPI

I wanted to publish my Scrapy download handler to PyPi - UV made it incredibly easy. Here's how. At some point, every scraping developer writes the same middleware twice. The first time is in project A. It works well, so when project B comes along you copy it across. Then project C. Then a colleague

ADVERTISEMENT
⚡ STAY AHEAD

Events like this, convergence-verified across 689 sources, land in your inbox every Sunday. Free.

GET THE SUNDAY BRIEFING →

RELATED · tech