fprun

The quickest and dirtiest way to respond something to rasenmaehers product integration requests

Module Contents

Functions

zip_pem(pem, filename)

in-memory zip of the pem

check_peer_cert(request)

Check the transport for peer cert, raise error if missing

handle_get_hello(request)

Hello world but check mTLS

handle_user_crud(request)

Respond with success to all CRUD operations

handle_fragment(request)

Respond with hello_world for user

handle_health(request)

healthcheck response

handle_admin_fragment(request)

Respond with success to all CRUD operations

main()

Main entrypoint, return exit code

Attributes

LOGGER

loglevel

LOGGER[source]
zip_pem(pem, filename)[source]

in-memory zip of the pem

Parameters:
Return type:

bytes

check_peer_cert(request)[source]

Check the transport for peer cert, raise error if missing

Parameters:

request (aiohttp.web.Request)

Return type:

None

async handle_get_hello(request)[source]

Hello world but check mTLS

Parameters:

request (aiohttp.web.Request)

Return type:

aiohttp.web.Response

async handle_user_crud(request)[source]

Respond with success to all CRUD operations

Parameters:

request (aiohttp.web.Request)

Return type:

aiohttp.web.Response

async handle_fragment(request)[source]

Respond with hello_world for user

Parameters:

request (aiohttp.web.Request)

Return type:

aiohttp.web.Response

async handle_health(request)[source]

healthcheck response

Parameters:

request (aiohttp.web.Request)

Return type:

aiohttp.web.Response

async handle_admin_fragment(request)[source]

Respond with success to all CRUD operations

Parameters:

request (aiohttp.web.Request)

Return type:

aiohttp.web.Response

main()[source]

Main entrypoint, return exit code

Return type:

int

loglevel[source]