Skip to main content

cptemplate

Module for creating a pre-defined competitive programming template for python

View on PyPi: https://pypi.org/project/cptemplate/

made-with-python PyPI version shields.io MIT license

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 command cptemplate in CMD/Terminal

  • For creating a new template file, the command cptemplate new is used, which by default creates a new.py file in the directory where cptemplate command is run. By using cptemplate new -n <file_name>, template with name file_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 name file_name

cptemplate new -n main
  • For running/testing the file, the command cptemplate test is used to run new.py (default command). To open a file with custom name, the command cptemplate test -n <file_name> is used, to run file_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

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)

Table of built distributions (wheels) for cptemplate 1.0.4
File Interpreter ABI Platform
cptemplate-1.0.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page