cptemplate-1.0.4
توضیحات
competitive programming template
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cptemplate-1.0.4 |
| نام | cptemplate |
| نسخه کتابخانه | 1.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Devansh Singh |
| ایمیل نویسنده | devanshamity@gmail.com |
| آدرس صفحه اصلی | https://github.com/Devansh3712/cptemplate |
| آدرس اینترنتی | https://pypi.org/project/cptemplate/ |
| مجوز | MIT |
# cptemplate
Module for creating a pre-defined competitive programming template for python
View on PyPi: https://pypi.org/project/cptemplate/
[](https://www.python.org/)
[](https://pypi.org/project/pycrypt-cli/)
[](https://lbesson.mit-license.org/)
## Installation
`cptemplate` can be installed using pip, and it is an OS independent module
> Windows
```shell
pip install cptemplate
```
> Linux
```bash
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`
```shell
cptemplate new
```
> `-n <file_name>` command, creates file with name `file_name`
```shell
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`
```shell
cptemplate test
```
> runs `file_name.py`
```shell
cptemplate test -n main
```
## Contributing
Contributions can be made to the project by making PR's :)
## License
MIT License
نیازمندی
| مقدار | نام |
|---|---|
| ==7.1.2 | click |
| ==1.19.4 | numpy |
نحوه نصب
نصب پکیج whl cptemplate-1.0.4:
pip install cptemplate-1.0.4.whl
نصب پکیج tar.gz cptemplate-1.0.4:
pip install cptemplate-1.0.4.tar.gz