Generate packages from Stackoverflow answers
Project description
so_pip
Everyone copies code from StackOverflow, but no one is formalizing it.
This will vendorize the source code of question or answer into a folder and generate the accessory files to make it look like a python package.
The feature-set overlaps a bit with cookie cutter, vendorizing libraries and stackoverflow search cli's.
Installation
Requires Python 3.7+, tested with 3.7, 3.8, 3.9
pip install so_pip
so_pip vendorize my_name --question=31049648 --output=output
Using via dockerhub
# for mac, unix, cmd.exe, powershell
docker pull matthewdeanmartin/so_pip
docker run --rm -i -v "$PWD/data:/data" matthewdeanmartin/so_pip --help
If you use git bash/mingw64/cygwin, see run.sh because docker needs help doing a volume mount.
Usage
Consider getting a key and adding a .so_pip.ini file The app will make best efforts if you don't.
# Turn posts into nicely formated packages
> so_pip vendorize my_name --question=31049648 | --answer=31049648
> so_pip search --answer=31049648 --tags=python
# Pip-like commands
> so_pip uninstall | upgrade {package_name}
> so_pip list | freeze
Docs
- Examples
- CLI
- Code reuse scanarios you see on StackOverflow
- Features
- Security Considerations
- Prior Art Similar and overlapping tools.
- Contributing answers to StackOverflow AKA, fixing answers you found.
- Attribution Compliance
- Contributing to so_pip
- Code of Conduct for so_pip
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
so_pip-0.1.29.tar.gz
(2.6 MB
view hashes)