Блог пользователя trojan11

Автор trojan11, история, 5 лет назад, По-английски

Hi everyone, cfs is a command line tool which utilizes Codeforces API to view problems, contests, blogs, user details and submissions right in the terminal.

Setup

pip install cfs

OR

git clone https://github.com/prasoonbatham11/cfcli.git
python3 setup.py install

Links

How it looks

Footnote

  • Please star the repo if you like it.
  • Feel free to report issues.
  • Проголосовать: нравится
  • +74
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Good work. Really liked the interface. Problem showing feature can be improved though.

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится

    Thanks. Yes, unfortunately there's no api to retrieve problem statements so I had to scrape the web page. And couldn't find a library to render the scraped web page to markdown. For now I've put it in Todo. Will work on the issue. Thanks for the feedback!

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Can we download our past submissions collectively, and also can we submit our codes during contest using this CLI?

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Yes you can view past submissions using the following command:

    cfs -us handle
    

    This will open the detailed submissions in a paged format. You can refer to this link for more use cases of the command.

    Currently you can't submit solutions as there are no write functions in the codeforces API. But I've added this in todo. Will try for a workaround.