pryvate.blueprints.packages package

Submodules

pryvate.blueprints.packages.packages module

Package blueprint.

pryvate.blueprints.packages.packages.packages(_, __, name, filename)[source]

Get the contents of a package.

The two first arguments are unused and specified as such by _.

Parameters:
  • _ (str) – Unused this is the package_type part of the /packages url, e.g.: sdist/source
  • __ (str) – Unused this is the initial letter part of the /packages url, e.g.: F for Flask
  • name (str) – This is the name of the package as defined in setup.py
  • filename (str) – This is the filename being requested, e.g.: Flask-0.10.0.tar.gz
Returns:

Status codes: * 200 * 404 * 301

Module contents

Blueprint for the /packages endpoint.

If a package is not in the PRIVATE_EGGS set, pryvate will redirect the client to another CheeseShop. However if a package is in PRIVATE_EGGS but the filename is not available, it will return a 404 response, otherwise it will return a 200 response with the contents of filename