Skip to main content

A CLI tool to display useful Python recipes.

Project description

Pyrecipes

ci workflow 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.

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]'

Project details


Download files

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

Source Distribution

pyrecipes-0.1.0.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

pyrecipes-0.1.0-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file pyrecipes-0.1.0.tar.gz.

File metadata

  • Download URL: pyrecipes-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pyrecipes-0.1.0.tar.gz
Algorithm Hash digest
SHA256 95ff5a89923155497057f2c8528de9a3ad8a4f0f2cd84bb6d2a32018c85522b1
MD5 233285d3e2a246df0c788ceb178916ad
BLAKE2b-256 5754d530d369d4f49761907ecc618c60a0b47d098766dd59621ccbdf2f1efcae

See more details on using hashes here.

File details

Details for the file pyrecipes-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyrecipes-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pyrecipes-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0591e999f7bd8e1d4c1c5c3b8b3557ae76f31caed36f3216b3c4e6f4bd2cbe1a
MD5 488a3f9b91dd9070686f46a36b81770b
BLAKE2b-256 3b825b31dfb1e096bf3ccb7fc6d923efc228b80b140c25101f8f5dca9aa93e89

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