pex-2.90.1
2.90.1
2.90.0
2.9.0
2.89.1
2.89.0
2.88.1
2.88.0
2.87.0
2.86.1
2.86.0
2.85.3
2.85.2
2.85.1
2.85.0
2.84.0
2.83.0
2.82.1
2.82.0
2.81.0
2.80.0
2.8.1
2.8.0
2.79.0
2.78.0
2.77.3
2.77.2
2.77.1
2.77.0
2.76.1
2.76.0
2.75.2
2.75.1
2.75.0
2.74.3
2.74.2
2.74.1
2.74.0
2.73.1
2.73.0
2.72.2
2.72.1
2.72.0
2.71.1
2.71.0
2.70.0
2.7.0
2.69.2
2.69.1
2.69.0
2.68.3
2.68.2
2.68.1
2.68.0
2.67.3
2.67.2
2.67.1
2.67.0
2.66.1
2.66.0
2.65.0
2.64.1
2.64.0
2.63.0
2.62.1
2.62.0
2.61.1
2.61.0
2.60.2
2.60.1
2.60.0
2.6.3
2.6.2
2.6.1
2.6.0
2.59.5
2.59.4
2.59.3
2.59.2
2.59.1
2.59.0
2.58.1
2.58.0
2.57.0
2.56.0
2.55.2
2.55.1
2.55.0
2.54.2
2.54.1
2.54.0
2.53.0
2.52.1
2.52.0
2.51.1
2.51.0
2.50.4
2.50.3
2.50.2
2.50.1
2.50.0
2.5.0
2.49.0
2.48.2
2.48.1
2.48.0
2.47.0
2.46.3
2.46.2
2.46.1
2.46.0
2.45.3
2.45.2
2.45.1
2.45.0
2.44.0
2.43.1
2.43.0
2.42.2
2.42.1
2.42.0
2.41.1
2.41.0
2.40.3
2.40.2
2.40.1
2.40.0
2.4.1
2.4.0
2.39.0
2.38.1
2.38.0
2.37.0
2.36.1
2.36.0
2.35.0
2.34.0
2.33.9
2.33.8
2.33.7
2.33.6
2.33.5
2.33.4
2.33.3
2.33.2
2.33.10
2.33.1
2.33.0
2.32.1
2.32.0
2.31.0
2.30.0
2.3.3
2.3.2
2.3.1
2.3.0
2.29.0
2.28.1
2.28.0
2.27.1
2.27.0
2.26.0
2.25.2
2.25.1
2.25.0
2.24.3
2.24.2
2.24.1
2.24.0
2.23.0
2.22.0
2.21.0
2.20.4
2.20.3
2.20.2
2.20.1
2.20.0
2.2.2
2.2.1
2.2.0
2.19.1
2.19.0
2.18.1
2.18.0
2.17.0
2.16.2
2.16.1
2.16.0
2.15.0
2.14.1
2.14.0
2.13.1
2.13.0
2.12.1
2.12.0
2.11.0
2.10.1
2.10.0
2.1.99
2.1.98
2.1.97
2.1.96
2.1.95
2.1.94
2.1.93
2.1.92
2.1.91
2.1.90
2.1.9
2.1.89
2.1.88
2.1.87
2.1.86
2.1.85
2.1.84
2.1.83
2.1.82
2.1.81
2.1.80
2.1.8
2.1.79
2.1.78
2.1.77
2.1.76
2.1.75
2.1.74
2.1.73
2.1.72
2.1.71
2.1.70
2.1.7
2.1.69
2.1.68
2.1.67
2.1.66
2.1.65
2.1.64
2.1.63
2.1.62
2.1.61
2.1.60
2.1.6
2.1.59
2.1.58
2.1.57
2.1.56
2.1.55
2.1.54
2.1.53
2.1.52
2.1.51
2.1.50
2.1.5
2.1.49
2.1.48
2.1.47
2.1.46
2.1.45
2.1.44
2.1.43
2.1.42
2.1.41
2.1.40
2.1.4
2.1.39
2.1.38
2.1.37
2.1.36
2.1.35
2.1.34
2.1.33
2.1.32
2.1.31
2.1.30
2.1.3
2.1.29
2.1.28
2.1.27
2.1.26
2.1.25
2.1.24
2.1.23
2.1.22
2.1.21
2.1.20
2.1.2
2.1.19
2.1.18
2.1.17
2.1.164
2.1.163
2.1.162
2.1.161
2.1.160
2.1.16
2.1.159
2.1.158
2.1.157
2.1.156
2.1.155
2.1.154
2.1.153
2.1.152
2.1.151
2.1.150
2.1.15
2.1.149
2.1.148
2.1.147
2.1.146
2.1.145
2.1.144
2.1.143
2.1.142
2.1.141
2.1.140
2.1.14
2.1.139
2.1.138
2.1.137
2.1.136
2.1.135
2.1.134
2.1.133
2.1.132
2.1.131
2.1.130
2.1.13
2.1.129
2.1.128
2.1.127
2.1.126
2.1.125
2.1.124
2.1.123
2.1.122
2.1.121
2.1.120
2.1.12
2.1.119
2.1.118
2.1.117
2.1.116
2.1.115
2.1.114
2.1.113
2.1.112
2.1.111
2.1.110
2.1.11
2.1.109
2.1.108
2.1.107
2.1.106
2.1.105
2.1.104
2.1.103
2.1.102
2.1.101
2.1.100
2.1.10
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.12
1.6.11
1.6.10
1.6.1
1.6.0
1.5.3
1.5.2
1.5.1
1.5.0
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.16
1.2.15
1.2.14
1.2.13
1.2.12
1.2.11
1.2.10
1.2.1
1.2.0
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.20
1.1.2
1.1.19
1.1.18
1.1.17
1.1.16
1.1.15
1.1.14
1.1.13
1.1.12
1.1.11
1.1.10
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0.dev3
1.0.0.dev0
1.0.0
0.9.0
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.0
2.90.1
2.90.0
2.9.0
2.89.1
2.89.0
2.88.1
2.88.0
2.87.0
2.86.1
2.86.0
2.85.3
2.85.2
2.85.1
2.85.0
2.84.0
2.83.0
2.82.1
2.82.0
2.81.0
2.80.0
2.8.1
2.8.0
2.79.0
2.78.0
2.77.3
2.77.2
2.77.1
2.77.0
2.76.1
2.76.0
2.75.2
2.75.1
2.75.0
2.74.3
2.74.2
2.74.1
2.74.0
2.73.1
2.73.0
2.72.2
2.72.1
2.72.0
2.71.1
2.71.0
2.70.0
2.7.0
2.69.2
2.69.1
2.69.0
2.68.3
2.68.2
2.68.1
2.68.0
2.67.3
2.67.2
2.67.1
2.67.0
2.66.1
2.66.0
2.65.0
2.64.1
2.64.0
2.63.0
2.62.1
2.62.0
2.61.1
2.61.0
2.60.2
2.60.1
2.60.0
2.6.3
2.6.2
2.6.1
2.6.0
2.59.5
2.59.4
2.59.3
2.59.2
2.59.1
2.59.0
2.58.1
2.58.0
2.57.0
2.56.0
2.55.2
2.55.1
2.55.0
2.54.2
2.54.1
2.54.0
2.53.0
2.52.1
2.52.0
2.51.1
2.51.0
2.50.4
2.50.3
2.50.2
2.50.1
2.50.0
2.5.0
2.49.0
2.48.2
2.48.1
2.48.0
2.47.0
2.46.3
2.46.2
2.46.1
2.46.0
2.45.3
2.45.2
2.45.1
2.45.0
2.44.0
2.43.1
2.43.0
2.42.2
2.42.1
2.42.0
2.41.1
2.41.0
2.40.3
2.40.2
2.40.1
2.40.0
2.4.1
2.4.0
2.39.0
2.38.1
2.38.0
2.37.0
2.36.1
2.36.0
2.35.0
2.34.0
2.33.9
2.33.8
2.33.7
2.33.6
2.33.5
2.33.4
2.33.3
2.33.2
2.33.10
2.33.1
2.33.0
2.32.1
2.32.0
2.31.0
2.30.0
2.3.3
2.3.2
2.3.1
2.3.0
2.29.0
2.28.1
2.28.0
2.27.1
2.27.0
2.26.0
2.25.2
2.25.1
2.25.0
2.24.3
2.24.2
2.24.1
2.24.0
2.23.0
2.22.0
2.21.0
2.20.4
2.20.3
2.20.2
2.20.1
2.20.0
2.2.2
2.2.1
2.2.0
2.19.1
2.19.0
2.18.1
2.18.0
2.17.0
2.16.2
2.16.1
2.16.0
2.15.0
2.14.1
2.14.0
2.13.1
2.13.0
2.12.1
2.12.0
2.11.0
2.10.1
2.10.0
2.1.99
2.1.98
2.1.97
2.1.96
2.1.95
2.1.94
2.1.93
2.1.92
2.1.91
2.1.90
2.1.9
2.1.89
2.1.88
2.1.87
2.1.86
2.1.85
2.1.84
2.1.83
2.1.82
2.1.81
2.1.80
2.1.8
2.1.79
2.1.78
2.1.77
2.1.76
2.1.75
2.1.74
2.1.73
2.1.72
2.1.71
2.1.70
2.1.7
2.1.69
2.1.68
2.1.67
2.1.66
2.1.65
2.1.64
2.1.63
2.1.62
2.1.61
2.1.60
2.1.6
2.1.59
2.1.58
2.1.57
2.1.56
2.1.55
2.1.54
2.1.53
2.1.52
2.1.51
2.1.50
2.1.5
2.1.49
2.1.48
2.1.47
2.1.46
2.1.45
2.1.44
2.1.43
2.1.42
2.1.41
2.1.40
2.1.4
2.1.39
2.1.38
2.1.37
2.1.36
2.1.35
2.1.34
2.1.33
2.1.32
2.1.31
2.1.30
2.1.3
2.1.29
2.1.28
2.1.27
2.1.26
2.1.25
2.1.24
2.1.23
2.1.22
2.1.21
2.1.20
2.1.2
2.1.19
2.1.18
2.1.17
2.1.164
2.1.163
2.1.162
2.1.161
2.1.160
2.1.16
2.1.159
2.1.158
2.1.157
2.1.156
2.1.155
2.1.154
2.1.153
2.1.152
2.1.151
2.1.150
2.1.15
2.1.149
2.1.148
2.1.147
2.1.146
2.1.145
2.1.144
2.1.143
2.1.142
2.1.141
2.1.140
2.1.14
2.1.139
2.1.138
2.1.137
2.1.136
2.1.135
2.1.134
2.1.133
2.1.132
2.1.131
2.1.130
2.1.13
2.1.129
2.1.128
2.1.127
2.1.126
2.1.125
2.1.124
2.1.123
2.1.122
2.1.121
2.1.120
2.1.12
2.1.119
2.1.118
2.1.117
2.1.116
2.1.115
2.1.114
2.1.113
2.1.112
2.1.111
2.1.110
2.1.11
2.1.109
2.1.108
2.1.107
2.1.106
2.1.105
2.1.104
2.1.103
2.1.102
2.1.101
2.1.100
2.1.10
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.12
1.6.11
1.6.10
1.6.1
1.6.0
1.5.3
1.5.2
1.5.1
1.5.0
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.16
1.2.15
1.2.14
1.2.13
1.2.12
1.2.11
1.2.10
1.2.1
1.2.0
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.20
1.1.2
1.1.19
1.1.18
1.1.17
1.1.16
1.1.15
1.1.14
1.1.13
1.1.12
1.1.11
1.1.10
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0.dev3
1.0.0.dev0
1.0.0
0.9.0
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.0
0.1.0
توضیحات
The PEX packaging toolchain.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | pex-2.90.1 |
| نام | pex |
| نسخه کتابخانه | 2.90.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | The PEX developers |
| ایمیل نویسنده | developers@pex-tool.org |
| آدرس صفحه اصلی | https://github.com/pex-tool/pex |
| آدرس اینترنتی | https://pypi.org/project/pex/ |
| مجوز | - |
***
PEX
***
.. image:: https://github.com/pex-tool/pex/actions/workflows/ci.yml/badge.svg?branch=main
:target: https://github.com/pex-tool/pex/actions?query=branch%3Amain+workflow%3ACI
.. image:: https://img.shields.io/pypi/l/pex.svg
:target: https://pypi.org/project/pex/
.. image:: https://img.shields.io/pypi/v/pex.svg
:target: https://pypi.org/project/pex/
.. image:: https://img.shields.io/pypi/pyversions/pex.svg
:target: https://pypi.org/project/pex/
.. image:: https://img.shields.io/pypi/wheel/pex.svg
:target: https://pypi.org/project/pex/#files
.. image:: https://img.shields.io/discord/1205942638763573358
:target: https://pex-tool.org/discord
.. contents:: **Contents**
Overview
========
pex is a library for generating .pex (Python EXecutable) files which are
executable Python environments in the spirit of `virtualenvs <https://virtualenv.pypa.io>`_.
pex is an expansion upon the ideas outlined in
`PEP 441 <https://peps.python.org/pep-0441/>`_
and makes the deployment of Python applications as simple as ``cp``. pex files may even
include multiple platform-specific Python distributions, meaning that a single pex file
can be portable across Linux and OS X.
pex files can be built using the ``pex`` tool. Build systems such as `Pants
<http://pantsbuild.org/>`_, `Buck <http://facebook.github.io/buck/>`_, and `{py}gradle <https://github.com/linkedin/pygradle>`_ also
support building .pex files directly.
Still unsure about what pex does or how it works? Watch this quick lightning
talk: `WTF is PEX? <https://www.youtube.com/watch?v=NmpnGhRwsu0>`_.
pex is licensed under the Apache2 license.
Installation
============
To install pex, simply
.. code-block:: bash
$ pip install pex
You can also build pex in a git clone using uv:
.. code-block:: bash
$ uv run dev-cmd package
$ cp dist/pex ~/bin
This builds a pex binary in ``dist/pex`` that can be copied onto your ``$PATH``.
The advantage to this approach is that it keeps your Python environment as empty as
possible and is more in-line with what pex does philosophically.
Simple Examples
===============
Launch an interpreter with ``requests``, ``flask`` and ``psutil`` in the environment:
.. code-block:: bash
$ pex requests flask 'psutil>2,<3'
Save Dependencies From Pip
~~~~~~~~~~~~~~~~~~~~~~~~~~
Or instead freeze your current virtualenv via requirements.txt and execute it anywhere:
.. code-block:: bash
$ pex $(pip freeze) -o my_virtualenv.pex
$ deactivate
$ ./my_virtualenv.pex
Ephemeral Environments
~~~~~~~~~~~~~~~~~~~~~~
Run webserver.py in an environment containing ``flask`` as a quick way to experiment:
.. code-block:: bash
$ pex flask -- webserver.py
Launch Sphinx in an ephemeral pex environment using the Sphinx entry point ``sphinx:main``:
.. code-block:: bash
$ pex sphinx -e sphinx:main -- --help
Using Entry Points
~~~~~~~~~~~~~~~~~~
Projects specifying a ``console_scripts`` entry point in their configuration
can build standalone executables for those entry points.
To build a standalone ``pex-tools-executable.pex`` binary that runs the
``pex-tools`` console script found in all pex version ``2.1.35`` and newer distributions:
.. code-block:: bash
$ pex "pex>=2.1.35" --console-script pex-tools --output-file pex-tools-executable.pex
Specifying A Specific Interpreter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can also build pex files that use a specific interpreter type:
.. code-block:: bash
$ pex "pex>=2.1.35" -c pex-tools --python=pypy -o pex-tools-pypy-executable.pex
Most pex options compose well with one another, so the above commands can be
mixed and matched, and equivalent short options are available.
For a full list of options, just type ``pex --help``.
Documentation
=============
More documentation about Pex, building .pex files, and how .pex files work
is available at https://docs.pex-tool.org.
Development
===========
Pex uses `uv <https://docs.astral.sh/uv/>`_ with `dev-cmd <https://pypi.org/project/dev-cmd/>`_ for
test and development automation. After you have installed `uv`, to run the Pex test suite, just
run `dev-cmd` via `uv`:
.. code-block:: bash
$ uv run dev-cmd
The `dev-cmd` command runner provides many useful options, explained at
https://pypi.org/project/dev-cmd/ . Below, we provide some of the most commonly used commands when
working on Pex, but the docs are worth acquainting yourself with to better understand how `dev-cmd`
works and how to execute more advanced work flows.
To run a specific command, identify the name of the command you'd like to invoke by running
``uv run dev-cmd --list``, then invoke the command by name like this:
.. code-block::
$ uv run dev-cmd format
That's a fair bit of typing. An shell alias is recommended, and the standard is `uvrc` which I'll
use from here on out.
To run MyPy:
.. code-block::
$ uvrc typecheck
All of our tests allow passthrough arguments to `pytest`, which can be helpful to run specific
tests:
.. code-block::
$ uvrc test-py37-integration -- -k test_reproducible_build
To run Pex from source, rather than through what is on your PATH, invoke via Python:
.. code-block::
$ python -m pex
نیازمندی
| مقدار | نام |
|---|---|
| ython_versio | subprocess32>=3.2.7; |
| xtr | psutil>=5.3; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.16,>=2.7 | Python |
نحوه نصب
نصب پکیج whl pex-2.90.1:
pip install pex-2.90.1.whl
نصب پکیج tar.gz pex-2.90.1:
pip install pex-2.90.1.tar.gz