pygeek_stellar/cli_session.py
def init_cli_session():
    """
    This function initializes a CLI session. There are three alternatives to initialize a session:
    1: Initialize from an account stored on the configuration file.
    2: Initialize from an existent account which is not stored on the configuration file.
    3: Initialize from a newly created Stellar account.
    :return: Returns the initialized CLI session or None if something went wrong.
    :rtype: CliSession or None
    """
    if not _config_file_exists():
        print("No configuration file was found.")
    elif yes_or_no_input('Do you want to use an account from the configuration file?') == USER_INPUT_YES:
        return _init_session_from_conf_file()

    if yes_or_no_input('Do you want to use an existent account?') == USER_INPUT_YES:
        return _init_session_from_existent_account()

    if yes_or_no_input('Do you want to create a new account?') == USER_INPUT_YES:
        return _init_session_from_new_account()

    return None

    This function initializes a CLI session. There are three alternatives to initialize a session:
    1: Initialize from an account stored on the configuration file.
    2: Initialize from an existent account which is not stored on the configuration file.
    3: Initialize from a newly created Stellar account.
    :return: Returns the initialized CLI session or None if something went wrong.
    :rtype: CliSession or None
    
This function initializes a CLI session. There are three alternatives to initialize a session:
1: Initialize from an account stored on the configuration file.
2: Initialize from an existent account which is not stored on the configuration file.
3: Initialize from a newly created Stellar account.
This function initializes a CLI session . There are three alternatives to initialize a session : 1 : Initialize from an account stored on the configuration file . 2 : Initialize from an existent account which is not stored on the configuration file . 3 : Initialize from a newly created Stellar account .
def init_cli_session():
    if not _config_file_exists():
        print("No configuration file was found.")
    elif yes_or_no_input('Do you want to use an account from the configuration file?') == USER_INPUT_YES:
        return _init_session_from_conf_file()
    if yes_or_no_input('Do you want to use an existent account?') == USER_INPUT_YES:
        return _init_session_from_existent_account()
    if yes_or_no_input('Do you want to create a new account?') == USER_INPUT_YES:
        return _init_session_from_new_account()
    return None
def init_cli_session ( ) : if not _config_file_exists ( ) : print ( "No configuration file was found." ) elif yes_or_no_input ( 'Do you want to use an account from the configuration file?' ) == USER_INPUT_YES : return _init_session_from_conf_file ( ) if yes_or_no_input ( 'Do you want to use an existent account?' ) == USER_INPUT_YES : return _init_session_from_existent_account ( ) if yes_or_no_input ( 'Do you want to create a new account?' ) == USER_INPUT_YES : return _init_session_from_new_account ( ) return None
This function initializes a CLI session.
This function initializes a CLI session .
"""
    This function initializes a CLI session. There are three alternatives to initialize a session:
    1: Initialize from an account stored on the configuration file.
    2: Initialize from an existent account which is not stored on the configuration file.
    3: Initialize from a newly created Stellar account.
    :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