Installing valorant.py¶
The following guide will walk you through the steps need to install valorant.py in your enviornment.
Standard Installation¶
valorant.py can be obtained normally from PyPI using PIP:
pip install valorant
The package is also available from the GitHub repository:
pip install git+https://github.com/frissyn/valorant.py
Of course, you can specify version tags as well:
pip install git+https://github.com/frissyn/valorant.py@v0.5.1
Bleeding Edge¶
If you’d like the bleeding edge version of valorant.py, it’s available from the dev branch of the GitHub repository. This version isn’t guaranteed to be stable or documented very well, as this is the branch I work on in real time when adding features, bug fixing, etc.
pip install git+https://github.com/frissyn/valorant.py@dev
Virtual Enviornments¶
Sometimes you need to prevent a package from polluting other enviornments on the system, or install multiple versions of the same package. Whatever the use case, Python 3 provides a standard utility for creating virtual enviornments for just that purpose. See the official Virtual Enviornments and Packages page for more in-depth documentation.
Enter your project’s working (top-level) directory:
$ cd my-project $ python -m venv project-envActivate the virtual enviornment:
$ source project-env/bin/activateOn a non-Unix system (cough, Windows):
$ project-env\Scripts\active.bat
Then use
pipas you normally would!$ pip install valorant