Skip to main content

The core functionality library for the ppk project.

Project description

ppklib - Python Package Check Library

PyPI - Version PyPI - Implementation PyPI - Python Version PyPI - Status Static Badge Static Badge Static Badge Documentation Status PyPI - License PyPI - Wheel

The core functionality library behind the ppk project.

Overview

This library provides the lower-level core functionality to the primary ppk project.

As of ppk version 0.5.0, the core functionality has been moved out of ppk into this library to enable other projects to take advantage of ppk's vulnerability checking toolset.

The following vulnerability tests are available:

  • MD5 checksum: The hash of the downloaded file is compared with the hash for the same file, as stored by PyPI.
  • Security vulnerabilities (Snyk): The Snyk security database can be searched to determine if any vulnerabilities have been discovered and reported in the specific library.
  • Security vulnerabilities (PyPA): The PyPA advisory database can be searched (via the PyPI JSON API) to determine if any vulnerabilities have been discovered and reported for a specific library.
  • Security vulnerabilities (OSV): The Open Source Vulnerabilities database can be searched (via the OSV API) to determine if any vulnerabilities have been discovered and reported for a specific library.
  • Code scanning: Integration coming soon, via the badsnakes project.

Getting Started

Downloading and installing

Likely, the easiest method for downloading and installing ppklib is through pip, after activating the appropriate virtual environment, as:

pip install ppklib

Note: If using the ppk project, this library must be installed into the same virtual environment which is used to run ppk.

Basic usage

Basic example usage follows. For further detail and guidance please refer to the project's documentation.

Download pandas (and dependencies) via pip:

from ppklib.pip import Download

pipdl = Download('pandas')
pipdl.get()

# Display the path to the downloaded target package.
pipdl.pkgpath

# Optional cleanup after the wheels are no longer needed.
pipdl.cleanup()

Download pandas version 2.2.3 for Windows and Python 3.13 into a specified download directory:

from ppklib.pip import Download

pipdl = Download('pandas',
                 version='2.2.3',
                 args={'platform': 'win_amd64', 'python_version': '313'},
                 tmpdir='/tmp/c0ff33')
pipdl.get()

# Display the path to the downloaded target package.
pipdl.pkgpath

# Optional cleanup after the wheels are no longer needed.
pipdl.cleanup()

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

ppklib-0.1.0b1.tar.gz (8.3 MB view details)

Uploaded Source

Built Distribution

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

ppklib-0.1.0b1-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file ppklib-0.1.0b1.tar.gz.

File metadata

  • Download URL: ppklib-0.1.0b1.tar.gz
  • Upload date:
  • Size: 8.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for ppklib-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 be948112f164834005f0c86e015b8a612175b918caba942a36b16536471329f3
MD5 09f47af9c437e24a08aa3915a83fb46f
BLAKE2b-256 8a6bf640f2d31e2add26d20ce94a54647bc56b04a1e0533144d7733de549f894

See more details on using hashes here.

File details

Details for the file ppklib-0.1.0b1-py3-none-any.whl.

File metadata

  • Download URL: ppklib-0.1.0b1-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for ppklib-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c786f172303567ec359bbb00c5ce1c376c1231085694c61aa7a18395c7c5526
MD5 035759877ecb3dd38fdfbcb9412a2dae
BLAKE2b-256 1dcc19ded057098b9f66636d3140320f7cd9d5bb43dc78b1c8b431143eafa5e1

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