# pex-tool/pex

A tool for generating .pex (Python EXecutable) files, lock files and venvs.

Repository: https://github.com/pex-tool/pex
Canonical: https://ross.abutalabs.com/products/pex
Homepage: https://docs.pex-tool.org/
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-08-26T01:37:09+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 4426, "days_push": 8, "days_rel": 8, "gap_med": 1.0, "n_releases_24m": 213}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4223, forks 318 (observed 2026-08-28T04:08:39.339881+00:00)

## What it is
Pex is a tool and library for generating .pex (Python EXecutable) files - self-contained executable Python environments similar to virtualenvs - as well as lock files and venvs. It simplifies deploying Python applications so they can be run anywhere with a simple copy, even across Linux and macOS via bundled platform-specific distributions.

## Use cases
- package a python app into a single executable file
- deploy python applications to production without pip install
- create lock files for reproducible python environments
- run a script with dependencies in an ephemeral environment
- build a portable python environment that works on linux and mac
- freeze a virtualenv into a runnable artifact
- run python tools like sphinx without installing them

## When to choose
- you need to deploy Python applications as single-file executables
- you want reproducible, locked dependency environments for deployment
- you need cross-platform portable Python environments
- you use build systems like Pants that integrate with PEX

## When to avoid
- you only need local development virtualenvs without deployment needs
- you need standalone binaries that bundle a Python interpreter for non-Python users
- you are packaging GUI desktop applications

## Facets
- artifact type: cli-tool
- maturity: active
- function: package-manager, build-tool, developer-tools, deployment
- domain: developer-tools
- platform: python, cli, cross-platform
- tags: pex, python-packaging, virtualenv, lock-files, venv, application-deployment, portable-executables, command-line, devops, automation, linux, macos

## Member repositories
- pex-tool/pex (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:39.339881+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:22:23.098995+00:00, confidence not recorded.
  - readme: https://github.com/pex-tool/pex (fetched 2026-08-28T04:08:39.339881+00:00, sha f4e2d1610e9d)
  - homepage: https://docs.pex-tool.org/ (fetched 2026-08-29T09:12:26.989515+00:00, sha 637945ab5cf6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
