cookie cutter template manager
Project description
CCTM = cookie cutter template manager
project templates manager for cookiecutter
(python3 only)
quick examples
$ cctm init
$ cctm selfupdate
$ cctm install audreyr/cookiecutter-pypackage
$ cctm use audreyr/cookiecutter-pypackage
# alias
$ cctm management alias audreyr/cookiecutter-pypackage pypackage
$ cctm use pypackage
# extra_context configuration
$ cctm config --name=full_name --value=podhmo.podhmo
$ cctm use pypackage
setup
$ pip install cctm
cctm uses individual configuration file(cctm.json).
searching cctm.json
searching method is here.
first, from current working directory, searching “cctm.json” file, recuresively.
e.g. if cwd is ~/foo/bar/boo. searching below paths.
~/foo/bar/boo/cctm.json
~/foo/bar/cctm.json
~/foo/cctm.json
~/cctm.json
second, if cctm.json is not found on first process, then, using ~/.cctm/cctm.json (default path)
generating configuration file
generating configuration file via cctm init.
$ cctm init
# if generating configuration file as current working directory
$ cctm init --project=.
package information
listing package information via cctm list
$ cctm list | grep pypackage
kragniz/cookiecutter-pypackage-minimal(12) -- A minimal template for python packages
audreyr/cookiecutter-pypackage(555) -- Cookiecutter template for a Python package.
pypackage -> audreyr/cookiecutter-pypackage # this is alias
show detail via cctm show
$ cctm show audreyr/cookiecutter-pypackage
{
"updated_at": "2016-01-08T22:53:23Z",
"url": "https://github.com/audreyr/cookiecutter-pypackage",
"name": "audreyr/cookiecutter-pypackage",
"description": "Cookiecutter template for a Python package.",
"star": 555,
"created_at": "2013-07-14T18:52:05Z"
}
your custom repositories
if you store url in repositories of configration file, cctm recognizes as package repositoriy.
default reposotiries are here.
"repositories": [ "https://raw.githubusercontent.com/podhmo/cctm/master/data/cookiecutter.index.json" ]
package format example
{ "name": "chrisdev/wagtail-cookiecutter-foundation", "url": "https://github.com/chrisdev/wagtail-cookiecutter-foundation", "description": "Cookiecutter template for Wagtail CMS using Zurb Foundation 5", "created_at": "2015-04-13T13:36:50Z", "updated_at": "2016-01-04T14:53:04Z", "star": 23 }
if you know, github url, be able to fetch information via cctm management fetch
$ cctm management fetch chrisdev/wagtail-cookiecutter-foundation
{
"name": "chrisdev/wagtail-cookiecutter-foundation",
"url": "https://github.com/chrisdev/wagtail-cookiecutter-foundation",
"description": "Cookiecutter template for Wagtail CMS using Zurb Foundation 5",
"created_at": "2015-04-13T13:36:50Z",
"updated_at": "2016-01-04T14:53:04Z",
"star": 23
}
# store data at local.json
$ cctm management fetch chrisdev/wagtail-cookiecutter-foundation --save --store=./local.json
please, don’t forget to call cctm selfupdate. this command synchnonizes at local data and repositoriies data.
$ cctm selfupdate
0.2
build bug fix.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.