spherapy

module util.credentials

Functions to fetch and store spacetrack credentials on the system.


function fetchConfigCredentials

fetchConfigCredentials(config: ConfigParser)  dict[str, str | None]

Fetch spacetrack credentials from config file.

Args:

Returns: dict containing username and password


function fetchKeyringCredentials

fetchKeyringCredentials()  dict[str, str | None]

Fetch spacetrack credentials from system keyring.

Returns: dict containing username and password

Raises:


function storeCredentials

storeCredentials(user: None | str = None, passwd: None | str = None)  bool

Store spacetrack credentials in system keyring.

Can set either username or password, but can’t set a password without a username

Args:

Returns: True if successfully stored

Raises:


function createCredentials

createCredentials()

Script helper function to create and store credentials.

Called by command line script. Requires user input.


This file was automatically generated via lazydocs.