Skip to main content

package managing framework

Project description

pypi test coverage Documentation Status


pkgcore is a framework for package management; via the appropriate class plugins, the design should allow for any underlying repository/config/format to be used; slackware’s tgzs being exempted due to lack of any real metadata, and autopackage format being exempted due to the fact they effectively embed the manager in each package (pkgcore does require being able to treat the pkg as data, instead of autopackage’s method of handing resolution/all manager ops off to the package script).


pclean: clean distfiles, binpkgs, and builds dirs

pclonecache: clone a repository cache

pconfig: query configuration info

pebuild: low-level ebuild operations, go through phases manually

pinspect: inspect repository related info

pmaint: repository maintenance (syncing, copying…)

pmerge: dependency resolution, fetching, (un)merging, etc.

pquery: query repository info, revdeps, pkg search, vdb search, etc.


At least python version 2.7, and snakeoil — a utility library with misc optimizations split out of pkgcore for others to use.


Installing latest pypi release in a virtualenv:

pip install pkgcore

Installing from git in a virtualenv (note that snakeoil should be used from git):

pip install
pip install

Installing from a tarball or git repo:

python install


Official documentation is provided on readthedocs with alternative formats available for download.


A standalone test runner is integrated in; to run, just execute:

python test

In addition, a tox config is provided so the testsuite can be run in a virtualenv setup against all supported python versions. To run tests for all environments just execute tox in the root directory of a repo or unpacked tarball. Otherwise, for a specific python version execute something similar to the following:

tox -e py27

Note that mock is required for tests when using python-2.7.


For support and development inquiries join #pkgcore on Freenode.

For bugs and feature requests please create an issue on Github.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pkgcore-0.9.7-cp27-cp27m-manylinux1_i686.whl (763.2 kB) Copy SHA256 hash SHA256 Wheel cp27
pkgcore-0.9.7-cp27-cp27m-manylinux1_x86_64.whl (773.1 kB) Copy SHA256 hash SHA256 Wheel cp27
pkgcore-0.9.7-cp27-cp27mu-manylinux1_i686.whl (763.2 kB) Copy SHA256 hash SHA256 Wheel cp27
pkgcore-0.9.7-cp27-cp27mu-manylinux1_x86_64.whl (773.1 kB) Copy SHA256 hash SHA256 Wheel cp27
pkgcore-0.9.7-py3-none-any.whl (850.2 kB) Copy SHA256 hash SHA256 Wheel py3
pkgcore-0.9.7.tar.gz (592.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page