ShifaT57's blog

By ShifaT57, history, 3 days ago, In English

cp-tool

cp-tool is an auto generator for solved problems at different online judges. It gathers all the problems you have solved at an online judge and generates a git repository for you.

Generated Sample Git Rep by cp-tool

Supported Platforms

Requirments

  • python >=3.6

Instruction

  • Installation

  • Linux : pip install cp-tool

  • Windows :python -m pip install cp-tool

Note : Please updated version

  • Upgrade :

  • Linux :pip install --upgrade cp-tool

  • Windows :python -m pip install --upgrade cp-tool

  • Usage

  • Using command cp-tool it will show the usages

  • Init with git repo :

    • Create a git repository first
    • Then init -c init -j codeforces

    You will be asked for

    • handle
      • example : shifat57
    • repository name (A folder will be created based in repo name)
      • example : My Cp Track
    • repository url
      • example : https://github.com/jspw/cp-tool-sample
  • Update submissions :

    • Go to the repository folder in your local file
    • Then cp-tool -c update -j codeforces

git repo : https://github.com/jspw/cp-tool

sample : https://github.com/jspw/cp-tool-sample

 
 
 
 
  • Vote: I like it
  • +34
  • Vote: I do not like it

»
3 days ago, # |
  Vote: I like it 0 Vote: I do not like it

That's so helpful. Good work.

»
3 days ago, # |
  Vote: I like it 0 Vote: I do not like it

nice work man.

»
3 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Nicely done. You can also add number of solved problems,number of participated contests

»
3 days ago, # |
  Vote: I like it 0 Vote: I do not like it

amazing tool

»
3 days ago, # |
Rev. 2   Vote: I like it +13 Vote: I do not like it

Appreciate your work! But this idea is not new

nellex already created an awesome tool harwest which can even save submissions and generate repository with proper time-stamps

https://codeforces.com/blog/entry/85788

It also has atcoder support afaik

  • »
    »
    3 days ago, # ^ |
      Vote: I like it -15 Vote: I do not like it

    yes i have seen this but find that it is not syncing all the problems from cf. Harwest is rich enough and it is great. May be i will add some features in my tool!

»
3 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Wow this looks amazing! How to install with MacOS?

  • »
    »
    47 hours ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    install pip :

    • curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

    • python3 get-pip.py

    install cp-tool : pip install cp-tool

    I guess this will work.

»
2 days ago, # |
  Vote: I like it +8 Vote: I do not like it

Thanks for the mention Candidate_Master_2021 and great tool ShifaT57!

Though, I had already worked on building something quite similar a few days ago which solves about the same problem. We already have a good contributor base and are trying to continuously keep it updated. Would be glad if you'd like to join the effort too to fix some of its shortcomings :)

Here's the link to the project: https://github.com/nileshsah/harwest-tool and as pointed out by Candidate_Master_2021, the link to the blog post about it: [Beta] Harwest — Git wrap your submissions this Christmas!