~/talk

How to give your Python code to someone else

Talkat PyCon US 2026 · 2026-05-13..05-19· [developer-experience]
slides:none on file

Clear, practical survey of how to actually get Python code into other people’s hands: use script metadata via PEP 723 and runners like uv run to auto-create venvs for single-file scripts; use project metadata in pyproject.toml (PEP 621) and entry points or pipx for installable tools; for non‑Python users bundle into native installers or single artifacts with PyInstaller/PyOxidizer or, more fully featured, Briefcase, which builds MSI/DMG/RPM/Flatpak/AppImage and iOS/Android bundles, handles signing and CI/Docker builds, but requires platform‑specific build hosts and yields ~15–16 MB minimal binaries (strippable to ~7–8 MB).

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Python code sharing challenges
  3. 3:13PEP 723 for script metadata
  4. 5:20Refactoring for sharing
  5. 7:26PEP 621 project metadata
  6. 9:10Packaging without Git or zip
  7. 11:15Python runtime dependency issues
  8. 14:44Single-file executables limits
  9. 17:53Redistributable artifacts
  10. 20:00Briefcase cross-platform
  11. 25:57Choosing distribution method
  12. 27:22Q&A: Cross-platform size
  13. 29:29Q&A: Executable restrictions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.