pypnusershub.utils
Module Contents
Functions
|
Return a resource from this path or package |
|
Return a resource from this path or package. Transparently decode the stream. |
|
Returns the cookie path computed from the application_url |
|
|
|
Set automatically a Path on a cookie. |
- exception pypnusershub.utils.RessourceError(msg, errors)[source]
Bases:
OSError
Base class for I/O related errors.
- pypnusershub.utils.binary_resource_stream(resource, locations)[source]
Return a resource from this path or package
- pypnusershub.utils.text_resource_stream(path, locations, encoding='utf8', errors=None, newline=None, line_buffering=False)[source]
Return a resource from this path or package. Transparently decode the stream.
- pypnusershub.utils.get_cookie_path(application_url: str | None = None) str [source]
Returns the cookie path computed from the application_url