本文整理匯總了Python中girder_client.GirderClient.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python GirderClient.__init__方法的具體用法?Python GirderClient.__init__怎麽用?Python GirderClient.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類girder_client.GirderClient
的用法示例。
在下文中一共展示了GirderClient.__init__方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from girder_client import GirderClient [as 別名]
# 或者: from girder_client.GirderClient import __init__ [as 別名]
def __init__(self, apiKey, objectStore):
"""initialization function to create a GirderCli instance, will attempt
to authenticate with the designated Girder instance.
"""
GirderClient.__init__(self, apiUrl="https://data.kitware.com/api/v1")
self.objectStore = objectStore
self.authenticate(apiKey=apiKey)
示例2: __init__
# 需要導入模塊: from girder_client import GirderClient [as 別名]
# 或者: from girder_client.GirderClient import __init__ [as 別名]
def __init__(self, username, password, dryrun, blacklist,
host=None, port=None, apiRoot=None, scheme=None, apiUrl=None):
"""initialization function to create a GirderCli instance, will attempt
to authenticate with the designated Girder instance. Aside from username
and password, all other kwargs are passed directly through to the
:py:class:`girder_client.GirderClient` base class constructor.
:param username: username to authenticate to Girder instance.
:param password: password to authenticate to Girder instance, leave
this blank to be prompted.
"""
GirderClient.__init__(self, host=host, port=port,
apiRoot=apiRoot, scheme=scheme, dryrun=dryrun,
blacklist=blacklist, apiUrl=apiUrl)
interactive = password is None
self.authenticate(username, password, interactive=interactive)
示例3: __init__
# 需要導入模塊: from girder_client import GirderClient [as 別名]
# 或者: from girder_client.GirderClient import __init__ [as 別名]
def __init__(self, username, password, dryrun, blacklist, host="localhost", port=8080, apiRoot=None, scheme="http"):
"""initialization function to create a GirderCli instance, will attempt
to authenticate with the designated Girder instance.
:param username: username to authenticate to Girder instance.
:param password: password to authenticate to Girder instance, leave
this blank to be prompted.
:param dryrun: boolean indicating whether to run the command or just
perform a dryrun showing which files and folders will be uploaded.
:param blacklist: list of filenames which will be ignored by upload.
:param host: host used to connect to Girder instance,
defaults to 'localhost'
:param port: port used to connect to Girder instance,
defaults to 8080
:param apiRoot: The path on the server corresponding to the root of the
Girder REST API. If None is passed, assumes '/api/v1'.
:param scheme: scheme used to connect to Girder instance,
defaults to 'http'; if passing 'https' port should likely be 443.
"""
GirderClient.__init__(
self, host=host, port=port, apiRoot=apiRoot, scheme=scheme, dryrun=dryrun, blacklist=blacklist
)
interactive = password is None
self.authenticate(username, password, interactive=interactive)