本文整理匯總了Python中mopidy.config.Secret方法的典型用法代碼示例。如果您正苦於以下問題:Python config.Secret方法的具體用法?Python config.Secret怎麽用?Python config.Secret使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類mopidy.config
的用法示例。
在下文中一共展示了config.Secret方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: get_config_schema
# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Secret [as 別名]
def get_config_schema(self):
schema = super().get_config_schema()
schema["hostname"] = config.Hostname()
schema["port"] = config.Port(optional=True)
schema["password"] = config.Secret(optional=True)
schema["max_connections"] = config.Integer(minimum=1)
schema["connection_timeout"] = config.Integer(minimum=1)
schema["zeroconf"] = config.String(optional=True)
schema["command_blacklist"] = config.List(optional=True)
schema["default_playlist_scheme"] = config.String()
return schema
示例2: get_config_schema
# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Secret [as 別名]
def get_config_schema(self):
schema = super(Extension, self).get_config_schema()
schema['server'] = config.String()
schema['username'] = config.String()
schema['password'] = config.Secret()
return schema
示例3: get_config_schema
# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Secret [as 別名]
def get_config_schema(self):
schema = super(Extension, self).get_config_schema()
schema['username'] = config.String(optional=True)
schema['password'] = config.Secret(optional=True)
schema['quality'] = config.String(optional=True)
schema['difm'] = config.Boolean(optional=True)
schema['radiotunes'] = config.Boolean(optional=True)
schema['rockradio'] = config.Boolean(optional=True)
schema['jazzradio'] = config.Boolean(optional=True)
schema['frescaradio'] = config.Boolean(optional=True)
return schema
示例4: get_config_schema
# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Secret [as 別名]
def get_config_schema(self):
schema = super(Extension, self).get_config_schema()
schema['username'] = config.String()
schema['password'] = config.Secret()
schema['quality'] = config.String(choices=["LOSSLESS", "HIGH", "LOW"])
return schema
示例5: get_config_schema
# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Secret [as 別名]
def get_config_schema(self):
schema = super(Extension, self).get_config_schema()
schema['username'] = config.String()
schema['user_id'] = config.String(optional=True)
schema['password'] = config.Secret(optional=True)
schema['hostname'] = config.String()
schema['libraries'] = config.String(optional=True)
schema['albumartistsort'] = config.String(optional=True)
schema['port'] = config.Port(optional=True)
schema['client_cert'] = config.String(optional=True)
schema['client_key'] = config.String(optional=True)
schema['album_format'] = config.String(optional=True)
schema['max_bitrate'] = config.Integer(optional=True)
return schema