pryvate.blueprints.pypi package

Submodules

pryvate.blueprints.pypi.pypi module

PyPi blueprint.

pryvate.blueprints.pypi.pypi.post_pypi()[source]

Find a package and return the contents of it.

Upon calling this endpoint the PRIVATE_EGGS set will be updated, and proper action will be taken based on the request.

pryvate.blueprints.pypi.pypi.register_package(localproxy)[source]

Register a new package.

Creates a folder on the filesystem so a new package can be uploaded.

Parameters:localproxy (werkzeug.local.LocalProxy) – The localproxy object is needed to read the form properties from the request
Returns:'ok'
pryvate.blueprints.pypi.pypi.upload_package(localproxy)[source]

Save a new package and it’s md5 sum in a previously registered path.

Parameters:localproxy (werkzeug.local.LocalProxy) – The localproxy object is needed to read the form properties from the request
Returns:'ok'

Module contents

Blueprint for the /pypi endpoint.

Handles registering and uploading new packages.