anfneub

Untitled

Oct 28th, 2025
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.76 KB | None | 0 0
  1. # import the class
  2. from manarion-data-vis import ManarionDataVis
  3.  
  4.  
  5. if __name__ == "__main__":
  6.  
  7.     # define only once the parameters
  8.     guild_id = 30
  9.     guild_api = "abcd-12345-6789"
  10.     params = {'a': 1, 'b': 2}  # <-- any other parameter, possibly optional (advanced)
  11.  
  12.     # create the class and store the parameters
  13.     mana = ManarionDataVis(
  14.         gild_id = guild_id,
  15.         guild_api = guild_api,
  16.         **params  # <-- spend a little time understanding *args and **params (advanced)
  17.     )
  18.  
  19.     # display dust income
  20.     mana.vis_dustincome()  # <-- notice that we're calling the method (function) belonging to the class
  21.  
  22.     # display battle income
  23.     mana.vis_battleexpincome()
  24.  
  25.     # ... rest of the methods you want to showcase
  26.  
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment