<div dir="ltr">I have the following structure:<div><br></div><div>Third-party API installed via pip:</div><div>steamapi /<br></div><div>app.py</div><div>consts.py</div><div>core.py</div><div>users.py</div><div>[...]</div><div><br></div><div>My script:</div><div>test.py<br></div><div><br></div><div><br></div><div>In the API, the module users.py has a class 'SteamUser' and I want to mimic it's usage on my code, like this:</div><div><br></div><div>import steamapi<br></div><div><br></div><div>[...]</div><div><br></div><div><div>class User(Inheritance from API):</div><div><span class="" style="white-space:pre">     </span>def __init__(self, ID):</div><div><span class="" style="white-space:pre">            </span>steamapi.core.APIConnection(api_key = KEY)</div><div><span class="" style="white-space:pre">         </span>super( " Inheritance SteamUser" (ID)) # creates the user using the API</div></div><div><br></div><div>[...]</div><div><br></div><div>So that in my code when I need to create a new user, I just call 'usr = User("XXXXXXX")' instead of calling 'usr = steamapi.user.SteamUser(76561197996416028)', is that possible? And of course, I want to have access to all the class methods like 'name', 'country_code', 'time_created', 'avatar', 'friends' and so on. And finally, is that a good approach, pythonic? If not, what would be a good way?</div></div>