import requests


def calibrator_create(addr, auth, **kwargs):
    """
    Create a new calibrator.
    
    Args:
        addr: hostname or ip address of database server.
        auth: tuple of username and password.
        observationid: observation id of the calibrator.
        caltype: id of calibrator type
        notes: any notes regarding calibrator
    """
    path = '{0}/{1}/'.format(addr, 'calibrator_create')
    r = requests.post(url=path, auth=auth, data=kwargs)
    r.raise_for_status()
    return r.json()