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.

DepShield Badge

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

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.30.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

so_pip-0.1.30-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

Details for the file so_pip-0.1.30.tar.gz.

File metadata

  • Download URL: so_pip-0.1.30.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.1

File hashes

Hashes for so_pip-0.1.30.tar.gz
Algorithm Hash digest
SHA256 d05d751ad8bb7bd9a203bd0080d344a9a68bf185c138a8f2fa97d85183a2624d
MD5 9d7c506f8365ddd52f73fb60dcd55976
BLAKE2b-256 877296d0c8cb41463ad6d1d127931db77e5d4ae3bb1b3332f91b92291d252ed3

See more details on using hashes here.

File details

Details for the file so_pip-0.1.30-py3-none-any.whl.

File metadata

  • Download URL: so_pip-0.1.30-py3-none-any.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.1

File hashes

Hashes for so_pip-0.1.30-py3-none-any.whl
Algorithm Hash digest
SHA256 c7dce7a3da11f0b50278eceec9f0b400ab4af79477bfe6b76e4fec2f80c3ae95
MD5 391aae368c290098e8a6c8ab1705d4f4
BLAKE2b-256 f51f8915d80d3ca0797af8d838dd6585717a3f1db7dc1f33964154b11d342a11

See more details on using hashes here.

Supported by

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