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.

-p --package <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 partiuclar package.

rem@rembox:~$ safepull -p 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.0.1.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.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for safepull-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4c8cac2ba41dd02ed2a191cae56a5fc84c5e66bd0a315e0e91c453c46ed87f8e
MD5 6f359f95ab36d15d519abf2a7c223348
BLAKE2b-256 162a8ceef5dfbde5057184ae4b45236e1892dafff3b8f70546ecf49a33ea19d3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for safepull-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 945d880da492e8a8985a70374fc66693960f023fa47c004c5af600f9c2e01c73
MD5 7a0105c00bfba43da9b112006ad414ee
BLAKE2b-256 835bb678efeff9f6f71ff5a92cbfe040923a76c52f5200007e9e4de2669742da

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