Skip to main content

Python toolkit for extracting CodeChef user statistics and contest history

Project description

codechef-tools

Python toolkit for extracting CodeChef user statistics and contest history.

Installation

pip install codechef-tools

Quick Start

from codechef_tools import CodeChef

user = CodeChef("tourist")
user.fetch_profile()

print(user.current_rating())
print(user.stars())
print(user.total_contests())
print(user.total_problems_solved())

API Reference

CodeChef

  • fetch_profile() fetches and caches the profile summary.
  • exists() checks whether the profile exists.
  • current_rating()
  • max_rating()
  • stars()
  • total_contests()
  • total_problems_solved()
  • rating_history()
  • contest_problems()
  • plagiarism_count()
  • to_dataframe()

CLI Usage

codechef tourist
codechef tourist --json
codechef tourist --csv output.csv

Examples

See examples/basic_usage.py.

Contributing

  1. Create a feature branch.
  2. Add tests for changes.
  3. Run ruff, black, pytest, and mypy.
  4. Open a pull request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codechef_tools-0.1.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codechef_tools-0.1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file codechef_tools-0.1.0.tar.gz.

File metadata

  • Download URL: codechef_tools-0.1.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for codechef_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 08dc604994c79077f23bee8439b2957883874088559e3fed2d14c9eace50d296
MD5 1b075d186a7320caeedfe670271dbf09
BLAKE2b-256 dcf53e5c7608e0204c5bc73e37a5c0d45432bbfcd0fa29d2eebaa722305724da

See more details on using hashes here.

File details

Details for the file codechef_tools-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: codechef_tools-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for codechef_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e54f93baa4d558563df2c6461c0bed8b505637b0f3205c233694d804f2ed46e
MD5 641c0626e8daf904e3fd45adfa7c0345
BLAKE2b-256 01e6bc4b0b44001cd90a19674ba64a9619db085d3fcd6d2a998a8db2af19f714

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page