PyPI In a box: Using a Raspberry Pi as a portable PyPI server
summary
A Raspberry Pi hosts a selective mirror of PyPI (over ~400,000 packages on record) so attendees can pip install from a local HTTP index; the setup uses mini-repo to download specific wheels, pypi-server to index them, and nginx as a reverse proxy/cache, with hostapd and dnsmasq providing a hotspot/DHCP/DNS. The device serves live meetups (roughly 30 devices tested), runs ~2 hours on a battery pack for the shown model, and is proven usable for workshops and offline installs.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 3:38Zimbabwe Python challenges
- 5:25Raspberry Pi PyPI server
- 7:59Why local PyPI mirror
- 9:05Setup PyPI on Raspberry Pi
- 12:34Offline package network
- 14:21Install packages offline
- 15:34Beyond Python packages
- 16:59Q&A: Caching and mirror
- 18:23Q&A: Network and DNS
- 19:11Q&A: Local hosting and battery
- 20:17Q&A: Social impact
- 22:49Q&A: Productizing for events
- 23:54Q&A: Alternative projects
- 24:57Q&A: User-friendly setup
related talks
34mdevpi: Your One Stop Cheese Shop
40mHost your own PyPI
24mBuilding a Sustainable Python Package Index
31mDevpi for teams
35mImproving CI/CD Process for Cloud Native Python Applications with PyPI Cloud
01h 04mLightning Talks
35mPhysical computing with Python and Raspberry Pi
30mBuilding versatile operating setups for real world use and testing with Python and the Raspberry Pi
