jupyter_server.files package#

Submodules#

Serve files directly from the ContentsManager.

class jupyter_server.files.handlers.FilesHandler(application, request, **kwargs)#

Bases: JupyterHandler, StaticFileHandler

serve files via ContentsManager

Normally used when ContentsManager is not a FileContentsManager.

FileContentsManager subclasses use AuthenticatedFilesHandler by default, a subclass of StaticFileHandler.

auth_resource = 'contents'#
property content_security_policy#

The content security policy.

get(path, include_body=True)#

Get a file by path.

head(path)#

The head response.

Return type:

Awaitable[None] | None

Module contents#