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.
Badges
Installation
Requires Python 3.11+
pip install so_pip
# or
pipenv install so_pip --pre --skip-lock
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
- Workflows
- 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
Metadata
Release files for so-pip 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| so_pip-0.3.0.tar.gz | 3.9 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| so_pip-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 MB
Release files / so_pip-0.3.0.tar.gz
| Download URL | so_pip-0.3.0.tar.gz |
|---|---|
| Size | 3.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cd8567b20a2f9e4181a2f8f4c3e4cd3f7d2435f5352f47295874f93e8b9777e
|
|
BLAKE2b-256 checksum How to use checksums |
9b3da4286e6d86db0163b9596ddd4c9b4e1f4022191ed43d3bfadd9586f81772
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / so_pip-0.3.0-py3-none-any.whl
| Download URL | so_pip-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59ee070e05ba1f76a4d2a28d834271b2b87ed3646fecb71388df971cf6c5d280
|
|
BLAKE2b-256 checksum How to use checksums |
e04247d28e07f339ecb4825cf7f92231f111758a16f9bf61142435a4924d1351
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|