Skip to main content

It uses a simple python script (Cakefile) located in the project root to define its tasks. Cake can be run and can run tasks from anywhere within the project.

Features

  • Task descriptions

  • Task arguments

  • Colored output

Usage

List all tasks

cake

Execute task

cake [name] [args]

Example

$ cat Cakefile
import subprocess as sbp

from cake.lib import task, path, puts

@task("description override")
def test():
    """ task description """
    print('current dir: %s' % path.current)
    print('project dir: %s' % path.root)

@task
def shell(value):
    """ execute a custom shell command """
    puts('{magenta}>>{yellow} %s' % value)
    sbp.call(value, shell=True)
$ cake
(in /home/alex/work/cake/examples)
cake shell                                 # execute a custom shell command
cake test                                  # description override
$ cake shell "date"
(in /home/alex/work/cake/examples)
>> date
Thu Jul 21 20:15:37 EEST 2011

Install

pip install cake

Metadata

Release files for cake 0.2.2

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

Source distribution (sdist)

Source distribution for cake 0.2.2
File Size Uploaded
cake-0.2.2.tar.gz 4.0 kB Details

Release files / cake-0.2.2.tar.gz

Download URL cake-0.2.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b01ad4ad7024798960cb891d7d4a60e8652965394402fa7a9b58eaf9782534c4
BLAKE2b-256 checksum
How to use checksums
4f3212d66daaaa9278a8f5b3c28edb6422798decb20609c5213b36aaf45b4d72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2.3

1 release file

This release

0.2.2 This release

1 release file

0.2.1

1 release file

0.2

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