Metadata-Version: 2.4
Name: cpscribe
Version: 0.1.2
Summary: Generate blog posts for competitive programming solutions
Project-URL: Repository, https://github.com/shravanngoswamii/cpscribe
Project-URL: Issues, https://github.com/shravanngoswamii/cpscribe/issues
Author-email: Shravan Goswami <contact@shravangoswami.com>
License: MIT
License-File: LICENSE
Keywords: blog,cli,codeforces,competitive-programming
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Requires-Dist: beautifulsoup4>=4.12.0
Requires-Dist: cloudscraper>=1.2.71
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.4.0; extra == 'dev'
Description-Content-Type: text/markdown

# cpscribe

Generate structured blog posts for Codeforces solutions.

## Install

```sh
pipx install cpscribe
```

## Setup

```sh
cpscribe init
```

This creates `~/.config/cpscribe/config` with your blog root and author name.
You can also set `CPSCRIBE_BLOG_ROOT` and `CPSCRIBE_AUTHOR` as environment variables.

## Usage

```sh
# from a URL
cpscribe post https://codeforces.com/contest/1903/problem/B

# from a .cpp file with a URL in a comment
cpscribe post B.cpp

# with an explicit solution file
cpscribe post https://codeforces.com/contest/1903/problem/B B.cpp
```

The generated post includes the full problem statement, sample I/O, and structured
sections for your approach, complexity, solution, and takeaways.

## Update

```sh
pipx upgrade cpscribe
```

## License

MIT
