Skip to content

metaist/cosmofy

Repository files navigation

cosmofy: Cosmopolitan Python Bundler

Build PyPI Supported Python Versions

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

Install

uv tool install cosmofy  # recommended
# or
pip install cosmofy      # classic

Or download the portable binary.

Quick Example

Define your entry point in pyproject.toml:

[project.scripts]
my_command = "my_command.__main__:main"

Bundle your project:

uvx cosmofy bundle  # produces dist/my_command

Or bundle a script:

uv init --script myscript.py
uvx cosmofy bundle --script myscript.py  # produces dist/myscript

Limitations

  • Pure-Python only (no C extensions) - see #94
  • Tied to latest Cosmopolitan Python version - see #44

Documentation

Read the full documentation

License

MIT License

About

Cosmopolitan Python Bundler

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Contributors 3

  •  
  •  
  •  

Languages