competitive programming template
Project description
cptemplate
Module for creating a pre-defined competitive programming template for python
View on PyPi: https://pypi.org/project/cptemplate/
Installation
cptemplate
can be installed using pip, and it is an OS independent module
Windows
pip install cptemplate
Linux
pip3 install cptemplate
Usage
Usage: cptemplate [OPTIONS] COMMAND [ARGS]...
competitive programming template for python
Options:
--help Show this message and exit.
Commands:
info information about the module
new create a new template file
test run and test the code
cptemplate
commands
-
cptemplate
can be used by directly typing the commandcptemplate
in CMD/Terminal -
For creating a new template file, the command
cptemplate new
is used, which by default creates anew.py
file in the directory wherecptemplate
command is run. By usingcptemplate new -n <file_name>
, template with namefile_name
will be created.
Usage: cptemplate new [OPTIONS]
create a new template file, default name new.py
Options:
-n, --file_name TEXT Set custom name for file
--help Show this message and exit.
default command, creates file
new.py
cptemplate new
-n <file_name>
command, creates file with namefile_name
cptemplate new -n main
- For running/testing the file, the command
cptemplate test
is used to runnew.py
(default command). To open a file with custom name, the commandcptemplate test -n <file_name>
is used, to runfile_name.py
file
Usage: cptemplate test [OPTIONS]
run and test the code, by default runs new.py
Options:
-n, --file_name TEXT Open .py file with custom name
--help Show this message and exit.
runs by default
new.py
cptemplate test
runs
file_name.py
cptemplate test -n main
Contributing
Contributions can be made to the project by making PR's :)
License
MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file cptemplate-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: cptemplate-1.0.4-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eedf1728d0a078b0e65c8dcbe95d97d472c51fcb26e8fb63799d123a4408bf07 |
|
MD5 | 30ad207f9812c8c0f598a1c408668dd8 |
|
BLAKE2b-256 | fa8f796b2410775d990afcee589b486a57386d50cee55b7319ab3e409afcf737 |