cookie-composer-0.9.2
توضیحات
Create new projects from a composition of several templates
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cookie-composer-0.9.2 |
| نام | cookie-composer |
| نسخه کتابخانه | 0.9.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Corey Oordt |
| ایمیل نویسنده | coreyoordt@gmail.com |
| آدرس صفحه اصلی | https://github.com/coordt/cookie-composer |
| آدرس اینترنتی | https://pypi.org/project/cookie-composer/ |
| مجوز | - |
# Cookie Composer
<!-- start-badges -->
[][pypi_]
[][status]
[][python version]
[][license]
[](https://codecov.io/gh/callowayproject/cookie-composer)
[pypi_]: https://pypi.org/project/cookie-composer/
[status]: https://pypi.org/project/cookie-composer/
[python version]: https://pypi.org/project/cookie-composer
[license]: https://github.com/callowayproject/cookie-composer/blob/master/LICENSE
Documentation: https://callowayproject.github.io/cookie-composer/
<!-- end-badges -->
Cookie composer builds on the [cookie cutter](https://github.com/cookiecutter/cookiecutter) project to generate projects based on one or more cookiecutter templates.
## Goals
- Create new projects from a composition of several templates
- Add new capabilities to an existing repository by applying a template
- Apply template updates to the generated project
## Introduction
Cookie Cutter treats templates like sandwiches. There are templates for hamburgers, clubs, and any other kind of sandwich you can dream up. You might have options and defaults on a template, like `Hold the mustard?[False]:` or `Mustard type [dijon]:`, but those are decided by the template author.
<img src="https://raw.githubusercontent.com/coordt/cookie-composer/master/docsrc/_static/img/sandwiches.png" alt="Templates are treated like finished sandwiches" style="zoom:50%;" />
If you look closely at the sandwiches (templates), there is usually many things in common. What if we treated the templates as compositions of other templates:
<img src="https://raw.githubusercontent.com/coordt/cookie-composer/master/docsrc/_static/img/compositions.png" alt="Sandwiches as a composition of layers" style="zoom:50%;" />
You now can manage several smaller and specialized templates that provide functionality. Each template's options will be specific to what that template needs.
<img src="https://raw.githubusercontent.com/coordt/cookie-composer/master/docsrc/_static/img/layers.png" alt="Templates broken out as layers on a sandwich" style="zoom:50%;" />
Cookie Composer uses a composition file to describe the layers required, and even override a template's default answers.
```yaml
template: bottom-bun
context:
toasting_level: light
buttered: False
---
template: burger
---
template: cheese
context:
kind: swiss
---
template: bacon
context:
cooking_level: crispy
---
template: ketchup
---
template: mustard
context:
type: yellow
---
template: top-bun
context:
toasting_level: light
buttered: False
```
We have created [a repo of highly composable templates](https://github.com/coordt/cookiecomposer-templates) as examples or reference. However, Cookie Composer is designed to handle any Cookie Cutter template.
## Purpose
- Separate out parts to a repo into composable templates
- Boilerplate
- README, CONTRIBUTING, docs, Makefile, license, tooling configurations
- Project-specific
- Django
- Flask
- Library
- Data science
- CI/CD specific
- Helm chart
- GitHub Actions vs. Jenkins vs. ...
- Documentation specific
- Sphinx
- MkDocs
- Each composable template is managed and updated individually
- A project can update itself based on chages in layers
## Please contribute
- Documentation critiques
- Documentation suggestions
- Feature suggestions
- Feature improvements
- Edge case identification
- Code improvements
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
| - | backports.shutil-copytree |
| - | click-log |
| >=2.0.0 | cookiecutter |
| - | fsspec |
| - | ghapi |
| - | gitpython |
| - | immutabledict |
| - | orjson |
| - | pydantic |
| - | questionary |
| - | requests |
| - | rich-click |
| - | ruamel.yaml |
| - | toml |
| ==3.8.3 | aiohttp |
| ==1.2.0 | aiosignal |
| ==1.2.3 | arrow |
| ==4.0.2 | async-timeout |
| ==22.1.0 | attrs |
| ==0.0.0.2 | backports-shutil-copytree |
| ==0.4.4 | binaryornot |
| ==22.10.0 | black |
| ==2022.9.24 | certifi |
| ==3.3.1 | cfgv |
| ==5.0.0 | chardet |
| ==2.1.1 | charset-normalizer |
| ==8.1.3 | click |
| ==0.4.0 | click-log |
| ==0.9.1 | commonmark |
| ==2.1.1 | cookiecutter |
| ==6.5.0 | coverage[toml] |
| ==0.3.6 | distlib |
| ==1.5.27 | fastcore |
| ==3.8.0 | filelock |
| ==5.0.4 | flake8 |
| ==1.3.1 | frozenlist |
| ==2022.8.2 | fsspec |
| ==1.0.3 | ghapi |
| ==4.0.9 | gitdb |
| ==3.1.28 | gitpython |
| ==2.5.6 | identify |
| ==3.4 | idna |
| ==2.2.3 | immutabledict |
| ==1.1.1 | iniconfig |
| ==3.1.2 | jinja2 |
| ==0.2.0 | jinja2-time |
| ==2.1.1 | markupsafe |
| ==0.7.0 | mccabe |
| ==6.0.2 | multidict |
| ==0.4.3 | mypy-extensions |
| ==1.7.0 | nodeenv |
| ==3.8.3 | orjson |
| ==23.0 | packaging |
| ==0.10.1 | pathspec |
| ==2.5.2 | platformdirs |
| ==1.0.0 | pluggy |
| ==2.20.0 | pre-commit |
| ==3.0.36 | prompt-toolkit |
| ==1.11.0 | py |
| ==2.9.1 | pycodestyle |
| ==1.10.2 | pydantic |
| ==2.5.0 | pyflakes |
| ==2.13.0 | pygments |
| ==7.1.3 | pytest |
| ==4.0.0 | pytest-cov |
| ==0.6.2 | pytest-env |
| ==3.10.0 | pytest-mock |
| ==2.8.2 | python-dateutil |
| ==6.1.2 | python-slugify |
| ==6.0 | pyyaml |
| ==1.10.0 | questionary |
| ==2.28.1 | requests |
| ==12.6.0 | rich |
| ==1.5.2 | rich-click |
| ==0.17.21 | ruamel-yaml |
| ==0.2.6 | ruamel-yaml-clib |
| ==1.16.0 | six |
| ==5.0.0 | smmap |
| ==1.3 | text-unidecode |
| ==0.10.2 | toml |
| ==2.0.1 | tomli |
| ==4.4.0 | typing-extensions |
| ==1.26.12 | urllib3 |
| ==20.16.2 | virtualenv |
| ==0.2.6 | wcwidth |
| ==1.8.1 | yarl |
| ==0.7.13 | alabaster |
| ==2.11.0 | babel |
| ==4.11.1 | beautifulsoup4 |
| ==0.19 | docutils |
| ==2022.12.7 | furo |
| ==2.1.0 | ghp-import |
| ==1.4.1 | imagesize |
| ==2.0.0 | linkify-it-py |
| ==2.1.0 | markdown-it-py |
| ==0.3.3 | mdit-py-plugins |
| ==0.1.2 | mdurl |
| ==0.18.1 | myst-parser |
| ==2022.7.1 | pytz |
| ==2.2.0 | snowballstemmer |
| ==2.3.2.post1 | soupsieve |
| ==5.3.0 | sphinx |
| ==1.21.6 | sphinx-autodoc-typehints |
| ==1.0.0b1 | sphinx-basic-ng |
| ==4.4.0 | sphinx-click |
| ==0.5.1 | sphinx-copybutton |
| ==1.0.3 | sphinxcontrib-applehelp |
| ==1.0.2 | sphinxcontrib-devhelp |
| ==2.0.0 | sphinxcontrib-htmlhelp |
| ==1.0.1 | sphinxcontrib-jsmath |
| ==1.0.3 | sphinxcontrib-qthelp |
| ==1.1.5 | sphinxcontrib-serializinghtml |
| ==1.0.1 | uc-micro-py |
| >=1.0.1 | bump2version |
| >=1.12.2 | git-fame |
| - | generate-changelog |
| - | pip-tools |
| ==3.8.3 | aiohttp |
| ==1.2.0 | aiosignal |
| ==1.2.3 | arrow |
| ==4.0.2 | async-timeout |
| ==22.1.0 | attrs |
| ==0.0.0.2 | backports-shutil-copytree |
| ==0.4.4 | binaryornot |
| ==2022.9.24 | certifi |
| ==5.0.0 | chardet |
| ==2.1.1 | charset-normalizer |
| ==8.1.3 | click |
| ==0.4.0 | click-log |
| ==0.9.1 | commonmark |
| ==2.1.1 | cookiecutter |
| ==1.5.27 | fastcore |
| ==1.3.1 | frozenlist |
| ==2022.8.2 | fsspec |
| ==1.0.3 | ghapi |
| ==4.0.9 | gitdb |
| ==3.1.28 | gitpython |
| ==3.4 | idna |
| ==2.2.3 | immutabledict |
| ==3.1.2 | jinja2 |
| ==0.2.0 | jinja2-time |
| ==2.1.1 | markupsafe |
| ==6.0.2 | multidict |
| ==3.8.3 | orjson |
| ==23.0 | packaging |
| ==3.0.36 | prompt-toolkit |
| ==1.10.2 | pydantic |
| ==2.13.0 | pygments |
| ==2.8.2 | python-dateutil |
| ==6.1.2 | python-slugify |
| ==6.0 | pyyaml |
| ==1.10.0 | questionary |
| ==2.28.1 | requests |
| ==12.6.0 | rich |
| ==1.5.2 | rich-click |
| ==0.17.21 | ruamel-yaml |
| ==0.2.6 | ruamel-yaml-clib |
| ==1.16.0 | six |
| ==5.0.0 | smmap |
| ==1.3 | text-unidecode |
| ==0.10.2 | toml |
| ==4.4.0 | typing-extensions |
| ==1.26.12 | urllib3 |
| ==0.2.6 | wcwidth |
| ==1.8.1 | yarl |
| >=19.10b0 | black |
| >=6.1.2 | coverage |
| >=4.0.1 | flake8 |
| >=2.15.0 | pre-commit |
| >=3.0.0 | pytest-cov |
| - | pytest-env |
| - | pytest-mock |
| >=6.0.0 | pytest |
| <20.16.3 | virtualenv |
نحوه نصب
نصب پکیج whl cookie-composer-0.9.2:
pip install cookie-composer-0.9.2.whl
نصب پکیج tar.gz cookie-composer-0.9.2:
pip install cookie-composer-0.9.2.tar.gz