#!/usr/bin/env python
# encoding: utf-8
#
# Copyright © 2019, SAS Institute Inc., Cary, NC, USA.  All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

__version__ = '1.5.9'
__author__ = 'SAS'
__credits__ = ['<NAME>, <NAME>, <NAME>, <NAME>, '
               '<NAME>, <NAME>']
__license__ = 'Apache 2.0'
__copyright__ = 'Copyright © 2019, SAS Institute Inc., ' \
                'Cary, NC, USA.  All Rights Reserved.'

import logging
import sys

if sys.version_info < (3, ):
    from warnings import warn
    warn('You are using Python %d.%d which was officially sunset on January 1st, 2020.  '
         'sasctl will drop support for Python 2 in a future release.  '
         'Please upgrade to a current version of Python to continue using sasctl.' % (sys.version_info.major, sys.version_info.minor),
         UserWarning, 2)

from .core import current_session, delete, get, get_link, platform_version, post, put, request_link
from .core import RestObj, Session, HTTPError
from .tasks import register_model, publish_model, update_model_performance


# Prevent package from emitting log records unless consuming
# application configures logging.
logging.getLogger(__name__).addHandler(logging.NullHandler())
