magpie.cli.purge_expired_network_tokens ======================================= .. py:module:: magpie.cli.purge_expired_network_tokens .. autoapi-nested-parse:: Removes expired network tokens from the database. This ensures that the network_tokens table doesn't fill up with expired tokens. Both an expired token and a non-existent token behave the same from an access perspective (user is denied) so it is safe to automatically remove all expired tokens. Attributes ---------- .. autoapisummary:: magpie.cli.purge_expired_network_tokens.LOGGER Functions --------- .. autoapisummary:: magpie.cli.purge_expired_network_tokens.make_parser magpie.cli.purge_expired_network_tokens.get_login_session magpie.cli.purge_expired_network_tokens.main Module Contents --------------- .. py:data:: LOGGER .. py:function:: make_parser() -> argparse.ArgumentParser .. py:function:: get_login_session(magpie_url, username, password) .. py:function:: main(args: Optional[Sequence[magpie.typedefs.Str]] = None, parser: Optional[argparse.ArgumentParser] = None, namespace: Optional[argparse.Namespace] = None) -> int