Skip to main content

Cookiecutter templates discovery and management.

Project description

cookiejar

Cookiecutter templates discovery and management.

Usage:

$ pip install cookiejar
$ cookiejar create <templatename> [options]

Will use cookiecutter to create a new package from the template.

Options

All options can be specified on the command-line. Users can override everything by creating a config file at ~/.cookiejar/cookiejarrc.

Managing templates

You can list, search and download templates from a ‘templates index’.

The following commands are available:

$ cookiejar list [--index=<index>]
$ cookiejar search <text> [--index=<index>]
$ cookiejar add <package_name> [<url>] [--index=<index>]
$ cookiejar installed
$ cookiejar remove <package_name>

Creating new packages from a template

To create a new package:

$ cookiejar create <template_name> [options]

Available Commands

list

Lists all templates available on the index.

Options

--index=<url>

Optional. Specifies an alternative index to use.

add

Downloads the specified template to your ~/.cookiecutters/templates/ directory.

Options

<template_name>

Required. The template you want to download.

<url>

Optional. If specified, downloads the template from there instead of using the index. Accepts pip-like URLs, as git+https://github.com/user/repo.git.

--index=<url>

Optional. Specifies an alternative index to use.

installed

Lists templates that have already been downloaded.

remove

Deletes the specified template from your ~/.cookiecutters/templates/ directory.

Options

<template_name>

Required. The template you want to remove.

create

Creates a new package using the specified template.

Options

<template_name>

Required. The template you to use.

[options]

Optional. Any options specified will be added to cookiecutter’s context when creating the package. Options are specified as --key=value.

TODO

  • add register and upload commands

  • use an actual REST API and server (requires $$ for the infrastructure)

  • put a pretty picture of a cookie jar in this readme.

Status

This software should be considered Alpha.

License

This project is released under the 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 Distribution

cookiejar-0.0.3.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

cookiejar-0.0.3-py2.py3-none-any.whl (12.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cookiejar-0.0.3.tar.gz.

File metadata

  • Download URL: cookiejar-0.0.3.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for cookiejar-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4657a20f6f1df6c4f89d1c1227f51c9df253997a25f5c0b07e85c18e10b06a1a
MD5 8b13e73575baec1a04d1d8a91b90adca
BLAKE2b-256 eeed9f12c2ff7678dc2219b925b191dea0ab9f4ae28f885180c864ca5ce48f9a

See more details on using hashes here.

Provenance

File details

Details for the file cookiejar-0.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: cookiejar-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for cookiejar-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a5c64328133dd74d7958a817ac10db92e1c9db84182f0f5853c8dd3501311100
MD5 cfa7dd896895b15ac0c0b457b057c05a
BLAKE2b-256 8b6e4772829ad8ab1b14658ee455f4e82d3e6d0ac52d76434892b2859b18877e

See more details on using hashes here.

Provenance

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