pyroxy.controllers.static

pyroxy.controllers.static.format_file_entry(base_path, filename)[source]

Generate a tuple of metadata based on a filename and path.

Parameters:
  • base_path – The path that contains filename.
  • filename – The filename.
Returns:

A tuple containing (filename, modification date, file size).

pyroxy.controllers.static.serve_static_files(relative_path='')[source]

Serves up a static file if needed, or a filtered index path.

Parameters:relative_path – The path relative to the base PyPI path. This includes packages, directories, etc..
Returns:Data containing the response to the request.

Project Versions

Previous topic

pyroxy.controllers.simple

This Page