runtimepy.net.server.app.files
index
/home/vkottler/src/vkottler/workspace/runtimepy/runtimepy/net/server/app/files.py

A module implementing interfaces for working with file contents.

 
Functions
       
append_kind(element: svgen.element.Element, *names: str, package: str = 'runtimepy', kind: str = 'js', tag: str = 'script', subdir: str = None, worker: bool = False) -> Optional[svgen.element.Element]
Append a new script element.
handle_worker(writer: vcorelib.io.file_writer.IndentedFileWriter) -> bool
Boilerplate contents for worker thread block.
kind_url(kind: str, name: str, subdir: str = None, package: str = 'runtimepy') -> str
Return a URL to find a package resource.
set_text_to_file(element: svgen.element.Element, *args, **kwargs) -> bool
Set an element's text to the contents of a file.
set_text_to_kind(element: svgen.element.Element, kind: str, name: str, package: str = 'runtimepy', subdir: str = None) -> bool
Set text to HTML-file contents at a predictable path.
write_found_file(writer: vcorelib.io.file_writer.IndentedFileWriter, *args, **kwargs) -> bool
Write a file's contents to the file-writer's stream.

 
Data
        DEFAULT_ENCODING = 'utf-8'
Optional = typing.Optional
PKG_NAME = 'runtimepy'
WORKER_TYPE = 'text/js-worker'