I am kind of stuck in the a middle of a personal project that I am doing. I have a scenario which is just not making any sense to me nor do I know what to "call it" so I am also not finding the right answers from internet.
If you can give a solution for me for the following example I would really appreciate it.
I am trying to do the following:
I have two classes/modules in different file(later maybe also adding inside sub directory as well).
client.py
class client(object):
def __init__(self, user, key, address):
self.user = user
self.key = key
self.address = address
foo.py
class foo(client):
print(client.user, client.key, client.address)
Now I want to call foo() by initiating client() class first. So my test.py file should look like this and it should print those values I have given when initiating client class.
test.py
import client
f = client("x", "passkeyXX","10.192.0.1")
f.foo() ## should print the values given above
is this possible?