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
-
cptemplatecan be used by directly typing the commandcptemplatein CMD/Terminal -
For creating a new template file, the command
cptemplate newis used, which by default creates anew.pyfile in the directory wherecptemplatecommand is run. By usingcptemplate new -n <file_name>, template with namefile_namewill 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 testis used to runnew.py(default command). To open a file with custom name, the commandcptemplate test -n <file_name>is used, to runfile_name.pyfile
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
Metadata
Release files for cptemplate 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cptemplate-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for cptemplate-1.0.4-py3-none-any.whl |
Release files / cptemplate-1.0.4-py3-none-any.whl
| Download URL | cptemplate-1.0.4-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eedf1728d0a078b0e65c8dcbe95d97d472c51fcb26e8fb63799d123a4408bf07
|
|
BLAKE2b-256 checksum How to use checksums |
fa8f796b2410775d990afcee589b486a57386d50cee55b7319ab3e409afcf737
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for cptemplate 1.0.4
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.