當前位置: 首頁>>代碼示例>>Python>>正文


Python config.Integer方法代碼示例

本文整理匯總了Python中mopidy.config.Integer方法的典型用法代碼示例。如果您正苦於以下問題:Python config.Integer方法的具體用法?Python config.Integer怎麽用?Python config.Integer使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在mopidy.config的用法示例。


在下文中一共展示了config.Integer方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: get_config_schema

# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Integer [as 別名]
def get_config_schema(self):
        schema = super().get_config_schema()
        schema["library"] = config.Deprecated()
        schema["max_search_results"] = config.Integer(minimum=0)
        schema["media_dir"] = config.Path()
        schema["data_dir"] = config.Deprecated()
        schema["playlists_dir"] = config.Deprecated()
        schema["tag_cache_file"] = config.Deprecated()
        schema["scan_timeout"] = config.Integer(minimum=1000, maximum=1000 * 60 * 60)
        schema["scan_flush_threshold"] = config.Integer(minimum=0)
        schema["scan_follow_symlinks"] = config.Boolean()
        schema["included_file_extensions"] = config.List(optional=True)
        schema["excluded_file_extensions"] = config.List(optional=True)
        schema["directories"] = config.List()
        schema["timeout"] = config.Integer(optional=True, minimum=1)
        schema["use_artist_sortname"] = config.Boolean()
        schema["album_art_files"] = config.List(optional=True)
        return schema 
開發者ID:mopidy,項目名稱:mopidy-local,代碼行數:20,代碼來源:__init__.py

示例2: get_config_schema

# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Integer [as 別名]
def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()
        schema['directories'] = config.List()
        schema['timeout'] = config.Integer(optional=True, minimum=1)
        schema['use_album_mbid_uri'] = config.Boolean()
        schema['use_artist_mbid_uri'] = config.Boolean()
        schema['use_artist_sortname'] = config.Boolean()
        # no longer used
        schema['search_limit'] = config.Deprecated()
        schema['extract_images'] = config.Deprecated()
        schema['image_dir'] = config.Deprecated()
        schema['image_base_uri'] = config.Deprecated()
        schema['album_art_files'] = config.Deprecated()
        return schema 
開發者ID:mopidy,項目名稱:mopidy-local-sqlite,代碼行數:16,代碼來源:__init__.py

示例3: get_config_schema

# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Integer [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 
開發者ID:mopidy,項目名稱:mopidy-mpd,代碼行數:13,代碼來源:__init__.py

示例4: get_config_schema

# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Integer [as 別名]
def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()
        schema['debug_gpio_simulate'] = config.Boolean()
        schema['pin_button_main'] = config.Integer()
        schema['pin_button_next'] = config.Integer()
        schema['pin_button_previous'] = config.Integer()
        schema['pin_button_vol_up'] = config.Integer()
        schema['pin_button_vol_down'] = config.Integer()
        schema['pin_play_led'] = config.Integer()
        schema['tts_default_volume'] = config.Integer()
        return schema 
開發者ID:9and3r,項目名稱:mopidy-ttsgpio,代碼行數:13,代碼來源:__init__.py

示例5: get_config_schema

# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Integer [as 別名]
def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()
        schema['topic'] = config.String()
        schema['mqtthost'] = config.String()
        schema['mqttport'] = config.Integer()
        schema['username'] = config.String()
        schema['password'] = config.String()
        schema['stoppedimage'] = config.String()
        schema['defaultimage'] = config.String()
        return schema 
開發者ID:magcode,項目名稱:mopidy-mqtt,代碼行數:12,代碼來源:__init__.py

示例6: get_config_schema

# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Integer [as 別名]
def get_config_schema(self):
        schema = super().get_config_schema()
        schema["timeout"] = config.Integer(minimum=0)
        schema["filter"] = config.String(
            optional=True, choices=("station", "program")
        )
        return schema 
開發者ID:kingosticks,項目名稱:mopidy-tunein,代碼行數:9,代碼來源:__init__.py

示例7: get_config_schema

# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Integer [as 別名]
def get_config_schema(self):
        schema = super().get_config_schema()
        schema["card"] = config.Integer(minimum=0)
        schema["control"] = config.String()
        schema["min_volume"] = config.Integer(minimum=0, maximum=100)
        schema["max_volume"] = config.Integer(minimum=0, maximum=100)
        schema["volume_scale"] = config.String(
            choices=("linear", "cubic", "log")
        )
        return schema 
開發者ID:mopidy,項目名稱:mopidy-alsamixer,代碼行數:12,代碼來源:__init__.py

示例8: get_config_schema

# 需要導入模塊: from mopidy import config [as 別名]
# 或者: from mopidy.config import Integer [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 
開發者ID:jellyfin,項目名稱:mopidy-jellyfin,代碼行數:17,代碼來源:__init__.py


注:本文中的mopidy.config.Integer方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。