Competetive Programming Management Tool
Project description
Contest Builder
Contest Builder is a Python tool designed to simplify the process of managing programming contest solutions by providing a structured workflow for organizing, compiling, and testing code.
Features
- Quickly generate the folder and file structure for a contest's problems.
- Customize templates for generating solution files.
- Compile and run solutions with ease.
- Test solutions for correctness.
Table of Contents
Installation
You can install Contest Builder via pip:
pip install contest-builder
Usage
-
Initializing The Workspace
In order to specify the template files and default options for the future, you need to initialize a folder inorder to store the files of the contest over there.
contest-builder --init
- this will generate:
- A config file named cb-config.josn, and
- A template folder to put your own language specific templates there.
- Generating Contest Structure
To generate the folder and file structure for a contest, use the contest-builder command with the --name option:
contest-builder --name <contest_name>
This will create the necessary directories and files for each problem in the contest, using the provided templates. You can specify the details of the contest by passing other options as well. The list of all options are as follow:
--provider <site_provider>You need to specify the website that provides the contest in the config file first. There are some default values as well likecodeforcesandleetcode.--problem_cnt <problem_count>Specify the number of problems.--language <programming_language>Specify the language you are using at this contest if it differs from the default value.--name_type <folders_name_type>It can bealphabetical,numerical, orroman.
- Compiling and Running Solutions
To compile and run a solution for a specific problem, use the contest-builder command with the --run option:
contest-builder --run <problem_name>
This will compile and execute the solution file for the specified problem. Also if you are located in the
problem's folder, you can discard the <problem_name> and just pass the --run option to compile and execute the code.
-
Creating Structure for Single Problem
You can also create the folder and file structure for a single problem using the contest-builder command with the
--problemoption:
contest-builder --problem <problem_name>
This will generate the necessary files and directories for the specified problem.
Configuration
Contest Builder allows you to customize templates for generating solution files. You can modify these templates according to your preferences by editing the template files located in the templates directory.
Also you need to edit the compile and run sections in the config file as you want to be done.
Contributing
Contributions are welcome! If you have any ideas for improvements or new features, feel free to open an issue or submit a pull request.
License Contest Builder is licensed under the MIT License. See the LICENSE file for details.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file contest-builder-0.0.2.tar.gz.
File metadata
- Download URL: contest-builder-0.0.2.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7de525e1f796d19810be1457bbd2bc0ab64babae62f93f70852e67cfad5cf16c
|
|
| MD5 |
7d2c970c74a299adeed5078f2d98c29a
|
|
| BLAKE2b-256 |
4b41a3ae6a4aef1f8291d8e7ffe57d7f76932b0940257cd607ae89b10dbfd60b
|
File details
Details for the file contest_builder-0.0.2-py3-none-any.whl.
File metadata
- Download URL: contest_builder-0.0.2-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89fb6c746b9dc2fd236516d5f738698ce39fc2903a7f8c3e6e572b3ade818cd9
|
|
| MD5 |
3fdea7d601f9e5047d573295bcf6a4f8
|
|
| BLAKE2b-256 |
1c2e9668f4cf6b40ef36e074f14d70879e1f05e109812af2bad4726a8a771368
|