Skip to main content

protonenv

License Python Steam Proton

Simple Proton version and prefix management.

A simple tool to manage different Proton versions and prefixes through the command line. The interface is designed to be similar to virtualenv management tools for ease-of-use. This tool is geared for those who want to run Windows programs easily without bloating their system with Wine and its dependencies. Although Proton is usable from the Steam client, it's not convenient to use for most scenarios, especially when installations are required.

Requirements

  • Python >= 3.6
  • Steam

Installation

pip install protonenv

GitHub

Non-editable

pip install --upgrade git+https://github.com/rizkiarm/protonenv.git

You can upgrade the package by re-running the above command.

Editable

This option is recommended for development.

In the folder of your choosing, run the following command:

git clone https://github.com/rizkiarm/protonenv.git
cd protonenv/
pip install -e .

You can upgrade the package by running git pull from the protonenv folder.

Usage

Basic commands

protonenv versions
protonenv install {<version>,--list}
protonenv uninstall {<version>,<prefix>}
protonenv prefix <version> <prefix>
protonenv run <prefix> [command]

Managing a prefix

protonenv default <prefix> --command <command> --flags <KEY1=VALUE1> [KEY2=VALUE2] ...
protonenv info <prefix>
protonenv directory <prefix> [--open]

The available flags (runtime config options) can be obtained from: https://github.com/ValveSoftware/Proton#runtime-config-options

More info

protonenv -h
protonenv -h {versions,install,uninstall,prefix,default,info,directory,run}

Examples

Basic example

Install Proton 5.0

protonenv install 5.0 

An example of installing and running INSIDE:

# Create a new prefix called "inside"
protonenv prefix 5.0 inside 
# Run INSIDE's installer "Setup.exe" with prefix "inside"
protonenv run inside /path/to/INSIDE/Setup.exe
# Get the directory of drive C for prefix "inside"
DRIVE_C_DIR=$(protonenv directory inside | tail -1)
# Run INSIDE
PROTON_USE_WINED3D=1 protonenv run inside $DRIVE_C_DIR/path/to/INSIDE.exe

You can also set the flags and command as default for prefix "inside":

# Configure the default command and use wined3d environment variable by default
protonenv default inside --command $DRIVE_C_DIR/path/to/INSIDE.exe
protonenv default inside --flags PROTON_USE_WINED3D=1 
# Run INSIDE
protonenv run inside

Directly running a program

An example of running program.exe with Proton 5.0

protonenv run 5.0 /path/to/program.exe

This command will execute the program in a temporary prefix with the specified Proton version. This is ideal for a situation where you want to test a program or you simply don't want to retain the program configuration/files.

Uninstallation

pip uninstall protonenv
rm -rf ~/.protonenv

Release files for protonenv 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for protonenv 0.1.1
File Size Uploaded
protonenv-0.1.1.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for protonenv 0.1.1
File Interpreter ABI Platform
protonenv-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 16.5 kB

Release files / protonenv-0.1.1.tar.gz

Download URL protonenv-0.1.1.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fc39b0f6c38d8eeb1193c596c241e867df58b17fe596ea656f275aca7fbb6b2d
BLAKE2b-256 checksum
How to use checksums
f651aa10ccce1253ee2edc3b8c0fe3c13d351a25f66a81ad688a8442004be56b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.0

Release files / protonenv-0.1.1-py2.py3-none-any.whl

Download URL protonenv-0.1.1-py2.py3-none-any.whl
Size 8.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
868a5f0f4eb2f5a08a10bb9547c1fa48f3bb21e9099dcf4933260cfbd02b5818
BLAKE2b-256 checksum
How to use checksums
6e79bc81ffcf808993c61afb45df4e74c0d15299bffb31a065e1ec58b9093a29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page