Skip to content

niyaznigmatullin/polygon-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polygon-cli

Command-line tool for polygon

##Requirments

  • Python 3 (tested on 3.4)
  • requests lib
  • prettytable lib
  • colorama lib
  • diff and diff3 avalible in path

Supported features

  • Download files and solutions from polygon.
  • Uploading them back to polygon.
  • Automatic merging with conflicts.

Installation

  1. Install Python3 and setuputils module (for example, it goes with pip3)

  2. Checkout repo using git clone https://github.com/kunyavskiy/polygon-cli.git

  3. Edit config.py file. Add api_key and api_secret to it. If you want, you can also add login and password. Then it will not be asked when non-api requests need it. You should change:

    login = None
    password = None
    api_key = None
    api_secret = None

    to something like

    login = 'pkunyavskiy'
    password = None
    api_key = 'xxxxxxxxxxxxxxxxx'
    api_secret = 'xxxxxxxxxxxxxxx'

    WARNING: password and api_key/api_secret are stored in plain text in your Python Scripts directory.

  4. Run python3 setup.py install [--user]

  • On Linux, it will put the executable polygon-cli in /usr/local/bin
  • On Windows, it will put the execuable polygon-cli in Scripts directory of your Python3 installtion. It should be added to the path variable for easier usage.

Add the option --user to install as local user without root/administrator privileges. 5. Even if it doesn't run, install the dependencies manually as below,

  • pip3 install requests
  • pip3 install colorama
  • pip3 install prettytable

About

Command-line tool for polygon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%