Skip to content

Dr. Phred's Phamous Phrecipes™ 🐍👨‍🍳🥘🤢

License

Notifications You must be signed in to change notification settings

doctaphred/phrecipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dr. Phred's Phamous Phrecipes™ 🐍👨‍🍳🥘🤢

"Oh good, he named it after himself..."

This repository is my personal collection of Python recipes: small units of code with few dependencies which I've repeatedly found useful throughout my career (interspersed with a few exploratory ideas which should probably never see the light of production[1]).

These recipes are meant to be minimal and self-contained, and so they are not pip-installable: just copy/paste them into your project's utilities module.

All tests are currently implemented via doctest[2]: run them with python3 -m doctest -o ELLIPSIS <paths>; add --verbose to confirm which tests are run. (The -o ELLIPSIS option is required, to avoid repeating # doctest: +ELLIPSIS ad nauseam in the tests themselves.) Consider pytest's doctest integration to include them in a production test suite.


[1]: Distinguishing between the two is left as an exercise for the reader.

[2]: IMO the most underrated module in the Python standard library.

Releases

No releases published

Packages

No packages published

Languages