Command-line tool for polygon
Run pip3 install polygon-cli
Install Python3 and setuputils module (for example, it goes with pip3)
Checkout repo using git clone https://github.com/kunyavskiy/polygon-cli.git
Run python3 setup.py install [--user]
Add the option --user
to install as local user without root/administrator privileges.
Even if it doesn't run, install the dependencies manually as below,
pip3 install requests
pip3 install colorama
pip3 install prettytable
pip3 install pyyaml
Run using polygon-cli
command.
Usually the usage starts with (use problem short name or problem id instead of aplusb
):
polygon-cli init aplusb
polygon-cli update
The commands above create a working copy in the current folder. Use polygon-cli -h
to see other commands of the client.
On the first usage login, password, api_key and api_secret will be asked.
They will be stored locally in plain text.
You may leave password field empty. If you do that, some features based on html parsing, because of lack of api will not work then.