trojan11's blog

By trojan11, history, 5 years ago, In English

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.
  • Vote: I like it
  • +74
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

  • »
    »
    5 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    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 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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.

    • »
      »
      »
      5 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Thanks. Really good work on the interface btw.