📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

getcp

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getcp

getcp is a Python package that provides functions to retrieve stats from Competitive Programming platforms. Currently, it supports fetching stats from CodeChef and Codeforces.

1.0.23
Maintainers
1

getcp

Description

getcp is a Python package that provides functions to retrieve stats from CP platforms. Currently, it supports user stats from CodeChef and Codeforces.

Installation

You can install getcp using pip:

pip install getcp

Usage

    from getcp import cc, cf, github
    
    codechef_stats = cc.get_codechef_stats('username')
    codeforces_stats = cf.get_codeforces_stats('username')
    github_info = github.get_github_stats('username')
    
    print("CodeChef Stats:")
    print(codechef_stats)
    
    print("\nCodeforces Stats:")
    print(codeforces_stats)
    
    print("\nGithub Info:")
    print(github_info)

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts