Skip to main content

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

Metadata

Release files for pyrecipes 0.3.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 pyrecipes 0.3.2
File Size Uploaded Provenance Actions
pyrecipes-0.3.2.tar.gz 2.3 MB Without provenance Details for pyrecipes-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyrecipes 0.3.2
File Interpreter ABI Platform Actions
pyrecipes-0.3.2-py3-none-any.whl Python 3 none any Details for pyrecipes-0.3.2-py3-none-any.whl

Total release size: 4.7 MB

Release files / pyrecipes-0.3.2.tar.gz

Download URL pyrecipes-0.3.2.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
e5a6b88aa5c2dc7878c8d5ff4f58753ec20b3bca5b1425cd8f384183b000ac43
BLAKE2b-256 checksum
How to use checksums
56d80ea0f8ec043a9e09cbe55f5dc9b88b45b7e01788175f4a60184b59c2d6f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / pyrecipes-0.3.2-py3-none-any.whl

Download URL pyrecipes-0.3.2-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5db03485950e20f682bacbebd765c98729b4ea21b6f5f50e7b72528ccf9e4e48
BLAKE2b-256 checksum
How to use checksums
2c488c57f2d05e55fd8eacbff99d762199a559785fd7c42755d9e166fef9739e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Security for pyrecipes 0.3.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.

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