pyKook is a very useful tool to control your task such as compile, install or clean. pyKook is similar to Make, Rake, Ant, or Cook. Kookbook.py, which is a task definition file for pyKook, is written in Python.
Simple Example of Kookbook.py:
@recipe
def hello(c):
print("Hello")
Output Result:
bash> kk hello # or pykook hello ### * hello (recipe=hello) Hello
Other Example of Kookbook.py:
CC = prop('CC', 'gcc -Wall')
kookbook.default = 'all'
@recipe
@ingreds('hello') # ingredients
def all(c): # or task_all(c)
pass
@recipe('*.o', ['$(1).c', '$(1).h']) # @recipe(product, [ingredients])
def file_o(c):
"""compile *.c and *.h into *.o"""
system(c%'$(CC) -c $(ingred)')
@recipe('hello', ['hello.o']) # @recipe(product, [ingredients])
def file_hello(c):
"""create 'hello' command"""
system(c%'$(CC) -o $(product) $(ingred)')
@recipe
def clean(c):
rm_rf("**/*.o", "**/*~")
## or
kookbook.load('@kook/books/clean.py') # load 'clean' and 'sweep' recipes
CLEAN.append("**/*.o")
See User’s Guide for details.
Metadata
Release files for Kook 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Kook-0.7.2.tar.gz | 188.7 kB | Without provenance | Details for Kook-0.7.2.tar.gz |
Release files / Kook-0.7.2.tar.gz
| Download URL | Kook-0.7.2.tar.gz |
|---|---|
| Size | 188.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00d05f30bc68b86ef0430d8074c3fba654a989391724236da4878c623595c966
|
|
BLAKE2b-256 checksum How to use checksums |
7baa71cf105729b385a99fb07dfbf038e1144f4ddea1ca6b26f21d1286cee3fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Kook 0.7.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.