<gh_stars>1-10
from .client import Client
from .models import Address, AuthInfo, Package, PickupInfo, ServiceInfo
from .utils import get_hostname_from_url


__all__ = [
    'Address', 'Client', 'Package', 'PickupInfo', 'ServiceInfo',
    'create_client'
]


def create_client(url):
    hostname = get_hostname_from_url(url)
    auth_info = AuthInfo.from_url(url)
    return Client(hostname, auth_info)

from .client import Client
from .models import Address, AuthInfo, Package, PickupInfo, ServiceInfo
from .utils import get_hostname_from_url


__all__ = [
    'Address', 'Client', 'Package', 'PickupInfo', 'ServiceInfo',
    'create_client'
]


def create_client(url):
    hostname = get_hostname_from_url(url)
    auth_info = AuthInfo.from_url(url)
    return Client(hostname, auth_info)