

def __init__(self, repository_url=None, user=None, password=None, verify_ssl=True):
    "\n\n        :param repository_url: url to repository server\n        :param user: username for connecting to repository\n        :param password: password for connecting to repository\n        :param verify_ssl: False if you don't want to verify SSL certificate of the server\n        :return:\n        "
    self._verify_ssl = verify_ssl
    if repository_url:
        self._repository_url = repository_url
    else:
        self._repository_url = os.environ.get('REPOSITORY_URL', self.DEFAULT_REPOSITORY_URL)
    self._session = requests.session()
    if (not user):
        user = os.environ.get('REPOSITORY_USER')
    if user:
        if (not password):
            try:
                password = os.environ['REPOSITORY_PASSWORD']
            except KeyError:
                logger.error('Repository password not specified. Please specify repository password in environment variable "REPOSITORY_PASSWORD"')
        self._session.auth = (user, password)

dataset/ETHPy150Open stardust85/repositorytools/repositorytools/lib/repository.py NexusRepositoryClient.__init__/original