mkcpr ·

Competitive Programming Reference Builder Tool
About
mkcpr is a command line utility written in python that helps you to build your Competitive Programming Reference in PDF.
This command will generate a LaTex formatted file, which will be ready to be compiled into your new Competitive Programming Reference, using any online or local LaTex compiler of your preference.
Usage
- In your working directory run:
mkcpr [-c|-h]
Notes:
- The configuration file
mkcpr-config.jsonshould be in the same working directory. (Same path where you runmkcpr). -cflag creates a new configuration filemkcpr-config.jsonin the current directory.-hdisplays help.
Requirements
- python 3.5+
- Online or local LaTex compiler
- Folder containing your codes for programming competitions
- LaTex template (you can use the one provided in this repository
Example/Template.tex) - Configuration File
mkcpr-config.json(described below)
Installation
- Run:
pip install mkcpr --user
- Copy the LaTex template
Template.texlocated in theExamplefolder of this repository to your working directory. - In your working directory run
mkcpr -cto create a new configuration filemkcpr-config.json. - Update
mkcpr-config.jsonandTemplate.texaccording to your needs. See the Configuration file options section for reference. - You are now ready to run
mkcprin your working directory.
Configuration File Options
{
"code_folder": "/home/san/Projects/mkcpr/Example/CodeFolder", // Path to your actual code for reference
"template_path": "/home/san/Projects/mkcpr/Example/Template.tex", // LaTex template path
"output_file_path": "/home/san/Projects/mkcpr/Example/Output.tex", // path where you want the generated LaTex code to be
"excluded": ["__pycache__", ".vscode"], // folders not to consider
"columns": 2, // number of columns in your reference
"template_placeholder": "CODE HERE", // text to replace in your template
"sort_before": ["Data Structures"], // files or folders will appear first
"sort_after": ["Extras"], // file or folders will appear at the end
}
Features
- One single command and your reference will be ready to compile
- Build it with your own style
- support for most file extensions. (.cpp, .py, .java, .tex, .sh, ...)
- Build your reference just from your competitive programming code folder.
| Folder Structure | Table Of Contents |
|---|---|
|
|
|
- Forget about undesired line breaks by specifying the lines of code you want together in the same page with a single comment before your lines of code.
|
|
|
|
|
|
Example
You can see an example of how a working directory would look like in a real Competitive Progamming Reference HERE
License
mkcpr is licensed under the GNU General Public License v3.0
Metadata
Release files for mkcpr 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mkcpr-1.2.1.tar.gz | 20.3 kB | Without provenance | Details for mkcpr-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkcpr-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for mkcpr-1.2.1-py3-none-any.whl |
Total release size: 41.9 kB
Release files / mkcpr-1.2.1.tar.gz
| Download URL | mkcpr-1.2.1.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3e1c103e68a5b97bb2f788283b401095d54e7053864a45b41717b5db698acc9
|
|
BLAKE2b-256 checksum How to use checksums |
72286ff6f721d4204f8236e4e44548ad1256f3c948fae4525e74eb98d9d8ec8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.4 Linux/5.4.44-1-MANJARO
|
Release files / mkcpr-1.2.1-py3-none-any.whl
| Download URL | mkcpr-1.2.1-py3-none-any.whl |
|---|---|
| Size | 21.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e99d54e24fc4ed8044b4dc7aeea0e8666373ff9068c8c4035c4f43782c5e5b4
|
|
BLAKE2b-256 checksum How to use checksums |
d393fb94b493de311f21e23d3a5315a47f440bc15cf84f448a959bd60333ce21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.4 Linux/5.4.44-1-MANJARO
|
Security for mkcpr 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.