route_rules.provider.mihomo
¤
Classes:
-
Behavior– -
Format– -
ProviderMihomo–
Functions:
-
decode–
Behavior
¤
Bases: StrEnum
flowchart TD
route_rules.provider.mihomo.Behavior[Behavior]
click route_rules.provider.mihomo.Behavior href "" "route_rules.provider.mihomo.Behavior"
Returned by:
-
Reference
route_rules
-
route_rules - provider
-
export
exportExporterMihomobehavior -
gen
genArtifactMetabehavior
-
-
Reference
route_rules
-
route_rules - provider
-
export
exportExporterMihomo -
gen
genArtifactMeta
-
Attributes:
Format
¤
Bases: StrEnum
flowchart TD
route_rules.provider.mihomo.Format[Format]
click route_rules.provider.mihomo.Format href "" "route_rules.provider.mihomo.Format"
Returned by:
-
Reference
route_rules
-
route_rules - provider
-
export
exportExporterMihomoformat -
gen
genArtifactMetaformat
-
-
Reference
route_rules
-
route_rules - provider
-
export
exportExporterMihomo -
gen
genArtifactMeta
-
Attributes:
YAML
class-attribute
instance-attribute
¤
YAML = auto()
Used by:
-
Reference
route_rules
-
route_rulesProviderMihomoformat - provider
-
ProviderMihomo
¤
Bases: Provider
flowchart TD
route_rules.provider.mihomo.ProviderMihomo[ProviderMihomo]
route_rules.provider._abc.Provider[Provider]
route_rules.provider._abc.Provider --> route_rules.provider.mihomo.ProviderMihomo
click route_rules.provider.mihomo.ProviderMihomo href "" "route_rules.provider.mihomo.ProviderMihomo"
click route_rules.provider._abc.Provider href "" "route_rules.provider._abc.Provider"
Parameters:
-
name(str) – -
download_url_template(str) – -
preview_url_template(str, default:<dynamic>) – -
behavior(Behavior) – -
format(Format, default:<Format.YAML: 'yaml'>) –
Methods:
-
download_url– -
load– -
preview_url–
Attributes:
-
behavior(Behavior) – -
download_url_template(str) – -
format(Format) – -
name(str) – -
preview_url_template(str) –
preview_url_template
class-attribute
instance-attribute
¤
preview_url_template: str = field(
default=Factory(
_default_preview_url_template, takes_self=True
)
)
download_url
¤
Source code in src/route_rules/provider/_abc.py
26 27 28 | |
load
async
¤
Source code in src/route_rules/provider/mihomo/_provider.py
20 21 22 23 24 25 | |
decode
¤
Source code in src/route_rules/provider/mihomo/_decode.py
15 16 17 18 | |