Skip to content

cosmofy: Cosmopolitan Python Bundler

One binary. Every platform.

cosmofy bundles your Python app into a single executable that runs on Linux, macOS, and Windows using Cosmopolitan libc.

Quick Start

uv tool install cosmofy  # or: pip install cosmofy
uvx cosmofy bundle       # produces dist/my_command

Why cosmofy?

  • Single binary distribution - No Python installation required on target machines
  • Cross-platform - Same binary runs on Linux, macOS, and Windows
  • Simple - Works with your existing pyproject.toml
  • Self-updating - Optional built-in update mechanism

How It Works

  1. Bundle - cosmofy bundle packages your Python app with Cosmopolitan Python
  2. Distribute - Share a single file that works everywhere
  3. Update - Optional self-updater keeps binaries current

Documentation