mainframe.dependencies

Classes

Functions

get_pypi_client(→ letsbuilda.pypi.PyPIServices)

get_httpx_client(→ httpx.Client)

get_rules(→ mainframe.rules.Rules)

validate_token(...)

validate_token_override()

Module Contents

mainframe.dependencies.get_pypi_client() letsbuilda.pypi.PyPIServices[source]
mainframe.dependencies.get_httpx_client(request: fastapi.Request) httpx.Client[source]
mainframe.dependencies.get_rules(request: fastapi.Request) mainframe.rules.Rules[source]
mainframe.dependencies.validate_token(token: Annotated[str, Depends(get_bearer_token)]) mainframe.json_web_token.AuthenticationData[source]
mainframe.dependencies.validate_token_override()[source]
class mainframe.dependencies.PermissionsValidator(required_permissions: list[str])[source]
required_permissions[source]
__call__(data: Annotated[mainframe.json_web_token.AuthenticationData, Depends(validate_token)])[source]