Skip to main content

browser and install GUI for cookiecutter templates

Project description

cookiedough(1) is a GUI browser for cookiecutter templates. And can of course extract them. It comes with a database of around 4150 cookietemplates, grouped by category, and allows some rudimentary filtering. Still beta, but usable.

screenshot main window

Installation / Use

Just install it as normal pip package:

~$   pip3 install -U cookiedough

And start it from a terminal window:

~/projects$   cookiedough

Keep an eye on the terminal when rolling out a template. Not all prompts might be captured by monkeypatching.

Notes

There's some usage information in the man page, and in the →Help→Help.

Bugs / Caveats

  • No support for template dictionary variables. (They're not widely used though.)
  • Database does not contain any directoried templates yet. (A few exist however.)
  • The README colorization is fairly basic. (But more processsing would slow it down too much.)
  • It can crash when speed-scrolling through the templates. (Perhaps PSG vs Tk threads issue.)
  • Tkinter might also crash when encountering emojis. (Either install Symbola font and get rid of Noto Color Emoji. Or upgrade to tcl/tk 8.6.10, or go back to Ubuntu 18.04 where it miraculously worked.)

See also

API

Unlike cookiecutter, there aren't many public APIs in a GUI tool. The internal database is easily accessible though:

import cookiedough
ls = cookiedough.repos.search(["pyproject.toml", "\w+test"])

There's not much in the update module yet, besides the scoring method:

cookiedough.update.score(ls.values()[0])

Whereas the rollout module provides the cc config interface:

ccc = cookiecutter.rollout.CookieCutterConfig()
print(ccc.fn, ccc.dir, ccc.replay)
d = ccc.read_config()

As well as the .cutting() wrapper, or even .hijack_prompt() and .task().

from project import meta

meta info
depends pysimplegui, sys:tkinter, cookiecutter, pluginconf, appdirs, requests, ...
compat Python ≥3.8, BSD/Linux
compliancy xdg, pluginspec, !pep8, !desktop, !xdnd, mallard, man, !netrc, dotenv, !http_proxy, nobackup, !releases.json, !doap, !packfile
system usage rare (xdg-open only)
paths ~/.config/cookiedough/
testing None
docs minimal wiki, mallard/yelp, news
activity backburner
state beta
support email
contrib mail, fossil
announce freshcode.club

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cookiedough-0.3.0-py3-none-any.whl (4.6 MB view details)

Uploaded Python 3

File details

Details for the file cookiedough-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: cookiedough-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.2

File hashes

Hashes for cookiedough-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b68f123c3b91bb8ef97e6c315628f84116c57ea6650418c42fc89ba9e1ffa05
MD5 11831ddc1d8e8c1a1c1e7c7a2efd22cf
BLAKE2b-256 005ab4f2bede7aa583a0683edb4080d9faafe8ab912e7a3ca9562554f306d8bb

See more details on using hashes here.

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