Skip to content
Snippets Groups Projects
PodClient.py 369 B
Newer Older
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from .Resource import API_URLS, Resource


class PodClient:
    host_url = ''

    def __init__(self, host_url):
        self.host_url = host_url
        if not self.host_url:
            raise Exception('Pod host url required')
        for key in API_URLS.keys():
            self.__dict__[key] = Resource(host_url, key)