I'm creating a python rest api wrapper to a website, i created a file called api.py, then used called the api using requests, like so:
requests.get('http://example.com/api', auth=('username','apikey'))
How to create a class nammed Class1, then put the url in it using urlparse, then create another file called example.py, call the class and let the user put his username and key.