dephell jail try

Try python packages in an isolated environment.

Try textdistance:

$ dephell jail try textdistance
INFO creating venv... (python=/usr/local/bin/python3.7, venv=/tmp/tmpgixqt4_q)
INFO build dependencies graph...
INFO installation... (executable=/tmp/tmpgixqt4_q/bin/python3.7, packages=1)
Collecting textdistance==4.1.3 (from -r /tmp/tmpduyecsir/requirements.txt (line 2))
Installing collected packages: textdistance
Successfully installed textdistance-4.1.3
INFO installed
INFO running...
Python 3.7.0 (default, Dec 24 2018, 12:47:36)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.

In this example DepHell installs latest texdistance release in a temporary virtual environment and runs python interpreter with already imported textdistance inside.

Use ipython instead of standard python interpreter:

$ dephell jail try --command=ipython textdistance

Set python version:

$ dephell jail try --python=3.5 textdistance
Python 3.5.3 (928a4f70d3de, Feb 08 2019, 10:42:58)
[PyPy 7.0.0 with GCC 6.2.0 20160901] on linux
Type "help", "copyright", "credits" or "license" for more information.

Install flake8 and plugin for it and run checks on given path:

$ dephell jail try --command="flake8 ./dephell" flake8 flake8-commas

See also

  1. How DepHell choose Python interpreter.
  2. dephell jail install to install CLI tool in permanent jail.
  3. dephell venv create for information about virtual environments management in DepHell.
  4. dephell package install to install package into project virtual environment.
  5. dephell deps install to install all project dependencies.