skip to content
Pradeep Chhetri

Software Engineer. Writing about databases, infrastructure, and distributed systems.

Main navigation

  • Home
  • Blog
  • TIL
GitHub LinkedIn RSS

Python: Zip Application

October 4, 2020 · TIL

Tags:
  • python
  • zip

From Python v2.6, they added the support of allowing python interpreter to execute a zip file.

Let’s see an example:

❯ echo 'print("Hello, World!")' > __main__.py

❯ zip hello-world.zip __main__.py

❯ python3 ./hello-world.zip
Hello, World!

© 2026 Pradeep Chhetri