Skip to main content

PipPKG API

PipPKG is a GUI for Pip that I have been working on in order to make managing your pip packages easier. While the GUI isn't complete I have completed the API wrapper for PyPi.org I will be using in it. I decided to open source it and release it on pip so that you guys could use it in your projects as well. You do not need any API keys to use this. Read on for more documentation.

Getting Started

Installing with VirtualEnv and Pip

cd project-name
virtualenv env
source env/bin/activate on Unix or source .\env\bin\activate on Windows
pip3 install pippkg-api requests

Installing without VirtualEnv w/ Pip

pip3 install pippkg-api requests --user
cd project-name

Installing with VirtualEnv w/ Setup.py

cd project-name
virtualenv env
source env/bin/activate on Unix or source .\env\bin\activate on Windows
git clone https://github.com/M4cs/PipPKG-API.git
cd PipPKG-API/
python3 setup.py install

Installing without VirtualEnv w/ Setup.py

git clone https://github.com/M4cs/PipPKG-API.git
cd PipPKG-API/
python3 setup.py install

PipPKG API - Packages

The packages module in PipPKG API is used for gaining general information about the most recent version of the package. With this module you can grab basically any general info about the package in question. Below is documentation on how to use the module.

Getting Started

Import PipPKG API Packages like this:

from pippkg-api import packages

To get the info for the package define pkginfo (or any variable) like so:

pkginfo = packages.package('name-of-pip-package')

You must include the above two lines in order to use both the Packages and Releases module in PipPKG API. In the rest of this documentation pkginfo will refer to the variable above.

package('name of package') - Returns Dictionary of JSON Response

The package() module is the function that grabs and stores all the information about the queried package in a dictionary. The rest of the functions then read from this dictionary to return a value.

getAuthor(pkginfo) - Returns String

The getAuthor() function does exactly what it sounds like. It returns the Author of the package.

Usage:

author = packages.getAuthor()

getLongDesc(pkginfo) - Returns String

The getLongDesc() function gets the main description of the package. This is the description you will see when visiting the PyPi page for said module.

Usage:

longDescription = packages.getLongDesc(pkginfo)

getLicense(pkginfo) - Returns String

The getLicense() function gets the license of the queried package and returns it.

Usage:

licenseType = packages.getLicense(pkginfo)

getSummary(pkginfo) - Returns String

The getSummary() function returns the short summary of the package. Like the one you would see when quering with pip.

Usage:

summary = packages.getSummary(pkginfo)

getReqs(pkginfo) - Returns List

The getReqs() function returns a list of requirements for the said project.

Usage:

requirements = packages.getReqs(pkginfo)
>> ['requests', 'colorama']
requirements[0]
>> 'requests'

getHomePage(pkginfo) - Returns String

The getHomePage() function returns the URL for the home page of the pip package.

Usage:

homepage = packages.getHomePage(pkginfo)
>> https://example.com/and/file/path.html

getClassifiers(pkginfo) - Returns List

The getClassifiers() function returns a list of all classifiers of said package.

Usage:

classifiers = packages.getClassifiers(pkginfo)

This Documentation is Not Complete! If you would like to find more functions look above in the source code. Most functions are pretty self explainatory.

Metadata

Release files for pippkg-api 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pippkg-api 0.0.2
File Size Uploaded
pippkg-api-0.0.2.tar.gz 4.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pippkg-api 0.0.2
File Interpreter ABI Platform
pippkg_api-0.0.2-py3.6.egg Legacy Egg format - - Details
pippkg_api-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 kB

Release files / pippkg-api-0.0.2.tar.gz

Download URL pippkg-api-0.0.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
02cfdff922a1e2c4056d0d7eb3b8b82ca893f2aad191f54434f2f20e048c6253
BLAKE2b-256 checksum
How to use checksums
d7b3bfd4d60bd7d8f5a280a893d793d6f9baa7c3c2c7a4bb7d907a785cd44c0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.6

Release files / pippkg_api-0.0.2-py3.6.egg

Download URL pippkg_api-0.0.2-py3.6.egg
Size 6.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
a0101796066efbe9f7adff3493f1c82283440193073f5f5b54a62ce55ded400b
BLAKE2b-256 checksum
How to use checksums
8f6841aa28c0b3bb33d1918d6afa486a3f8a54229d2ce928d11ca21419f91197
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.6

Release files / pippkg_api-0.0.2-py3-none-any.whl

Download URL pippkg_api-0.0.2-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7e9fd93418feb265c85457cacc2771cabd17a2f28c05c6ece7de5ea292a7b3f
BLAKE2b-256 checksum
How to use checksums
23e873b74e0c11a31f3ac699a7aa7a230a0f07f29b93bc0b024f2bb7658778de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.0.2 This release

3 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page