Metadata-Version: 2.1
Name: cf_util
Version: 1.0.0
Summary: A python tool to help install accepted submission from codeforces.com.
Project-URL: Homepage, https://github.com/EliasObeid9-02/cf_util
Project-URL: Bug Tracker, https://github.com/EliasObeid9-02/cf_util/issues
Author-email: Elias Obeid <elias.obeid9.02@gmail.com>
Maintainer-email: Elias Obeid <elias.obeid9.02@gmail.com>
License: MIT License
        
        Copyright (c) 2023 Elias Obeid
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.0
Requires-Dist: beautifulsoup4
Requires-Dist: requests
Description-Content-Type: text/markdown

# 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 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 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.