route_rules.provider
¤
Modules:
-
mihomo–
Classes:
-
Behavior– -
Format– -
Provider– -
ProviderMihomo– -
ProviderRegistry–
Behavior
¤
Bases: StrEnum
flowchart TD
route_rules.provider.Behavior[Behavior]
click route_rules.provider.Behavior href "" "route_rules.provider.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.Format[Format]
click route_rules.provider.Format href "" "route_rules.provider.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
-
Provider
¤
Bases: ABC
flowchart TD
route_rules.provider.Provider[Provider]
click route_rules.provider.Provider href "" "route_rules.provider.Provider"
Parameters:
Returned by:
- Reference route_rules
-
Reference
route_rules
-
route_rulesProviderMihomo - provider
-
- Reference route_rules
Methods:
-
download_url– -
load– -
preview_url–
Attributes:
-
download_url_template(str) – -
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
abstractmethod
async
¤
Source code in src/route_rules/provider/_abc.py
30 31 32 | |
ProviderMihomo
¤
Bases: Provider
flowchart TD
route_rules.provider.ProviderMihomo[ProviderMihomo]
route_rules.provider._abc.Provider[Provider]
route_rules.provider._abc.Provider --> route_rules.provider.ProviderMihomo
click route_rules.provider.ProviderMihomo href "" "route_rules.provider.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 | |
ProviderRegistry
¤
Parameters:
-
registry(dict[str, Provider], default:<class 'dict'>) –dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
Methods:
-
download_url– -
load– -
presets– -
preview_url– -
register–
Attributes:
download_url
¤
Source code in src/route_rules/provider/_registry.py
64 65 66 67 68 | |
load
async
¤
Source code in src/route_rules/provider/_registry.py
70 71 72 73 74 | |
presets
cached
classmethod
¤
presets() -> Self
Source code in src/route_rules/provider/_registry.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
preview_url
¤
Source code in src/route_rules/provider/_registry.py
76 77 78 79 80 | |