Skip to main content

Flavor Pack packaging system implementing Progressive Secure Package Format (PSPF/2025)

Project description

FlavorPack: Progressive Secure Polyglot Packaging Toolchain

License Python 3.11+ uv Ruff CI

⚠️ Alpha Software: FlavorPack is in early development. APIs, file formats, and commands may change without notice. Not recommended for production use. Check current version with flavor --version. Install from source only.

FlavorPack is a cross-language packaging system that creates self-contained, portable executables using the Progressive Secure Package Format (PSPF) 2025 Edition. It enables you to ship Python applications as single binaries that "just work" - no installation, no dependencies, no configuration required.

Note: The package name is flavorpack, but the command-line tool is flavor.

🎯 Key Features

  • Single-File Distribution: Package entire applications into one executable file
  • Cross-Language Support: Python orchestrator with Go and Rust launchers
  • Secure by Default: Ed25519 signature verification ensures package integrity
  • Progressive Extraction: Extract only what's needed, when it's needed
  • Smart Caching: Persistent work environment with intelligent validation
  • Zero Dependencies: End users need nothing pre-installed

🚀 Quick Start

Prerequisites

  • Python 3.11 or higher
  • UV package manager (curl -LsSf https://astral.sh/uv/install.sh | sh)
  • Go 1.26+ and Rust 1.86+ (for building helpers - see src/flavor-go/go.mod and src/flavor-rs/Cargo.toml)

Installation (Source Only)

Note: FlavorPack is not yet available on PyPI. Source installation is currently the only option.

# Clone the repository
git clone https://github.com/provide-io/flavorpack.git
cd flavorpack

# Set up environment and install dependencies
uv sync

# Build the Go and Rust helpers (required)
make build-helpers
# or directly: ./build.sh

Creating Your First Package

# Package a Python application
flavor pack --manifest pyproject.toml --output myapp.psp

# Run the packaged application
./myapp.psp

# Verify package integrity
flavor verify myapp.psp

📦 PSPF Format

The Progressive Secure Package Format is a polyglot file format that works as both an OS executable and a structured package. Each .psp file contains a native launcher, package metadata, and compressed data slots.

See the PSPF Format Specification for the complete binary layout diagram and technical details.

📚 Documentation

🏗️ Architecture

FlavorPack consists of three main components:

  1. Python Orchestrator (src/flavor/)

    • Manages the build process and dependency resolution
    • Creates manifests and handles Python packaging
    • Provides CLI interface for package operations
  2. Native Helpers (src/flavor-go/, src/flavor-rs/)

    • Launchers: Extract and execute packages at runtime, perform Ed25519 signature verification, manage workenv caching
    • Builders: Assemble PSPF packages from manifests, implement the PSPF/2025 binary format, handle slot packing and metadata encoding
    • Built binaries are placed in dist/bin/ for distribution

🔒 Security

Every PSPF package includes cryptographic integrity verification:

  • Ed25519 signatures ensure packages haven't been tampered with
  • Public keys are embedded in the package index
  • Signature verification happens automatically on every launch
  • Optional deterministic builds with --key-seed for reproducibility

🧪 Testing

# Run the test suite
make test

# Run with coverage
make test-cov

# Test cross-language compatibility
make validate-pspf

# Run specific test categories
pytest -m unit        # Fast unit tests
pytest -m integration # Integration tests
pytest -m security    # Security tests

# Test cross-language compatibility with Pretaster
make validate-pspf

Test Taxonomy

FlavorPack uses a shared test-intent taxonomy across Python, Go, and Rust. Use the root make targets instead of guessing which language-native runner to invoke first.

make test-unit
make test-integration
make test-cross-language
make test-security
make test-adversarial
make test-property
make test-fuzz
make test-mutation
make test-smoke
make test-fast
make test-slow

Intent categories:

  • unit: small isolated behaviors
  • integration: multi-component behavior in one implementation
  • cross_language: parity/interoperability across Python, Go, and Rust
  • security: trust, verification, integrity, permissions, policy
  • adversarial: hostile inputs and boundary-violation attempts
  • property: parameterized and invariant-driven tests
  • fuzz: native malformed-input discovery
  • mutation: test-suite strength checks
  • smoke: minimal high-signal sanity checks

Cost selectors are separate from intent:

  • fast
  • slow
  • ci

Use both security and adversarial when a test intentionally tries to violate a security boundary.

Quality Engineering

Use the root quality targets to run the same cross-language workflows locally that CI now runs as observational jobs:

make quality-python-fast
make quality-python-deep
make quality-go-fast
make quality-go-deep
make quality-rust-fast
make quality-rust-deep
make quality-ci

The tools run in strict mode. In this rollout phase, the dedicated quality-observability jobs are wired into CI but are not intended to be required merge checks yet. A failing observability job means that the quality workflow itself surfaced an issue; merge policy remains a separate repository setting.

🙏 Acknowledgments

FlavorPack is built on the shoulders of giants:

  • UV for fast Python package management
  • The Python, Go, and Rust communities for excellent tooling

Built with ❤️ by the provide.io team

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

flavorpack-0.3.22-py3-none-win_arm64.whl (8.5 MB view details)

Uploaded Python 3Windows ARM64

flavorpack-0.3.22-py3-none-win_amd64.whl (9.3 MB view details)

Uploaded Python 3Windows x86-64

flavorpack-0.3.22-py3-none-manylinux2014_x86_64.whl (8.8 MB view details)

Uploaded Python 3

flavorpack-0.3.22-py3-none-macosx_11_0_arm64.whl (8.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

flavorpack-0.3.22-py3-none-macosx_10_9_x86_64.whl (8.7 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file flavorpack-0.3.22-py3-none-win_arm64.whl.

File metadata

  • Download URL: flavorpack-0.3.22-py3-none-win_arm64.whl
  • Upload date:
  • Size: 8.5 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for flavorpack-0.3.22-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 0a43889e730884513a29e6982b1cf8712d8b61fd66889d23fb9a3c611a0652c0
MD5 c68350c29c03050b737492c273b86eda
BLAKE2b-256 1562cbb85261d2c647b0f1dc1db2638909d83d85f7bf20835ff71370381e18ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for flavorpack-0.3.22-py3-none-win_arm64.whl:

Publisher: release.yml on provide-io/flavorpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flavorpack-0.3.22-py3-none-win_amd64.whl.

File metadata

  • Download URL: flavorpack-0.3.22-py3-none-win_amd64.whl
  • Upload date:
  • Size: 9.3 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for flavorpack-0.3.22-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4c6b5b32d0c2857b613f5865c93a6c9373fd5b1716dbddbcc84dd9f40d745a20
MD5 4878f7a2b81e84708f1e3e38f13281da
BLAKE2b-256 bfae4b86f4d34b25fe656f7743eb858955e157ffebc4dd74b52cac0a9d68c33d

See more details on using hashes here.

Provenance

The following attestation bundles were made for flavorpack-0.3.22-py3-none-win_amd64.whl:

Publisher: release.yml on provide-io/flavorpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flavorpack-0.3.22-py3-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for flavorpack-0.3.22-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e12ddda85c870ac5717d6323056c27a2593c0ad6059168813014537484b13d75
MD5 844a2421cf839b72b331ab4b57d6475e
BLAKE2b-256 8c48a29e251d8de0d52ea2f6084a564c4539d802b82cf0b5916767a61e0fae65

See more details on using hashes here.

Provenance

The following attestation bundles were made for flavorpack-0.3.22-py3-none-manylinux2014_x86_64.whl:

Publisher: release.yml on provide-io/flavorpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flavorpack-0.3.22-py3-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for flavorpack-0.3.22-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0aa405a6a4ae5dc0839083549ad664a4e070bf75274b05fe8e410973b4c3ce63
MD5 4334bcb7bb32948dc45940b0e8db5dd2
BLAKE2b-256 e08154b45911c8cf4f8cea0a003112b541571cd67dcb14d8205f5f4ae5b8e353

See more details on using hashes here.

Provenance

The following attestation bundles were made for flavorpack-0.3.22-py3-none-manylinux2014_aarch64.whl:

Publisher: release.yml on provide-io/flavorpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flavorpack-0.3.22-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for flavorpack-0.3.22-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33ba03388e9be1fef5299ba11db32ba820e47b2fc2581dbb2a9167e2e26fd7b1
MD5 b82bdd3cf9756c91c294dfecbfe0441a
BLAKE2b-256 dd171ad45c09232c486001bfbc147d4963b48be5cdf70ee56ce15f631b5f91e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for flavorpack-0.3.22-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on provide-io/flavorpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flavorpack-0.3.22-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for flavorpack-0.3.22-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 870f758c737ad4434f0a66fb8e0fcc643ef521e708faae038c0064a59210d012
MD5 9da1729080c43114008c5b805d26c21e
BLAKE2b-256 7d2bbf14ef24d766a6abe428bf57f45487ba2001f9294106048841bac04b600f

See more details on using hashes here.

Provenance

The following attestation bundles were made for flavorpack-0.3.22-py3-none-macosx_10_9_x86_64.whl:

Publisher: release.yml on provide-io/flavorpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page