Skip to main content

A python tool to help install accepted submission from codeforces.com.

Project description

cf_util

cf_util is a simple Python-based command line script that allows the user to get information about submissions for a specific user from the codeforces website easily.

Usage

Install using
pip install cf_util
Update using
pip install --upgrade cf_util
Contests Downloader
cf_util contests-downloader tourist

Downloads all in-contest accepted submissions for the specified user(s) in order from newest to oldest.

Can use the optional argument -c or --count to specify how many contests to download, e.g, cf_util contests-downloader tourist -c 5.

Problems Downloader
cf_util problems-downloader tourist

Downloads all accepted submissions for the specified user(s) in order from newest to oldest.

Can use the following optional arguments:

  1. -c or --count to specify the number of submissions to download.
  2. -m or --min-rating to specify the minimum problem rating for a problem to be downloaded, set by default to 0.
  3. -M or --max-rating to specify the maximum problem rating for a problem to be downloaded, set by default to 3500.
  4. -t or --tags to specify the allowed problem tags. Tags must be written in the same way they are written on the codeforces website, tags with multiple words must be separated by - instead of spaces. Note that by default if you specify multiple tags then they must all be present in a problem.
  5. -o or --combine-by-or in order to allow the presence of only one tag for a problem submission to be downloaded.
  6. -l or --list-only in order to not download any submissions' code.
Get Gym List
cf_util get-gym-list tourist

Returns a text file conatining links to all gyms that the user(s) participated in.

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

cf_util-1.2.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

cf_util-1.2.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file cf_util-1.2.1.tar.gz.

File metadata

  • Download URL: cf_util-1.2.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for cf_util-1.2.1.tar.gz
Algorithm Hash digest
SHA256 7513d50a32ca16c0a5d5356bccb798ef98ffea76898fb6fe00922007908686aa
MD5 936a0a351581b9ef33f24862f832869c
BLAKE2b-256 022535efc46d3330613735113a3f13bda694e0350e66a2f49341a84baaa08add

See more details on using hashes here.

File details

Details for the file cf_util-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: cf_util-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for cf_util-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a2796858e0126d707c4592df69c06e77d765cfece9ac4f4f842107d6c1a1e1e
MD5 195feb6ad0db7b115719ebffeea33a8d
BLAKE2b-256 b719ba185f9f741a983502a2862707730fb3febe2d6e7a261b0e7a659171e1f4

See more details on using hashes here.

Supported by

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