extracting and filtering problems from AtCoder, Yukicoder, and more.
Project description
prog_shojin_util: Competitive Programming Problem Fetcher
Fetch and organize competitive programming problems from various blogs with ease.
Table of Contents
Introduction
prog-shojin-util
(pshu) is a CLI utility tool tailored to extract competitive programming problems not directly from contest platforms, but from blogs and websites that curate high-quality problems, particularly from renowned platforms like AtCoder and Yukicoder. By sifting through these selected compilations, users can focus on problems that are recommended by the community, filtering them based on criteria like AC status, date range, and more.
Features
- User-Based Filtering: Focus on problems based on a specific user's activity on platforms like AtCoder.
- Problem Status Filtering: Whether you're looking to find unsolved problems or revisit those you've already solved,
prog_shojin_util
has you covered. - Flexible Output: Obtain your results in various formats such as JSON, Markdown, CSV, and more.
- Date-based Retrieval: Fetch problems available since a specific date for targeted practice sessions.
Integration with atcoder-cli
prog_shojin_util
offers integration capabilities with atcoder-cli
, an essential tool in the competitive programming community. By saving the fetched problems as contest.acc.json
in a directory and then using atcoder-cli
in that directory, you can streamline your problem-solving workflow.
-
Create a Workspace for Practice: Begin by setting up a designated workspace for the problems.
mkdir practice cd practice
-
Fetch Unsolved Problems with prog_shojin_util: Fetch problems curated by a specific user (
edge2992
in this case) from a Qiita post and save them in a format suitable foratcoder-cli
.pshu --atcoder-user edge2992 \ -t https://qiita.com/e869120/items/f1c6f98364d1443148b3 \ --status not-ac \ --output acc_json > contest.acc.json
-
Integrate with atcoder-cli: With the
contest.acc.json
file at hand, you can now use theatcoder-cli
to add the problems to your list of tasks.acc add -c inquire
By following these steps, you can efficiently extract unsolved problems from a curated list, then download and submit tests using atcoder-cli.
Supported Contest Platforms
Here's a list of contest platforms supported by prog_shojin_util
:
Contest Platform | Support Status |
---|---|
AtCoder | ✅ |
Yukicoder | ✅ |
[Other platforms] | ❌ |
Installation
To install prog_shojin_util
, use the following command:
pip install prog_shojin_util
Ensure you have a compatible Python version installed.
Examples
To fetch unsolved problems from a specific URL for a given AtCoder user:
pshu --atcoder-user john_doe \
-t https://example.com/problems \
--status not-ac
To obtain all problems in CSV format for a Yukicoder user:
pshu --yukicoder-user jane_doe \
-t https://example.com/problems \
--status both --output csv
For detailed options and configurations, consult the Options section.
Options
Here's a breakdown of the available options in prog_shojin_util
:
-
--atcoder-user TEXT
: Specify the User ID for AtCoder to filter problems based on the user's activity. -
--yukicoder-user TEXT
: Specify the User Name for Yukicoder to filter problems based on the user's activity. -
-t, --target TEXT
: The base URL from which problem links will be fetched. This option is mandatory. -
--status [ac|not-ac|both]
: Filter problems based on their AC (Accepted) status.ac
: For problems already solved.not-ac
: For unsolved problems.both
: For all problems. The default isnot-ac
.
-
--output [json|markdown|csv|acc_json]
: Choose the desired output format:json
: Standard JSON format.markdown
: Markdown format.csv
: CSV format.acc_json
: The format used by the atcoder-cli tool. The default isjson
.
-
--since DATE_FORMAT
: Filter problems available since the specified date. Use the format 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS'. The default is set to 2012-01-01. -
--verbose
: Enable this option for detailed logging, which aids in debugging.
For command-line help, use the --help
option.
Acknowledgements
Special thanks to the AtCoder Problems API and Yukicoder API for providing invaluable data resources. Our tool, prog_shojin_util
, greatly benefits from its capabilities.
Contributing
If you'd like to contribute to the project, feel free to submit issues or pull requests.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file prog_shojin_util-0.1.1.tar.gz
.
File metadata
- Download URL: prog_shojin_util-0.1.1.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab168ecf3390eefceddf67913b4bbc2c1faeb7f948c2a20e70ea13dbdc7e43cb |
|
MD5 | e42f8807ac91547256a27635f5453b90 |
|
BLAKE2b-256 | 6939dbca19b0eada2bc5e0918d5ba0baea55036733b73e0c09fad430c2868522 |
File details
Details for the file prog_shojin_util-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: prog_shojin_util-0.1.1-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56bc411403ec059af775013927ff052442c1753ef58ef74c936b57f8945e7e9c |
|
MD5 | 174fe7a9976d3b054c0b95bb4f7132e8 |
|
BLAKE2b-256 | a198732ba401cd75dd06adf471d5082b51a2b068ad6b9ea9c8583b75e6925630 |