'''set up basepair package'''
from __future__ import print_function
import sys

import requests

from .utils import colors

# Exposing infra webapp library
from .infra.webapp import Analysis, File, Gene, Genome, GenomeFile, Host, Module, Pipeline, Project, Sample, Upload, User

__title__ = 'basepair'
__version__ = '2.0.5'
__copyright__ = 'Copyright [2017] - [2022] Basepair INC'


JSON_URL = 'https://pypi.python.org/pypi/{}/json'.format(__title__)
try:
    resp = requests.get(JSON_URL, timeout=1)
    if resp.status_code == 200:
        latest_version = resp.json()['info']['version']
        if latest_version != __version__:
            print(colors.color.warning(
                'WARNING: The latest version of basepair package is {}. '
                'Please upgrade to avail the latest features and bug-fixes'
                ''.format(latest_version)), file=sys.stderr)
except (requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout):
    print('warning: no internet', file=sys.stderr)


def connect(*args, **kwargs):
    '''return basepair package'''
    from basepair.api import BpApi
    return BpApi(*args, **kwargs)

2214e246ae10da9ae68c3f2fed1376dd80976842
<mask token>


def connect(*args, **kwargs):
    """return basepair package"""
    from basepair.api import BpApi
    return BpApi(*args, **kwargs)

<mask token>
try:
    resp = requests.get(JSON_URL, timeout=1)
    if resp.status_code == 200:
        latest_version = resp.json()['info']['version']
        if latest_version != __version__:
            print(colors.color.warning(
                'WARNING: The latest version of basepair package is {}. Please upgrade to avail the latest features and bug-fixes'
                .format(latest_version)), file=sys.stderr)
except (requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout):
    print('warning: no internet', file=sys.stderr)


def connect(*args, **kwargs):
    """return basepair package"""
    from basepair.api import BpApi
    return BpApi(*args, **kwargs)

<mask token>
__title__ = 'basepair'
__version__ = '2.0.5'
__copyright__ = 'Copyright [2017] - [2022] Basepair INC'
JSON_URL = 'https://pypi.python.org/pypi/{}/json'.format(__title__)
try:
    resp = requests.get(JSON_URL, timeout=1)
    if resp.status_code == 200:
        latest_version = resp.json()['info']['version']
        if latest_version != __version__:
            print(colors.color.warning(
                'WARNING: The latest version of basepair package is {}. Please upgrade to avail the latest features and bug-fixes'
                .format(latest_version)), file=sys.stderr)
except (requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout):
    print('warning: no internet', file=sys.stderr)


def connect(*args, **kwargs):
    """return basepair package"""
    from basepair.api import BpApi
    return BpApi(*args, **kwargs)

<mask token>
from __future__ import print_function
import sys
import requests
from .utils import colors
from .infra.webapp import Analysis, File, Gene, Genome, GenomeFile, Host, Module, Pipeline, Project, Sample, Upload, User
__title__ = 'basepair'
__version__ = '2.0.5'
__copyright__ = 'Copyright [2017] - [2022] Basepair INC'
JSON_URL = 'https://pypi.python.org/pypi/{}/json'.format(__title__)
try:
    resp = requests.get(JSON_URL, timeout=1)
    if resp.status_code == 200:
        latest_version = resp.json()['info']['version']
        if latest_version != __version__:
            print(colors.color.warning(
                'WARNING: The latest version of basepair package is {}. Please upgrade to avail the latest features and bug-fixes'
                .format(latest_version)), file=sys.stderr)
except (requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout):
    print('warning: no internet', file=sys.stderr)


def connect(*args, **kwargs):
    """return basepair package"""
    from basepair.api import BpApi
    return BpApi(*args, **kwargs)

'''set up basepair package'''
from __future__ import print_function
import sys

import requests

from .utils import colors

# Exposing infra webapp library
from .infra.webapp import Analysis, File, Gene, Genome, GenomeFile, Host, Module, Pipeline, Project, Sample, Upload, User

__title__ = 'basepair'
__version__ = '2.0.5'
__copyright__ = 'Copyright [2017] - [2022] Basepair INC'


JSON_URL = 'https://pypi.python.org/pypi/{}/json'.format(__title__)
try:
    resp = requests.get(JSON_URL, timeout=1)
    if resp.status_code == 200:
        latest_version = resp.json()['info']['version']
        if latest_version != __version__:
            print(colors.color.warning(
                'WARNING: The latest version of basepair package is {}. '
                'Please upgrade to avail the latest features and bug-fixes'
                ''.format(latest_version)), file=sys.stderr)
except (requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout):
    print('warning: no internet', file=sys.stderr)


def connect(*args, **kwargs):
    '''return basepair package'''
    from basepair.api import BpApi
    return BpApi(*args, **kwargs)
