pygeek_stellar/cli_session.py
def _init_session_from_existent_account():
    """
    Initializes a session from an account which is not stored on the configuration file. This method fails
    if the given Stellar address is invalid.
    :return: Returns the initialized CLI session or None if something went wrong.
    :rtype: CliSession or None
    """
    address = safe_input("Please insert the address of the existent account")
    if not is_address_valid(address):
        print("The specified address is not a valid Stellar address.")
        return None

    cli_session = CliSession(None, address, None)
    if _config_file_is_to_update():
        if yes_or_no_input("Do you want to give a name to the new account to be created?") == USER_INPUT_YES:
            cli_session.account_name = safe_input("Please insert the account name")
        cli_session.store_account_in_config_file()
    return cli_session

    Initializes a session from an account which is not stored on the configuration file. This method fails
    if the given Stellar address is invalid.
    :return: Returns the initialized CLI session or None if something went wrong.
    :rtype: CliSession or None
    
Initializes a session from an account which is not stored on the configuration file. This method fails
if the given Stellar address is invalid.
Initializes a session from an account which is not stored on the configuration file . This method fails if the given Stellar address is invalid .
def _init_session_from_existent_account():
    address = safe_input("Please insert the address of the existent account")
    if not is_address_valid(address):
        print("The specified address is not a valid Stellar address.")
        return None
    cli_session = CliSession(None, address, None)
    if _config_file_is_to_update():
        if yes_or_no_input("Do you want to give a name to the new account to be created?") == USER_INPUT_YES:
            cli_session.account_name = safe_input("Please insert the account name")
        cli_session.store_account_in_config_file()
    return cli_session
def _init_session_from_existent_account ( ) : address = safe_input ( "Please insert the address of the existent account" ) if not is_address_valid ( address ) : print ( "The specified address is not a valid Stellar address." ) return None cli_session = CliSession ( None , address , None ) if _config_file_is_to_update ( ) : if yes_or_no_input ( "Do you want to give a name to the new account to be created?" ) == USER_INPUT_YES : cli_session . account_name = safe_input ( "Please insert the account name" ) cli_session . store_account_in_config_file ( ) return cli_session
Initializes a session from an account which is not stored on the configuration file.
Initializes a session from an account which is not stored on the configuration file .
"""
    Initializes a session from an account which is not stored on the configuration file. This method fails
    if the given Stellar address is invalid.
    :return: Returns the initialized CLI session or None if something went wrong.
    :rtype: CliSession or None
    """
Returns the initialized CLI session or None if something went wrong.
Returns the initialized CLI session or None if something went wrong .
CliSession or None