Metadata-Version: 2.4
Name: cfcc
Version: 0.1.0
Summary: Add your description here
Requires-Python: >=3.14
Description-Content-Type: text/markdown
Requires-Dist: beautifulsoup4>=4.14.3
Requires-Dist: browser-cookie3>=0.20.1
Requires-Dist: dacite>=1.9.2
Requires-Dist: httpx>=0.28.1
Requires-Dist: httpx-retries>=0.4.6
Requires-Dist: pylatexenc>=2.10
Requires-Dist: rich>=14.3.3
Requires-Dist: tomlkit>=0.14.0
Requires-Dist: typer>=0.24.1
Requires-Dist: websockets>=16.0
Requires-Dist: yaspin>=3.4.0

# CFCC (CodeForces Cool CLI)

You want to do codeforces, but you are scared to leave your amazing terminal???
Don't worry, because with this CLI you could achieve your dreams^.

^You need to still login into codeforces with your browser, upsis.

## How to install
Nobody likes repo install, but it is too green for pip sooooorry

To install it, first start by cloning the repo:
```bash
git clone https://github.com/ThorTuwy/cfcc
```

Now, assuming that you have installed [UV](https://docs.astral.sh/uv/getting-started/installation/)
(I didn't mention before, to give you a sunken cost fallacy because I am a bad person :P ), run this command:
```bash
uv tool install .
```

And now you NEED to enjoy using this CLI thing.

**WARNING**: Configs are generated after running your first command, so do that pls.

## Features 😎
It isn't an AI emoji pls trust me

* Download problems using `cfcc problem ID/URL`
![cfcc-problem.png](img/cfcc-problem.png)
* Download entire contest using `cfcc contest ID/URL`
![cfcc-contest.png](img/cfcc-contest.png)
* Read your problems in tour beautiful terminal using: `cfcc read`
![cfcc-read.png](img/cfcc-read.png)
* Test your solutions with `cfcc test`
![cfcc-test.png](img/cfcc-test.png)
* Submit your solutions with `cfcc submit`
![cfcc-submit.png](img/cfcc-submit.png)
* See your submission in realtime with `cfcc submissions`
![cfcc-submissions.png](img/cfcc-submissions.png)
* AND change the configuration using a simply TOML `HOME/.config/cfcc/`
![cfcc-configs.png](img/cfcc-configs.png)

## General idea
Zzz text for Zzz mans

The main idea of this project is provide a CLI app in which you can (mostly)
forget about the stupid browser and focus simply on your terminal to reduce
mental noise, in part with that, the commands need to be stupidly easy to use, 
so is not need it to be thinking what you should do, and also I don't want
and BIG dependency on the project as is a little lame ngl.

For that I decided on this way of working: This CLI is path-aware, so the
idea is that when you download a contest/problem, when you are inside a problem
folder, you are going to be able to use commands as `cfcc read` or `cfcc submit`
without having to put paths or things like that. Also, instead of getting the cookies
via a headless browser or some shit like that (Because Cloudflare protections are not possible
to simply log in with plain request), I simply scrap the cookies of your current 
browser (Thx to browser_cookie3).

## PROBLEMS!?!?!
In my project??? I am perfect^ so impossible that is my fault

If you need your favourite feature to be implemented or help fixing 
that annoying bug, simply open your own issue or PR (But know
that you may or may not read it :P)

