- howdoi Search several sources including StackOverflow & screen scrape the source code.
- socli One of many command line interfaces to StackOverflow
- so Another SO cli
so_pip differs from in the above in that the goal is to generate re-usable code, not just get you to the place where you can copy-paste
- cookiecutter Generate a python project shell with a variety of templates
Cookie cutter works off a static json file. Someday it might be worth having so_pip generate a json file to go with a template optimized for an SO answer. Cookie cutter doesn't handle package workflows, such as updating (as far as I know)
Pip and related tools handle intentionally created packages with source probably in GitHub and packages stored in pypi.
You could publish a so_pip created package to pypi, (possibly not a good idea), but so_pip packages are better vendorized.
so_pip's workflow makes the most sense when you are mostly taking over the source code of a "package" and putting it in your own codebase
pip install somepackage.tar.gz --target vendor
Installing from a local package to a local folder, then editing PYTHONPATHpython -m venv venv
Creating a venv virutal environment folder & checking it in, activate environment instead of editing PYTHONPATH