The core functionality library for the ppk project.
Project description
ppklib - Python Package Check Library
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
badsnakesproject.
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
ppkproject, this library must be installed into the same virtual environment which is used to runppk.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be948112f164834005f0c86e015b8a612175b918caba942a36b16536471329f3
|
|
| MD5 |
09f47af9c437e24a08aa3915a83fb46f
|
|
| BLAKE2b-256 |
8a6bf640f2d31e2add26d20ce94a54647bc56b04a1e0533144d7733de549f894
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c786f172303567ec359bbb00c5ce1c376c1231085694c61aa7a18395c7c5526
|
|
| MD5 |
035759877ecb3dd38fdfbcb9412a2dae
|
|
| BLAKE2b-256 |
1dcc19ded057098b9f66636d3140320f7cd9d5bb43dc78b1c8b431143eafa5e1
|