rasenmaeher_api.console

CLI entrypoints for python-rasenmaeher-api

Module Contents

Functions

cli_group(ctx, loglevel, verbose)

CLI helpers for RASENMAEHER developers

dump_openapi(ctx)

Dump autogenerate openapi spec as JSON

do_http_healthcheck(ctx, host, port, timeout, services)

Do a GET request to the healthcheck api and dump results to stdout

add_code(ctx, claims_json)

Add new single-use login code

get_pfx(ctx, callsign, admin)

Get PFX for cert+key for the given user, will create the user if needed

revoke_user(ctx, callsign, reason)

Revoke user by callsign

get_jwt(ctx, claims_json, nonce)

Get RASENMAEHER signed JWT

get_adminjwt(ctx, claims_json)

Get RASENMAEHER signed admin user JWT

add_test_users(ctx)

Create the test users defined in testhelpers.create_test_users

rasenmaeher_api_cli()

python-rasenmaeher-api

Attributes

LOGGER

LOGGER[source]
cli_group(ctx, loglevel, verbose)[source]

CLI helpers for RASENMAEHER developers

Parameters:
  • ctx (click.Context)

  • loglevel (int)

  • verbose (int)

Return type:

None

dump_openapi(ctx)[source]

Dump autogenerate openapi spec as JSON

Parameters:

ctx (click.Context)

Return type:

None

do_http_healthcheck(ctx, host, port, timeout, services)[source]

Do a GET request to the healthcheck api and dump results to stdout

Parameters:
  • ctx (click.Context)

  • host (str)

  • port (int)

  • timeout (float)

  • services (bool)

Return type:

None

add_code(ctx, claims_json)[source]

Add new single-use login code

Parameters:
  • ctx (click.Context)

  • claims_json (str)

Return type:

None

get_pfx(ctx, callsign, admin)[source]

Get PFX for cert+key for the given user, will create the user if needed

Parameters:
  • ctx (click.Context)

  • callsign (str)

  • admin (bool)

Return type:

None

revoke_user(ctx, callsign, reason)[source]

Revoke user by callsign

Parameters:
  • ctx (click.Context)

  • callsign (str)

  • reason (str)

Return type:

None

get_jwt(ctx, claims_json, nonce)[source]

Get RASENMAEHER signed JWT

Parameters:
  • ctx (click.Context)

  • claims_json (str)

  • nonce (bool)

Return type:

None

get_adminjwt(ctx, claims_json)[source]

Get RASENMAEHER signed admin user JWT

Parameters:
  • ctx (click.Context)

  • claims_json (str)

Return type:

None

add_test_users(ctx)[source]

Create the test users defined in testhelpers.create_test_users

Parameters:

ctx (click.Context)

Return type:

None

rasenmaeher_api_cli()[source]

python-rasenmaeher-api

Return type:

None