Skip to main content

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

git clone https://github.com/matthewdeanmartin/so_pip.git
python -m venv venv
. venv/Scripts/activate
pip install -r .config/requirements.txt
# some tools can't co-exist in the same virtual environment
pipx install pylint
pipx install isort
python -m so_pip --version

Docker support 1/2 implemented.

docker build -t so_pip:latest .

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

Project details


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.23.tar.gz (2.6 MB view hashes)

Uploaded Source

Built Distribution

so_pip-0.1.23-py3-none-any.whl (2.6 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page