Skip to main content

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/

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

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cptemplate-1.0.4-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page