Skip to main content

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.

Release files for cookiejar 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cookiejar 0.0.3
File Size Uploaded
cookiejar-0.0.3.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cookiejar 0.0.3
File Interpreter ABI Platform
cookiejar-0.0.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 23.7 kB

Release files / cookiejar-0.0.3.tar.gz

Download URL cookiejar-0.0.3.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4657a20f6f1df6c4f89d1c1227f51c9df253997a25f5c0b07e85c18e10b06a1a
BLAKE2b-256 checksum
How to use checksums
eeed9f12c2ff7678dc2219b925b191dea0ab9f4ae28f885180c864ca5ce48f9a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / cookiejar-0.0.3-py2.py3-none-any.whl

Download URL cookiejar-0.0.3-py2.py3-none-any.whl
Size 12.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a5c64328133dd74d7958a817ac10db92e1c9db84182f0f5853c8dd3501311100
BLAKE2b-256 checksum
How to use checksums
8b6e4772829ad8ab1b14658ee455f4e82d3e6d0ac52d76434892b2859b18877e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page