Installation and Set up¶
Downloading the library:¶
Using bare git:
$ git clone https://github.com/surister/apexpy.git
Using pip:
$ pip install apexlegendspy
Using pipenv:
$ pipenv install apexlegendspy
Providing your Api Key¶
Any api key should remain secret for your only use, to avoid leaking your key, you have it as an environment variable APEX_LEY=actual_key apexpy will look for it automatically.
Note
Quick way to have this done:
Install dotenv:
$ pip install python-dotenv or $ pipenv install python-dotenv
Create a .env file and put there your api key as:
APEX_KEY=KEY
Apexpy automatically loads dotenv files if python-dotenv is installed