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 details)

Uploaded Python 3

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

Hashes for cptemplate-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eedf1728d0a078b0e65c8dcbe95d97d472c51fcb26e8fb63799d123a4408bf07
MD5 30ad207f9812c8c0f598a1c408668dd8
BLAKE2b-256 fa8f796b2410775d990afcee589b486a57386d50cee55b7319ab3e409afcf737

See more details on using hashes here.

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