Skip to main content

A quick and dirty command-line script to pull down and extract .py files out of tarballs and wheels without interfacing with the setup.py file.

Project description

safepull

A quick and dirty command-line script to pull down and extract .py files out of tarballs and wheels without interfacing with the setup.py file. This is a targeted replacement for pip download <package> to prevent malware detonation within setup.py files.

Installation Instructions

Safepull is available on PyPI.

pip install safepull

Usage Instructions

Safepull has three command line arguments.

Positional argument <packagename> is required. When force is not specified, you will be prompted for a distribution type to download.

-f --force will attempt to download the sdist of a particular package without prompt.

-m --metadata will return the package name, description, and author of a particular package.

rem@rembox:~$ safepull numpy
numpy 1.24.3
Fundamental package for array computing in Python
Author: Travis E. Oliphant et al.
--0--
Filename: numpy-1.24.3-cp310-cp310-macosx_10_9_x86_64.whl
Package Type: bdist_wheel
URL: https://files.pythonhosted.org/packages/f3/23/7cc851bae09cf4db90d42a701dfe525780883ada86bece45e3da7a07e76b/numpy-1.24.3-cp310-cp310-macosx_10_9_x86_64.whl
Size: 19MB

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

safepull-1.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

safepull-1.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file safepull-1.1.0.tar.gz.

File metadata

  • Download URL: safepull-1.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for safepull-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0ac14ec384ae2a2fcd153bb1df0c15b1ab8ea3cdeee182d58673a1f650ee0b39
MD5 9dfaff6b97803ea3cb7714014768fd9d
BLAKE2b-256 522506311a7a93da59008b55b8203de40213574d0fa5a6e82cbbf29170d0ddd0

See more details on using hashes here.

File details

Details for the file safepull-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: safepull-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for safepull-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55dccb0e7d08d1352cf03f4c5f670f4acedda8fd7574a5be3b191d9ddae8539d
MD5 a5a32ff40a9acdac2eedc3dd6e60e622
BLAKE2b-256 29a788e876c43882b4bc0630aff00939c8bc54f577e794a0d797b26c86573ca7

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