Cribo is a Python source bundler that combines multi-module Python projects into a single .py file for easy deployment. The current stable version is 0.8.2. It is distributed as a Rust-based CLI tool via npm, with native binaries for Linux (x64, ARM64, glibc and musl), macOS (x64, Apple Silicon), and Windows (x64, ARM64). This approach ensures fast performance and zero Python runtime dependencies. Cribo is ideal for deploying to AWS Lambda, PySpark, or bundling Python scripts for CDK and Terraform workflows. The tool is optimized for simplicity and speed, unlike pip-based bundlers.
npm install criboNo compatibility data collected yet for this library.
Installation and basic bundling of a Python project into a single .py file using Cribo.
Ensure Node.js v18 or later is installed before installing Cribo.
Use virtual environments or package managers to handle third-party dependencies separately.
Manually specify the target binary architecture using the --platform flag if needed.
Pin to a specific version and test bundled output after upgrades.
Run 'npm install -g cribo' to install globally, or use 'npx cribo'.
Ensure you are using a supported platform: Linux x64/ARM64, macOS x64/ARM64, Windows x64/ARM64. For unsupported platforms, try building from source.
Verify the entry file path and ensure it is relative or absolute. Use 'ribo --entry ./src/main.py'.