Metadata-Version: 2.4
Name: cli-codeforces
Version: 0.1.0
Summary: Codeforces CLI automation tool built with Typer, Rich, and Playwright.
Home-page: https://github.com/Nigam-Vaghani/codeforces_cli
Author: Nigam Vaghani
Project-URL: Source, https://github.com/Nigam-Vaghani/codeforces_cli
Project-URL: Issues, https://github.com/Nigam-Vaghani/codeforces_cli/issues
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: typer>=0.9.0
Requires-Dist: rich>=13.0.0
Requires-Dist: requests>=2.31.0
Requires-Dist: beautifulsoup4>=4.12.0
Requires-Dist: cloudscraper>=1.2.71
Requires-Dist: playwright>=1.40.0
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# cf_cli

Codeforces CLI automation tool built with Typer, Rich, and Playwright.

## Install (Public)

After this package is published to PyPI:

```powershell
pip install cli-codeforces
playwright install chromium
```

Then use:

```powershell
cf --help
```

## Browser-Based Login Workflow

This project uses a real Playwright Chromium browser with a persistent profile at `.cf_browser_profile`.
No manual cookie storage and no requests-based login are used for auth.

### One-time setup

```powershell
.\cli_env\Scripts\python -m pip install -r requirement.txt
.\cli_env\Scripts\python -m playwright install chromium
```

### Login

```powershell
cf_cli login
```

- CLI opens a real Chromium window.
- Log in manually (solve CAPTCHA if shown).
- On success, CLI prints: `Login successful. Session stored.`
- Session is preserved via `.cf_browser_profile`.
