Introduction#
This is the documentation for the codingame
module.
Prerequisites#
Python 3.8 or higher is required.
Installing#
Install codingame
with pip:
python3 -m pip install -U codingame
py -3 -m pip install -U codingame
Installing the asynchronous version#
If you want to use the asynchronous client, make sure to have the correct modules installed by doing:
python3 -m pip install -U codingame[async]
py -3 -m pip install -U codingame[async]
Virtual Environments#
Sometimes you want to keep libraries from polluting system installs or use a different version of libraries than the ones installed on the system. You might also not have permissions to install libraries system-wide. For this purpose, the standard library as of Python comes with a concept called “Virtual Environment”s to help maintain these separate versions.
A more in-depth tutorial is found on Virtual Environments and Packages.
However, for the quick and dirty:
Go to your project’s working directory:
cd your-project-dir
cd your-project-dir
Create a virtual environment:
python3 -m venv venv
py -3 -m venv venv
Activate the virtual environment:
source venv/bin/activate
venv\Scripts\activate.bat
Use pip like usual:
pip install -U codingame
pip install -U codingame
Congratulations. You now have a virtual environment all set up. You can start to code, learn more in the Quickstart.