mc5-api-client added to PyPI

mc5-api-client added to PyPI


from mc5_api_client import get_my_squad_id , get_my_squad_info , update_my_squad_info # Get squad ID without creating client squad_id = get_my_squad_id ( username = "your_credential" , password = "your_password" ) print ( f "Your Squad ID: { squad_id } " ) # Get squad info without creating client squad_info = get_my_squad_info ( username = "your_credential" , password = "your_password" ) print ( f "Squad: { squad_info [ 'name' ] } " ) # Update squad without creating client result = update_my_squad_info ( username = "your_credential" , password = "your_password" , name = "New Squad Name" , description = "Updated description" ) print ( f "Update Result: { result } " ) from mc5_api_client import quick_sign_up_for_event , quick_get_event_leaderboard , quick_get_my_event_rank # Sign up for an event event_id = "0c646c6a-e61c-11f0-be58-b8ca3a634708" success = quick_sign_up_for_event ( event_id , "username" , "password" ) # Get event leaderboard leaderboard = quick_get_event_leaderboard ( event_id , "username" , "password" , limit = 10 ) if leaderboard : print ( f "Top players: { len ( leaderboard [ 'data' ]) } entries" ) for player in leaderboard [ 'data' ][: 3 ]: print ( f " { player [ 'display_name' ] } : { player [ 'score' ] } points" ) # Get your event rank my_rank = quick_get_my_event_rank ( event_id , "username" , "password" ) if my_rank : print ( f "Your rank: { my_rank [ 'my_entry' ][ 'rank' ] } , Score: { my_rank [ 'my_entry' ][ 'score' ] } " ) from mc5_api_client import quick_get_account_info , quick_get_account_overview # Get complete account information account_info = quick_get_account_info ( username , password ) print ( f "Account ID: { account_info [ 'account_data' ][ 'account' ] } " ) print ( f "Credentials: { len ( account_info [ 'account_data' ][ 'credentials' ]) } " ) print ( f "Installations: { len ( account_info [ 'account_data' ][ 'installations' ]) } " ) # Get complete account overview overview = quick_get_account_overview ( username , password ) print ( f "Security Score: { overview [ 'security_summary' ][ 'security_score' ] } /100" ) print ( f "Total Devices: { overview [ 'device_summary' ][ 'total_devices' ] } " )

Author: chizoba2026@hotmail.com


Published at: 2026-02-02 22:01:55

Still want to read the full version? Full article