baidupcs_py/app/app.py
def _recent_api(ctx) -> Optional[BaiduPCSApi]:
    """Return recent user's `BaiduPCSApi`"""

    am = ctx.obj.account_manager
    account = am.who()
    if not account:
        print("[italic red]No recent user, please adding or selecting one[/]")
        return None
    return account.pcsapi()
Return recent user's `BaiduPCSApi`
Return recent user's `BaiduPCSApi`
Return recent user ' s ` BaiduPCSApi `
def _recent_api(ctx) -> Optional[BaiduPCSApi]:
    am = ctx.obj.account_manager
    account = am.who()
    if not account:
        print("[italic red]No recent user, please adding or selecting one[/]")
        return None
    return account.pcsapi()
def _recent_api ( ctx ) -> Optional [ BaiduPCSApi ] : am = ctx . obj . account_manager account = am . who ( ) if not account : print ( "[italic red]No recent user, please adding or selecting one[/]" ) return None return account . pcsapi ( )
Return recent user's `BaiduPCSApi`
Return recent user ' s ` BaiduPCSApi `
"""Return recent user's `BaiduPCSApi`"""
ctx