cookiecutter-x-0.1.4
توضیحات
Cookiecutter eXtended
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cookiecutter-x-0.1.4 |
| نام | cookiecutter-x |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Fahad Shaon |
| ایمیل نویسنده | fs@shaon.dev |
| آدرس صفحه اصلی | https://github.com/fahadshaon/cookiecutter-x |
| آدرس اینترنتی | https://pypi.org/project/cookiecutter-x/ |
| مجوز | http://www.apache.org/licenses/LICENSE-2.0 |
# Cookiecutter-X
Cookiecutter eXtended is a code generator based on Jinja and Cookiecutter with some extra features.
Such as single file generation, local template management, template documentation,
provide template input using arguments instead of interactive prompts.
## Installation
Like every other python package, you can install `cookiecutter-x` with
```shell
pip install cookiecutter-x
```
It will create the executable console script `cookiecutter-x` in the bin directory.
## Templates
Cookiecutter-X supports two types of templates.
- **Simple template**, optimized for generating standalone script(s), e.g. a bash script.
- **Cookiecutter template**, optimized for starting a new project, e.g., a python project
## Getting started quickly
- Generate configurations (stored at `$HOME/.cookiecutter-x/ccx-config.yml`)
```shell
cookiecutter-x quick-start config
```
- Add or write templates
- Create a simple example template for generating CPP header and class pair
```shell
cookiecutter-x quick-start example-template
```
- See the list of available simple templates
```shell
cookiecutter-x simple list
```
- See the documentation of a template
```shell
cookiecutter-x simple doc cpp
```
- Generate files based on a template
```shell
cookiecutter-x simple process cpp --class_name 'FilesUtils'
```
Read more at the documentation site - <https://cookiecutter-x.shaon.dev>
نیازمندی
| مقدار | نام |
|---|---|
| - | cached-property |
| - | cookiecutter |
| - | click |
| - | coloredlogs |
| - | Jinja2 |
| - | PyYaml |
| - | tabulate |
| - | coverage |
| - | pyfakefs |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cookiecutter-x-0.1.4:
pip install cookiecutter-x-0.1.4.whl
نصب پکیج tar.gz cookiecutter-x-0.1.4:
pip install cookiecutter-x-0.1.4.tar.gz