Skip to content

CLI tool to display useful recipes from O'Reilly Python Cookbook ed.3

License

Notifications You must be signed in to change notification settings

ChrisA87/pyrecipes

Repository files navigation

Pyrecipes

ci workflow Publish Pyrecipes to PyPI coverage-badge


Recipes from Python Cookbook, Third Edition, by David Beazley and Brian K. Jones. Copyright © 2013 David Beazley and Brian Jones. Published by O'Reilly Media, Inc. Used with permission.

This project implements a simple CLI tool to list, run and view these recipes.

Special thanks to O'Reilly Media, Inc and the Authors for permission to use their recipes.

Check out Author David Beazley's website: https://www.dabeaz.com/

Add this amazing book to your bookshelf here

Python Cookbook


Installation

pip install pyrecipes

Example Usage

Show recipes help and subcommands

recipes

List all chapters

recipes chapters

List all recipes

recipes ls

List all recipes in a specific chapter

recipes ls 1

List all recipes in a specific chapter with a short description

recipes ls 1 -d

Show recipe code

recipes show 1 3

Run the recipe as a script

recipes run 1 3

Search for recipes containing a pattern

RegEx is supported.

recipes search 'itertools'
recipes search 'itertools' --color green
recipes search 'event' --ignore-case
recipes search 'functools' -c
recipes search '[a-z]\d[^\s]'

About

CLI tool to display useful recipes from O'Reilly Python Cookbook ed.3

Resources

License

Stars

Watchers

Forks

Packages

No packages published