Giter VIP home page Giter VIP logo

polygon-cli's Introduction

polygon-cli

Command-line tool for polygon

Requirements

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

Supported features

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

Installation

Using pip3

Run pip3 install polygon-cli

Using the source code

  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. 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 executable polygon-cli in Scripts directory of your Python3 installation. It should be added to the path variable for easier usage.

    Add the option --user to install as local user without root/administrator privileges.

  4. Even if it doesn't run, install the dependencies manually as below,

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

Running and authentication

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.

polygon-cli's People

Contributors

kunyavskiy avatar niyaznigmatullin avatar aropan avatar kalininn avatar eldering avatar karliss avatar burunduk1 avatar adilyas avatar sergeymelnikov avatar waseem18 avatar i1ovemyse1f avatar grikukan avatar ahmed-dardery avatar budalnik avatar ivanovmp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.